> ## 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.

# Approve an action (carry it out)

> Approves an open action and carries it out, as the app's Approve does: an email, slack, teams, portal, in_app_sdk or ticket_reply action is SENT to the customer (an email from the person's connected mailbox, or the support address the thread uses); an escalation is resolved; a canvas (meeting prep) is marked done; a tool_approval runs its tool calls (`item_ids` for some of them). Other types (task, ticket) can't be carried out here, as in the app (501): dismiss them when done. A reply on a conversation needs `updated_at`, the version you read (422 without it, 409 when it changed). A reply then has its conversation's status decided, as the app does after a send (`conversation_status`); it stays null, with the reply sent, when the key reads no conversations, or a book role may not change that conversation. Carrying out one already carried out returns it as it is. 502 when the send failed (nothing was marked done). Done as the key's person, as they would in the app: only a person's key may (403 for any other), on an action GET opens for them (else a 404). The app's refusals come back as they are: 409 for an action already carried out or dismissed, or one a teammate holds. Over MCP: first show the person what will go out (GET the action: its `payload`), act only on their explicit go-ahead, and pass the `updated_at` from that same read: a 409 means it changed since they saw it, so read it again and ask again.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/workbench/actions/{action_id}/execute
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/workbench/actions/{action_id}/execute:
    post:
      tags:
        - workbench
      summary: Approve an action (carry it out)
      description: >-
        Approves an open action and carries it out, as the app's Approve does:
        an email, slack, teams, portal, in_app_sdk or ticket_reply action is
        SENT to the customer (an email from the person's connected mailbox, or
        the support address the thread uses); an escalation is resolved; a
        canvas (meeting prep) is marked done; a tool_approval runs its tool
        calls (`item_ids` for some of them). Other types (task, ticket) can't be
        carried out here, as in the app (501): dismiss them when done. A reply
        on a conversation needs `updated_at`, the version you read (422 without
        it, 409 when it changed). A reply then has its conversation's status
        decided, as the app does after a send (`conversation_status`); it stays
        null, with the reply sent, when the key reads no conversations, or a
        book role may not change that conversation. Carrying out one already
        carried out returns it as it is. 502 when the send failed (nothing was
        marked done). Done as the key's person, as they would in the app: only a
        person's key may (403 for any other), on an action GET opens for them
        (else a 404). The app's refusals come back as they are: 409 for an
        action already carried out or dismissed, or one a teammate holds. Over
        MCP: first show the person what will go out (GET the action: its
        `payload`), act only on their explicit go-ahead, and pass the
        `updated_at` from that same read: a 409 means it changed since they saw
        it, so read it again and ask again.
      operationId: workbench_execute_action
      parameters:
        - description: The action's id, from GET /v1/workbench/actions
          in: path
          name: action_id
          required: true
          schema:
            maxLength: 128
            minLength: 1
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                item_ids:
                  anyOf:
                    - items:
                        maxLength: 128
                        type: string
                      maxItems: 100
                      minItems: 1
                      type: array
                    - type: 'null'
                  default: null
                  description: >-
                    For a tool_approval: approve only these tool calls; omit to
                    approve every pending one
                  title: Item Ids
                note:
                  anyOf:
                    - maxLength: 2000
                      type: string
                    - type: 'null'
                  default: null
                  description: >-
                    What you decided, in your own words: read back by the
                    digital worker that raised it
                  title: Note
                updated_at:
                  anyOf:
                    - maxLength: 64
                      minLength: 1
                      type: string
                    - type: 'null'
                  default: null
                  description: >-
                    The action's `updated_at` as you read it (GET
                    /v1/workbench/actions/{action_id}): a 409, with nothing
                    done, when it changed since. Optional
                  title: Updated At
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActedOnAction'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    ActedOnAction:
      properties:
        action:
          $ref: '#/components/schemas/WorkbenchActionDetail'
          description: The action as it now is
        conversation_status:
          anyOf:
            - $ref: '#/components/schemas/ConversationStatusAfter'
            - type: 'null'
          description: >-
            For a reply on a conversation: the conversation's status as decided
            after it went out (or a loop-in was marked done), as the app decides
            and shows it; null when nothing was decided
        message:
          anyOf:
            - type: string
            - type: 'null'
          description: What carrying it out did, as the app says it
          title: Message
        success:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            Whether it was carried out in full: false when some of a tool
            approval's calls failed (each call's `status` and `error` are in the
            action's `payload.tools`); null for a dismiss
          title: Success
      required:
        - action
      title: ActedOnAction
      type: object
    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
    ConversationStatusAfter:
      description: >-
        The conversation's status as decided after a reply went out, as the app
        decides it.
      properties:
        previous:
          anyOf:
            - type: string
            - type: 'null'
          description: Its status before
          title: Previous
        previous_status_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Previous Status Id
        status:
          description: Its status now; equal to `previous` when it stays
          title: Status
          type: string
        status_id:
          anyOf:
            - type: integer
            - type: 'null'
          description: A status id, as GET /v1/conversations/statuses lists it
          title: Status Id
      required:
        - status
      title: ConversationStatusAfter
      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.