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

# Read draft delivery state

> Reconcile an ambiguous draft send by local message ID. The read is scoped to the current team and user. State is draft, queued, sending, sent, retry_wait, unconfirmed, failed, held_reauth, cancelled, or unknown. When backed by the outbox, outbox_key is the identifier accepted by retry/cancel controls.



## OpenAPI

````yaml /api-reference/cx/swagger.json get /inbox/draft/{message}/_state
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /inbox/draft/{message}/_state:
    get:
      tags:
        - Inbox
      summary: Read draft delivery state
      description: >-
        Reconcile an ambiguous draft send by local message ID. The read is
        scoped to the current team and user. State is draft, queued, sending,
        sent, retry_wait, unconfirmed, failed, held_reauth, cancelled, or
        unknown. When backed by the outbox, outbox_key is the identifier
        accepted by retry/cancel controls.
      parameters:
        - description: Message ID
          name: message
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Current draft delivery state
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_inbox_draft.DraftDeliveryStateResponse
        '400':
          description: Invalid message ID
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: Message not found
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Failed to read delivery state
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_inbox_draft.DraftDeliveryStateResponse:
      type: object
      properties:
        outbox_key:
          type: string
          example: >-
            email:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
        state:
          type: string
          enum:
            - draft
            - queued
            - sending
            - sent
            - retry_wait
            - unconfirmed
            - failed
            - held_reauth
            - cancelled
            - unknown
        thread:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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