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

# outbox.list({ connectorId?, sessionId?, key?, status? }): newest first by createdAt



## OpenAPI

````yaml /api-reference/openapi.json get /outbox
openapi: 3.1.0
info:
  title: paddock API
  version: 1.0.0
  description: >-
    The paddock API. Send an API key, or a session token on its own session, as
    a bearer token.
servers:
  - url: https://api.paddock.build/v1
security:
  - bearer: []
paths:
  /outbox:
    get:
      summary: >-
        outbox.list({ connectorId?, sessionId?, key?, status? }): newest first
        by createdAt
      operationId: listOutbox
      parameters:
        - $ref: '#/components/parameters/OutboxConnectorFilter'
        - $ref: '#/components/parameters/OutboxSessionFilter'
        - $ref: '#/components/parameters/OutboxKeyFilter'
        - $ref: '#/components/parameters/OutboxStatusFilter'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of outbox messages
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OutboxMessagePage'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    OutboxConnectorFilter:
      name: connectorId
      in: query
      required: false
      description: Only this connector's messages
      schema:
        type: string
    OutboxSessionFilter:
      name: sessionId
      in: query
      required: false
      description: Only this session's messages
      schema:
        type: string
    OutboxKeyFilter:
      name: key
      in: query
      required: false
      description: Only the messages of this key
      schema:
        type: string
    OutboxStatusFilter:
      name: status
      in: query
      required: false
      description: Only the messages with this status
      schema:
        $ref: '#/components/schemas/OutboxStatus'
    Limit:
      name: limit
      in: query
      required: false
      description: Page size
      schema:
        type: integer
        minimum: 1
        maximum: 200
        default: 50
    Cursor:
      name: cursor
      in: query
      required: false
      description: The nextCursor of the previous page
      schema:
        type: string
  headers:
    RequestId:
      description: The request's ID, for support and logs
      schema:
        type: string
  schemas:
    OutboxMessagePage:
      allOf:
        - $ref: '#/components/schemas/Page'
        - type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/OutboxMessage'
    OutboxStatus:
      type: string
      enum:
        - queued
        - delivering
        - delivered
        - failed
    Page:
      description: >-
        Every resource list returns one page: a cursor-paged slice of items.
        Typed pages extend it.
      type: object
      required:
        - data
        - nextCursor
      properties:
        data:
          type: array
        nextCursor:
          type:
            - string
            - 'null'
    OutboxMessage:
      type: object
      required:
        - id
        - connectorId
        - key
        - sessionId
        - agentId
        - turnId
        - origin
        - text
        - attachments
        - status
        - externalId
        - waitingFor
        - error
        - progress
        - attempts
        - nextAttemptAt
        - createdAt
        - finishedAt
      properties:
        id:
          type: string
          pattern: ^obx_[0-7][0-9a-hjkmnp-tv-z]{25}$
        connectorId:
          type: string
          pattern: ^con_[0-7][0-9a-hjkmnp-tv-z]{25}$
        key:
          description: 'As resolved: the session''s reply key when send named none.'
          type: string
        sessionId:
          type: string
          pattern: ^ses_[0-7][0-9a-hjkmnp-tv-z]{25}$
        agentId:
          type: string
          pattern: ^agt_[0-7][0-9a-hjkmnp-tv-z]{25}$
        turnId:
          type:
            - string
            - 'null'
          description: The turn that sent it.
        origin:
          oneOf:
            - $ref: '#/components/schemas/Origin'
            - type: 'null'
        text:
          description: Markdown.
          type: string
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/OutboxAttachment'
        status:
          $ref: '#/components/schemas/OutboxStatus'
        externalId:
          type:
            - string
            - 'null'
          description: What the deliver function returned when delivered.
        waitingFor:
          type:
            - string
            - 'null'
          description: 'While queued: the earlier message of the key it waits for.'
        error:
          oneOf:
            - $ref: '#/components/schemas/OutboxError'
            - type: 'null'
          description: The last attempt's; on a queued retry and when failed.
        progress:
          description: >-
            The last answer's progress, which the next attempt gets; null when
            none.
        attempts:
          type: integer
          minimum: 0
        nextAttemptAt:
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        createdAt:
          $ref: '#/components/schemas/Timestamp'
        finishedAt:
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
    ErrorBody:
      description: The body of every non-2xx response.
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    Origin:
      description: The inbound delivery and route whose message started the turn.
      type: object
      required:
        - connectorId
        - deliveryId
        - position
      properties:
        connectorId:
          type: string
          pattern: ^con_[0-7][0-9a-hjkmnp-tv-z]{25}$
        deliveryId:
          type: string
          pattern: ^dlv_[0-7][0-9a-hjkmnp-tv-z]{25}$
        position:
          type: integer
          minimum: 0
    OutboxAttachment:
      type: object
      required:
        - name
        - contentType
        - size
      properties:
        name:
          type: string
        contentType:
          type: string
        size:
          type: integer
          minimum: 0
    OutboxError:
      type: object
      required:
        - class
        - code
        - message
      properties:
        class:
          type: string
          enum:
            - retryable
            - permanent
        code:
          type:
            - string
            - 'null'
        message:
          type: string
    Timestamp:
      description: RFC 3339 in UTC with milliseconds.
      type: string
      format: date-time
      pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$
      x-go-type: wire.Timestamp
      x-go-type-import:
        path: github.com/wenfengwang/paddock/internal/wire
    ErrorObject:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
        details:
          type: object
    ErrorCode:
      type: string
      enum:
        - invalid_request
        - unauthorized
        - forbidden
        - not_found
        - conflict
        - payload_too_large
        - unsupported
        - unavailable
        - internal
  responses:
    Error:
      description: Every non-2xx response
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key, or a session token on its own session

````

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