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

# Edit a conversation's reply draft

> Edits the reply waiting on a conversation, as the app's conversation editor saves it: the keys given replace the draft's (for an email `to`, `cc`, `subject`, `body`; for a chat reply `body`), the rest stay, whoever wrote it. Nothing is sent. Returns the draft. The conversation's draft is the reply its editor shows in the app, its `draft` on GET /v1/conversations/{conversation_id}: a Workbench action, so GET /v1/workbench/actions/{action_id} reads it whole and its own routes act on it too. Done as the key's person: only a person's key may (403 for any other). 404 for a conversation the workspace doesn't read; 409 when it has no draft open.



## OpenAPI

````yaml /api/statisfy-api.openapi.json put /v1/conversations/{conversation_id}/draft
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/conversations/{conversation_id}/draft:
    put:
      tags:
        - conversations
      summary: Edit a conversation's reply draft
      description: >-
        Edits the reply waiting on a conversation, as the app's conversation
        editor saves it: the keys given replace the draft's (for an email `to`,
        `cc`, `subject`, `body`; for a chat reply `body`), the rest stay,
        whoever wrote it. Nothing is sent. Returns the draft. The conversation's
        draft is the reply its editor shows in the app, its `draft` on GET
        /v1/conversations/{conversation_id}: a Workbench action, so GET
        /v1/workbench/actions/{action_id} reads it whole and its own routes act
        on it too. Done as the key's person: only a person's key may (403 for
        any other). 404 for a conversation the workspace doesn't read; 409 when
        it has no draft open.
      operationId: conversations_write_draft
      parameters:
        - description: The conversation's id, from GET /v1/conversations
          in: path
          name: conversation_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                draft_updated_at:
                  anyOf:
                    - maxLength: 64
                      minLength: 1
                      type: string
                    - type: 'null'
                  default: null
                  description: >-
                    The draft's `updated_at` as you read it (the conversation's
                    `draft.updated_at`): a 409, with nothing saved, when it
                    changed since. Optional
                  title: Draft Updated At
                payload:
                  additionalProperties: true
                  description: >-
                    The reply's new content, merged over the draft's (a key
                    given replaces that key): for an email `to`, `cc`,
                    `subject`, `body`; for a Slack, Teams, portal or in-app
                    reply `body`
                  title: Payload
                  type: object
              required:
                - payload
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkbenchActionDetail'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    WorkbenchActionDetail:
      properties:
        account_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The account it is about, as /v1/objects/account/records ids it
          title: Account Id
        account_name:
          anyOf:
            - type: string
            - type: 'null'
          description: That account's name
          title: Account Name
        agent:
          anyOf:
            - $ref: '#/components/schemas/WorkbenchAgent'
            - type: 'null'
          description: >-
            The digital worker that drafted it, as a conversation's `agent`
            names it; null for the workbench agent's drafts and a person's
        assignee:
          anyOf:
            - $ref: '#/components/schemas/ConversationPerson'
            - type: 'null'
          description: >-
            Whose queue it is in; null for a shared draft no one holds (a
            digital worker's hold)
        conversation_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The conversation it replies on (GET
            /v1/conversations/{conversation_id}); null for a card on no thread
          title: Conversation Id
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          description: ISO 8601 UTC
          title: Created At
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: The card's summary line, as the queue shows it
          title: Description
        dismiss_reason:
          anyOf:
            - type: string
            - type: 'null'
          description: Why it was dismissed, as recorded; null unless dismissed
          title: Dismiss Reason
        dismissed_at:
          anyOf:
            - type: string
            - type: 'null'
          description: 'ISO 8601 UTC: when it was dismissed; null unless dismissed'
          title: Dismissed At
        executed_at:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ISO 8601 UTC: when it was approved and carried out; null unless
            executed
          title: Executed At
        execution_result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: >-
            What carrying it out returned (a sent message's ids, a created
            task); null unless executed
          title: Execution Result
        id:
          description: The action's id
          title: Id
          type: string
        last_activity_at:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ISO 8601 UTC: when it was carried out or dismissed, else when it was
            made; the list's order, as a conversation's `last_message_at` is the
            conversation list's
          title: Last Activity At
        meeting_start:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ISO 8601 UTC: for a recorded meeting's follow-up, when the meeting
            started
          title: Meeting Start
        meeting_title:
          anyOf:
            - type: string
            - type: 'null'
          description: For a recorded meeting's follow-up, the meeting's title
          title: Meeting Title
        original_payload:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: >-
            The draft as the agent first wrote it; differs from `payload` when a
            person edited it. Null for a card a person made
          title: Original Payload
        payload:
          additionalProperties: true
          description: >-
            The draft as it stands, as the app's editor shows it: for an email
            its recipients, subject and body, for a reply its text, for a tool
            approval each tool call and its arguments, for an escalation the
            reason and urgency. Its keys vary by `type`
          title: Payload
          type: object
        priority:
          description: >-
            Its priority, lower being more urgent; lists here are ordered by
            recent activity, not by it
          title: Priority
          type: integer
        resolution:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            How it ended, such as executed, user_dismiss (a person dismissed
            it), agent_supersede or reply_supersede (a newer draft replaced it),
            answered_by_team (a teammate answered first) or conversation_closed;
            null while open, and on actions older than this record
          title: Resolution
        resolved_by:
          anyOf:
            - $ref: '#/components/schemas/ConversationPerson'
            - type: 'null'
          description: >-
            The person who ended it; null when an agent or the system did, or
            while open
        source:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            What raised it, such as completed_meeting (a recorded meeting's
            follow-up), upcoming_meeting (a meeting's prep) or stella_chat (a
            draft made in chat); null when nothing did
          title: Source
        source_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            That signal's id: for a meeting follow-up the meeting's activity
            (GET /v1/activities/{id}), for prep its calendar event
          title: Source Id
        status:
          description: >-
            in_progress (waiting on a person), skipped (set aside), executed
            (approved and done) or dismissed
          title: Status
          type: string
        title:
          description: The card's title, as the queue shows it
          title: Title
          type: string
        type:
          description: >-
            What it does once approved: email, slack, teams, portal, in_app_sdk,
            ticket_reply (a reply to send), ticket or task (one to create),
            tool_approval (tool calls to run), escalation (a decision handed to
            a person), canvas (a meeting prep brief)
          title: Type
          type: string
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ISO 8601 UTC: its last change (an edit to the draft), else when it
            was made; the version a write takes back as `updated_at`
            (`draft_updated_at` on a conversation's draft routes)
          title: Updated At
      required:
        - id
        - type
        - status
        - priority
        - title
        - payload
      title: WorkbenchActionDetail
      type: object
    WorkbenchAgent:
      properties:
        id:
          description: The digital worker's id, as a conversation's `agent` gives it
          title: Id
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          description: Its name; null only when it could not be read
          title: Name
      required:
        - id
      title: WorkbenchAgent
      type: object
    ConversationPerson:
      properties:
        id:
          description: The user's id, as /v1/objects/user/records ids them
          title: Id
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
      required:
        - id
      title: ConversationPerson
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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