> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.goextrovert.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set reply draft text

> Sets the exact text of the unpublished reply draft and the people it tags, replacing the current text and tags; the text Extrovert generated stays stored, but earlier text the user wrote is replaced and not kept. It never calls Extrovert generation and does not approve or post the reply. Tags are given explicitly in `mentions`: up to 3 people, each named by the `providerId` and `name` of a thread author or of the post author; a person outside the thread and the post is posted as plain text. The text must contain the tagged words; an empty `mentions` list removes every tag, including the tag of the person being answered. Returns the reply card as it is after the change.



## OpenAPI

````yaml https://api.goextrovert.com/client/v2/docs-json patch /client/v2/comment-replies/{replyId}/draft
openapi: 3.1.0
info:
  title: Extrovert Client API
  description: >-
    Public API for Extrovert platform integration. Use your API key for
    authentication.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.goextrovert.com/
    description: API Server
security: []
tags: []
paths:
  /client/v2/comment-replies/{replyId}/draft:
    patch:
      tags:
        - Comment Replies
      summary: Set reply draft text
      description: >-
        Sets the exact text of the unpublished reply draft and the people it
        tags, replacing the current text and tags; the text Extrovert generated
        stays stored, but earlier text the user wrote is replaced and not kept.
        It never calls Extrovert generation and does not approve or post the
        reply. Tags are given explicitly in `mentions`: up to 3 people, each
        named by the `providerId` and `name` of a thread author or of the post
        author; a person outside the thread and the post is posted as plain
        text. The text must contain the tagged words; an empty `mentions` list
        removes every tag, including the tag of the person being answered.
        Returns the reply card as it is after the change.
      operationId: CommentRepliesClientApiController_setDraftText
      parameters:
        - name: replyId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetDraftTextRequestDto2'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetDraftTextResponseDto2'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientApiErrorResponseDto'
      security:
        - api-key: []
