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

# Run an action item

> Runs an approved action item: sends the follow-up email, sends a calendar invite, or creates or updates records. Set the status to `approved` first. Sending an email costs credits (402 `INSUFFICIENT_CREDITS` when you're out). If an earlier send may already have gone out, the call returns 409 `RESEND_CONFIRMATION_REQUIRED` until you pass `confirm_resend: true`.




## OpenAPI

````yaml /openapi/inbox.yaml post /calls/{id}/actions/{actionId}
openapi: 3.1.0
info:
  title: Connie Inbox API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for the Inbox: conversations, messages,
    drafts, labels, views, and the Calls and Meetings views. They authenticate
    with your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Conversations
    description: List, count, pin, star, assign and bulk-update conversations.
  - name: Messages
    description: Read messages, read state, reactions, stars, bookmarks and pins.
  - name: Sending
    description: >-
      Send new emails and chats, reply, search recipients and upload
      attachments.
  - name: Drafts
    description: Drafts saved in Connie and drafts stored in a connected mailbox.
  - name: Labels
    description: Workspace labels and the labels on each conversation.
  - name: Views
    description: Custom Inbox views.
  - name: Spam
    description: Mark conversations as spam or not spam.
  - name: Meetings and calls
    description: >-
      Recorded meetings and dialer calls shown in the Inbox, and their action
      items.
paths:
  /calls/{id}/actions/{actionId}:
    parameters:
      - $ref: '#/components/parameters/CallId'
      - name: actionId
        in: path
        required: true
        schema:
          type: string
          format: uuid
    post:
      tags:
        - Meetings and calls
      summary: Run an action item
      description: >
        Runs an approved action item: sends the follow-up email, sends a
        calendar invite, or creates or updates records. Set the status to
        `approved` first. Sending an email costs credits (402
        `INSUFFICIENT_CREDITS` when you're out). If an earlier send may already
        have gone out, the call returns 409 `RESEND_CONFIRMATION_REQUIRED` until
        you pass `confirm_resend: true`.
      operationId: runCallActionItem
      parameters:
        - $ref: '#/components/parameters/WorkspaceId'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                account_id:
                  type: string
                  description: Email account to send from, when the action sends email.
                confirm_resend:
                  type: boolean
      responses:
        '200':
          description: Action ran.
          content:
            application/json:
              schema:
                type: object
                properties:
                  action_item:
                    $ref: '#/components/schemas/CallActionItem'
                  execution:
                    type: object
                    additionalProperties: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: Not enough credits.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - type: object
                    properties:
                      required:
                        type: number
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          description: >-
            An account is needed or the selected account can't be used
            (`INTEGRATION_REQUIRED`, `ACCOUNT_SELECTION_REQUIRED`,
            `INVALID_ACCOUNT`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          description: >-
            The provider failed, or the send outcome is unknown
            (`SEND_OUTCOME_UNKNOWN`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    CallId:
      name: id
      in: path
      required: true
      description: The call record ID.
      schema:
        type: string
        format: uuid
    WorkspaceId:
      name: workspaceId
      in: query
      required: true
      description: >
        Your workspace ID. Also accepted as `workspace_id`, the `x-workspace-id`
        header, or `workspaceId` in a JSON body. If you leave it out, the
        request silently runs against the first workspace you joined.
      schema:
        type: string
        format: uuid
  schemas:
    CallActionItem:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
          format: uuid
        call_id:
          type: string
          format: uuid
        status:
          type: string
          description: >-
            `open`, `pending`, `approved`, `executing`, `executed`, `failed`,
            `dismissed`, `completed` or `task_created`.
        draft_type:
          type:
            - string
            - 'null'
          description: >-
            What running the item does, for example `email` or
            `calendar_invite`.
        draft_content:
          type:
            - object
            - 'null'
          additionalProperties: true
        linked_task_id:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
  responses:
    BadRequest:
      description: Missing or invalid input.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: No valid session, or the session expired (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: >-
        The item is in a state that doesn't allow this, or changed underneath
        you.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Too many requests. Wait for the number of seconds in `Retry-After`.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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