components:
  schemas:
    SetDraftTextRequestDto2:
      type: object
      properties:
        replyId:
          type: string
          format: uuid
          description: Reply card ID (`replyId` of the reply list).
        ownerId:
          type: string
          format: uuid
          description: >-
            LinkedIn account owner whose comment received the reply. Often a
            managed account rather than the authenticated user — call
            `user_list-shared` first and pick the owner whose LinkedIn profile
            published the comment.
        text:
          type: string
          minLength: 1
          maxLength: 1250
          description: >-
            Replacement draft text; surrounding whitespace is trimmed. Empty
            text cannot clear it.
        mentions:
          type: array
          maxItems: 3
          items:
            type: object
            properties:
              providerId:
                type: string
                minLength: 1
                description: >-
                  LinkedIn member ID: a thread author's or the post author's
                  `providerId`.
              name:
                type: string
                minLength: 1
                description: LinkedIn name of the person, as the thread or post shows it.
              text:
                description: >-
                  Exact words of the text that carry the tag. Omit to tag the
                  person's full name, or their first name when the full name is
                  not in the text. The first free occurrence is tagged.
                type: string
                minLength: 1
              start:
                description: >-
                  Position of `text` in the new text, in UTF-16 code units, as
                  the draft's `mentions[].start` gives it. Tags exactly these
                  words when they are there; otherwise the first free occurrence
                  is tagged.
                type: integer
                minimum: 0
                maximum: 9007199254740991
            required:
              - providerId
              - name
          description: >-
            People to tag, at most 3. Pass the draft's current `mentions` to
            keep its tags; an empty list tags nobody.
      required:
        - replyId
        - ownerId
        - text
        - mentions
    SetDraftTextResponseDto2:
      type: object
      properties:
        status:
          type: string
          const: success
          description: Response status
        data:
          type: object
          properties:
            replyId:
              type: string
              format: uuid
              description: Reply card ID.
              examples:
                - 8d256aa6-9b12-49a7-93ee-bf41634b5b60
            ownerId:
              type: string
              format: uuid
              description: >-
                LinkedIn account owner whose comment received the reply and who
                answers it.
              examples:
                - 8d256aa6-9b12-49a7-93ee-bf41634b5b60
            postId:
              type: string
              format: uuid
              description: Post the owner commented on (the `postId` of the comment tools).
              examples:
                - 8d256aa6-9b12-49a7-93ee-bf41634b5b60
            campaign:
              anyOf:
                - type: object
                  properties:
                    id:
                      type: string
                      format: uuid
                      description: Stable Extrovert entity ID.
                      examples:
                        - 8d256aa6-9b12-49a7-93ee-bf41634b5b60
                    name:
                      type: string
                      description: Customer-facing entity name.
                  required:
                    - id
                    - name
                - type: 'null'
              description: >-
                Campaign of the owner's comment, as on the comment: the
                requested one when it shares the comment, otherwise the oldest
                you can see; null when none is visible.
            prospect:
              anyOf:
                - type: object
                  properties:
                    id:
                      anyOf:
                        - type: string
                          format: uuid
                        - type: 'null'
                      description: >-
                        Extrovert prospect/profile ID when one exists in the
                        current workspace; null when only LinkedIn profile data
                        is available.
                    name:
                      type: string
                      description: Person's current LinkedIn display name.
                    linkedInUrl:
                      anyOf:
                        - type: string
                          format: uri
                        - type: 'null'
                      description: LinkedIn profile URL, or null when it is unavailable.
                    headline:
                      description: LinkedIn headline, or null when it is unavailable.
                      type:
                        - string
                        - 'null'
                    avatarUrl:
                      anyOf:
                        - type: string
                          format: uri
                        - type: 'null'
                      description: Profile image URL, or null when it is unavailable.
                  required:
                    - id
                    - name
                    - linkedInUrl
                    - headline
                    - avatarUrl
                - type: 'null'
              description: >-
                Prospect of the comment's engagement in that campaign, as on the
                comment; null for Topical engagement.
            keyword:
              anyOf:
                - type: object
                  properties:
                    id:
                      type: string
                      format: uuid
                      description: Stable Extrovert entity ID.
                      examples:
                        - 8d256aa6-9b12-49a7-93ee-bf41634b5b60
                    name:
                      type: string
                      description: Customer-facing entity name.
                  required:
                    - id
                    - name
                - type: 'null'
              description: >-
                Tracked keyword of the comment's engagement in that campaign, as
                on the comment; null outside Keyword collection.
            author:
              type: object
              properties:
                id:
                  anyOf:
                    - type: string
                      format: uuid
                    - type: 'null'
                  description: >-
                    Extrovert prospect/profile ID when one exists in the current
                    workspace; null when only LinkedIn profile data is
                    available.
                name:
                  type: string
                  description: Person's current LinkedIn display name.
                linkedInUrl:
                  anyOf:
                    - type: string
                      format: uri
                    - type: 'null'
                  description: LinkedIn profile URL, or null when it is unavailable.
                headline:
                  description: LinkedIn headline, or null when it is unavailable.
                  type:
                    - string
                    - 'null'
                avatarUrl:
                  anyOf:
                    - type: string
                      format: uri
                    - type: 'null'
                  description: Profile image URL, or null when it is unavailable.
                providerId:
                  description: >-
                    LinkedIn member ID; use it to tag this person in the reply
                    draft.
                  type:
                    - string
                    - 'null'
              required:
                - id
                - name
                - linkedInUrl
                - headline
                - avatarUrl
                - providerId
              description: Author of the post.
            post:
              type: object
              properties:
                text:
                  description: >-
                    LinkedIn post text, or null when the post contains no stored
                    text.
                  type:
                    - string
                    - 'null'
                linkedInUrl:
                  type: string
                  format: uri
                  description: LinkedIn URL of the post receiving the engagement.
                publishedAt:
                  type: string
                  description: When the post was published on LinkedIn.
                  examples:
                    - '2025-06-30T14:02:07.456Z'
                    - '2025-07-03T08:30:00.000Z'
                format:
                  type: string
                  enum:
                    - Text
                    - Image
                    - Video
                    - Link
                    - Article
                    - Poll
                    - Job
                    - Celebration
                  description: Customer-facing post format.
                likeCount:
                  anyOf:
                    - type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    - type: 'null'
                  description: >-
                    LinkedIn like count, or null when it cannot be parsed
                    reliably.
                media:
                  type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - None
                        - Image
                        - Video
                      description: Media kind indicated by the LinkedIn post.
                    urls:
                      type: array
                      items:
                        type: string
                        format: uri
                      description: >-
                        Available media URLs. Empty for no media and currently
                        also for video posts because production does not persist
                        a video URL.
                  required:
                    - kind
                    - urls
                externalLink:
                  anyOf:
                    - type: object
                      properties:
                        url:
                          type: string
                          format: uri
                          description: Destination linked from the LinkedIn post.
                        caption:
                          description: >-
                            Link/article caption, or null when LinkedIn did not
                            provide one.
                          type:
                            - string
                            - 'null'
                        summary:
                          description: >-
                            Available post/link summary, or null when none was
                            stored.
                          type:
                            - string
                            - 'null'
                      required:
                        - url
                        - caption
                        - summary
                    - type: 'null'
                  description: >-
                    Link/article metadata, or null when the post has no external
                    link.
                originalPost:
                  anyOf:
                    - type: object
                      properties:
                        text:
                          description: Original post text, or null when unavailable.
                          type:
                            - string
                            - 'null'
                        linkedInUrl:
                          anyOf:
                            - type: string
                              format: uri
                            - type: 'null'
                          description: Original post URL, or null when unavailable.
                        publishedAt:
                          anyOf:
                            - type: string
                              description: Date and time in ISO 8601 format
                              examples:
                                - '2025-06-30T14:02:07.456Z'
                                - '2025-07-03T08:30:00.000Z'
                            - type: 'null'
                          description: >-
                            Original LinkedIn publication time, or null when
                            unavailable.
                        author:
                          type: object
                          properties:
                            id:
                              anyOf:
                                - type: string
                                  format: uuid
                                - type: 'null'
                              description: >-
                                Extrovert prospect/profile ID when one exists in
                                the current workspace; null when only LinkedIn
                                profile data is available.
                            name:
                              type: string
                              description: Person's current LinkedIn display name.
                            linkedInUrl:
                              anyOf:
                                - type: string
                                  format: uri
                                - type: 'null'
                              description: >-
                                LinkedIn profile URL, or null when it is
                                unavailable.
                            headline:
                              description: >-
                                LinkedIn headline, or null when it is
                                unavailable.
                              type:
                                - string
                                - 'null'
                            avatarUrl:
                              anyOf:
                                - type: string
                                  format: uri
                                - type: 'null'
                              description: >-
                                Profile image URL, or null when it is
                                unavailable.
                          required:
                            - id
                            - name
                            - linkedInUrl
                            - headline
                            - avatarUrl
                          description: >-
                            Original post author. ID and LinkedIn URL are null
                            when the repost source did not provide them.
                        media:
                          type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - None
                                - Image
                                - Video
                              description: Media kind indicated by the LinkedIn post.
                            urls:
                              type: array
                              items:
                                type: string
                                format: uri
                              description: >-
                                Available media URLs. Empty for no media and
                                currently also for video posts because
                                production does not persist a video URL.
                          required:
                            - kind
                            - urls
                        externalLink:
                          anyOf:
                            - type: object
                              properties:
                                url:
                                  type: string
                                  format: uri
                                  description: Destination linked from the LinkedIn post.
                                caption:
                                  description: >-
                                    Link/article caption, or null when LinkedIn
                                    did not provide one.
                                  type:
                                    - string
                                    - 'null'
                                summary:
                                  description: >-
                                    Available post/link summary, or null when
                                    none was stored.
                                  type:
                                    - string
                                    - 'null'
                              required:
                                - url
                                - caption
                                - summary
                            - type: 'null'
                      required:
                        - text
                        - linkedInUrl
                        - publishedAt
                        - author
                        - media
                        - externalLink
                    - type: 'null'
                  description: >-
                    Original post for a repost-with-text, or null when this is
                    not a repost.
              required:
                - text
                - linkedInUrl
                - publishedAt
                - format
                - likeCount
                - media
                - externalLink
                - originalPost
            ourComment:
              type: object
              properties:
                text:
                  type: string
                  description: >-
                    Text of the owner's published comment, the root of the
                    thread.
                publishedAt:
                  type: string
                  description: When the comment was published.
                  examples:
                    - '2025-06-30T14:02:07.456Z'
                    - '2025-07-03T08:30:00.000Z'
                replyCount:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                  description: Replies under the comment as LinkedIn last counted them.
                likeCount:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                  description: Number of LinkedIn reactions to the comment.
              required:
                - text
                - publishedAt
                - replyCount
                - likeCount
            thread:
              type: array
              items:
                type: object
                properties:
                  messageId:
                    type: string
                    format: uuid
                    description: >-
                      Thread message ID; `addressedMessageId` points at one of
                      these.
                    examples:
                      - 8d256aa6-9b12-49a7-93ee-bf41634b5b60
                  author:
                    type: object
                    properties:
                      id:
                        anyOf:
                          - type: string
                            format: uuid
                          - type: 'null'
                        description: >-
                          Extrovert prospect/profile ID when one exists in the
                          current workspace; null when only LinkedIn profile
                          data is available.
                      name:
                        type: string
                        description: Person's current LinkedIn display name.
                      linkedInUrl:
                        anyOf:
                          - type: string
                            format: uri
                          - type: 'null'
                        description: LinkedIn profile URL, or null when it is unavailable.
                      headline:
                        description: LinkedIn headline, or null when it is unavailable.
                        type:
                          - string
                          - 'null'
                      avatarUrl:
                        anyOf:
                          - type: string
                            format: uri
                          - type: 'null'
                        description: Profile image URL, or null when it is unavailable.
                      providerId:
                        description: >-
                          LinkedIn member ID; use it to tag this person in the
                          reply draft.
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                      - name
                      - linkedInUrl
                      - headline
                      - avatarUrl
                      - providerId
                    description: Author of the message.
                  authorRole:
                    type: string
                    enum:
                      - Post author
                      - Owner
                      - Other
                    description: >-
                      `Owner` — the owner's own message; `Post author` — the
                      author of the post; `Other` — anyone else.
                  text:
                    type: string
                    description: Message text as LinkedIn returned it.
                  publishedAt:
                    anyOf:
                      - type: string
                        description: Date and time in ISO 8601 format
                        examples:
                          - '2025-06-30T14:02:07.456Z'
                          - '2025-07-03T08:30:00.000Z'
                      - type: 'null'
                    description: >-
                      When the message was written on LinkedIn, or null when
                      unknown.
                  likeCount:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                    description: Number of LinkedIn reactions to the message.
                  deleted:
                    type: boolean
                    description: >-
                      True when the message was deleted on LinkedIn; only the
                      addressed message is ever shown deleted.
                required:
                  - messageId
                  - author
                  - authorRole
                  - text
                  - publishedAt
                  - likeCount
                  - deleted
              description: >-
                Replies under the owner's comment, oldest first, the owner's own
                included.
            addressedMessageId:
              type: string
              format: uuid
              description: >-
                The thread message this card answers: the latest reply not
                written by the owner when the card was last addressed.
              examples:
                - 8d256aa6-9b12-49a7-93ee-bf41634b5b60
            draft:
              anyOf:
                - type: object
                  properties:
                    text:
                      type: string
                      minLength: 1
                      description: >-
                        Effective comment text that will be posted if the action
                        includes a comment.
                    source:
                      type: string
                      enum:
                        - Extrovert-generated
                        - Agent-authored
                      description: >-
                        Who supplied the effective text. Agent-authored includes
                        edits that override an Extrovert-generated body.
                    updatedAt:
                      type: string
                      description: When the effective draft last changed.
                      examples:
                        - '2025-06-30T14:02:07.456Z'
                        - '2025-07-03T08:30:00.000Z'
                    mentions:
                      type: array
                      items:
                        type: object
                        properties:
                          providerId:
                            type: string
                            description: >-
                              LinkedIn member ID of the tagged person, as in the
                              thread author's or post author's `providerId`.
                          name:
                            type: string
                            description: LinkedIn name of the tagged person.
                          text:
                            type: string
                            description: >-
                              The words of the draft that carry the tag, for
                              example the full name or the first name.
                          start:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                            description: >-
                              Position of `text` in the draft text, in UTF-16
                              code units (a JavaScript string index).
                        required:
                          - providerId
                          - name
                          - text
                          - start
                      description: People tagged in the draft, in text order, at most 3.
                  required:
                    - text
                    - source
                    - updatedAt
                    - mentions
                - type: 'null'
              description: Current effective reply draft, or null when no text exists yet.
            reactionBehavior:
              anyOf:
                - oneOf:
                    - type: object
                      properties:
                        behavior:
                          type: string
                          const: Comment only
                        reaction:
                          type: 'null'
                          description: No LinkedIn reaction is sent in Comment only mode.
                      required:
                        - behavior
                        - reaction
                    - type: object
                      properties:
                        behavior:
                          type: string
                          const: Comment and react
                        reaction:
                          type: string
                          enum:
                            - Like
                            - Celebrate
                            - Support
                            - Love
                            - Insightful
                            - Funny
                          description: LinkedIn reaction sent with the approved comment.
                      required:
                        - behavior
                        - reaction
                    - type: object
                      properties:
                        behavior:
                          type: string
                          const: React only
                        reaction:
                          type: string
                          enum:
                            - Like
                            - Celebrate
                            - Support
                            - Love
                            - Insightful
                            - Funny
                          description: LinkedIn reaction sent without a comment.
                      required:
                        - behavior
                        - reaction
                - type: 'null'
              description: >-
                Reply/reaction behavior selected for approval; the reaction goes
                to the addressed message. Null when not initialized.
            state:
              type: string
              enum:
                - Generating
                - Need approval
                - Pending
                - Error
                - Posted
                - Skipped
            plannedAt:
              anyOf:
                - type: string
                  description: Date and time in ISO 8601 format
                  examples:
                    - '2025-06-30T14:02:07.456Z'
                    - '2025-07-03T08:30:00.000Z'
                - type: 'null'
              description: >-
                Planned posting time, or null when none is recorded; null does
                not mean approval or immediate delivery.
            completedAt:
              anyOf:
                - type: string
                  description: Date and time in ISO 8601 format
                  examples:
                    - '2025-06-30T14:02:07.456Z'
                    - '2025-07-03T08:30:00.000Z'
                - type: 'null'
              description: Posting/skip completion time, or null before a terminal result.
            error:
              anyOf:
                - type: object
                  properties:
                    code:
                      type: string
                      description: >-
                        Stable public error code suitable for branching. It is
                        not a raw provider or backend status.
                    message:
                      type: string
                      description: >-
                        Safe explanation of what failed and what the caller
                        should do next.
                    retryable:
                      type: boolean
                      description: >-
                        Whether retrying may succeed after the stated condition
                        is resolved.
                    occurredAt:
                      anyOf:
                        - type: string
                          description: Date and time in ISO 8601 format
                          examples:
                            - '2025-06-30T14:02:07.456Z'
                            - '2025-07-03T08:30:00.000Z'
                        - type: 'null'
                      description: >-
                        When this failure was recorded, or null when no reliable
                        timestamp exists.
                  required:
                    - code
                    - message
                    - retryable
                    - occurredAt
                - type: 'null'
              description: >-
                Current generation/posting failure, or null when no failure is
                active.
            allowedActions:
              type: array
              items:
                type: string
                enum:
                  - generate-or-improve-draft
                  - set-draft-text
                  - skip-and-react
                  - approve
                  - cancel-posting
                  - skip
                  - unskip
                  - retry-generation
              description: Actions valid for the current state.
            updatedAt:
              type: string
              description: Latest change of the reply card.
              examples:
                - '2025-06-30T14:02:07.456Z'
                - '2025-07-03T08:30:00.000Z'
          required:
            - replyId
            - ownerId
            - postId
            - campaign
            - prospect
            - keyword
            - author
            - post
            - ourComment
            - thread
            - addressedMessageId
            - draft
            - reactionBehavior
            - state
            - plannedAt
            - completedAt
            - error
            - allowedActions
            - updatedAt
        message:
          type: string
          description: Success message
          examples:
            - Operation completed successfully
      required:
        - status
        - data
        - message
    ClientApiErrorResponseDto:
      type: object
      properties:
        status:
          type: string
          description: Response status
          example: error
          enum:
            - error
        data:
          type: 'null'
          description: Response data
          example: null
        message:
          type: string
          description: Error message
          example: An error occurred while processing the request
      required:
        - status
        - data
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.