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

# connector.deliveries.list({ status? }): newest first by receivedAt



## OpenAPI

````yaml /api-reference/openapi.json get /connectors/{idOrName}/deliveries
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:
  /connectors/{idOrName}/deliveries:
    get:
      summary: 'connector.deliveries.list({ status? }): newest first by receivedAt'
      operationId: listDeliveries
      parameters:
        - $ref: '#/components/parameters/ConnectorIdOrName'
        - $ref: '#/components/parameters/DeliveryStatusFilter'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of deliveries
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeliveryPage'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    ConnectorIdOrName:
      name: idOrName
      in: path
      required: true
      description: The connector's ID, or for connectors.get its name
      schema:
        type: string
    DeliveryStatusFilter:
      name: status
      in: query
      required: false
      description: Only the deliveries with this status
      schema:
        $ref: '#/components/schemas/DeliveryStatus'
    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:
    DeliveryPage:
      allOf:
        - $ref: '#/components/schemas/Page'
        - type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/Delivery'
    DeliveryStatus:
      type: string
      enum:
        - pending
        - done
        - rejected
        - handshake
    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'
    Delivery:
      type: object
      required:
        - id
        - connectorId
        - status
        - replayOf
        - error
        - function
        - dedupe
        - outcomes
        - attempts
        - nextAttemptAt
        - receivedAt
        - finishedAt
      properties:
        id:
          type: string
          pattern: ^dlv_[0-7][0-9a-hjkmnp-tv-z]{25}$
        connectorId:
          type: string
          pattern: ^con_[0-7][0-9a-hjkmnp-tv-z]{25}$
        status:
          $ref: '#/components/schemas/DeliveryStatus'
        replayOf:
          type:
            - string
            - 'null'
          description: The delivery this one replays.
        error:
          oneOf:
            - $ref: '#/components/schemas/DeliveryError'
            - type: 'null'
        function:
          oneOf:
            - $ref: '#/components/schemas/DeliveryFunction'
            - type: 'null'
          description: 'null: no function ran.'
        dedupe:
          oneOf:
            - $ref: '#/components/schemas/Dedupe'
            - type: 'null'
          description: null when rejected, a handshake, or a replay.
        outcomes:
          description: One per route, in the function's order.
          type: array
          items:
            $ref: '#/components/schemas/RouteOutcome'
        attempts:
          type: integer
          minimum: 0
        nextAttemptAt:
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        receivedAt:
          $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'
    DeliveryError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - invalid_body
            - no_function
            - function_rejected
            - function_error
            - function_timeout
        message:
          type: string
    DeliveryFunction:
      description: What a delivery records of the function that ran.
      type: object
      required:
        - version
        - result
        - durationMs
      properties:
        version:
          type: integer
        result:
          $ref: '#/components/schemas/FunctionResult'
        durationMs:
          type: integer
          minimum: 0
    Dedupe:
      type: object
      required:
        - source
        - hash
      properties:
        source:
          $ref: '#/components/schemas/DedupeSource'
        hash:
          description: SHA-256 in hex.
          type: string
    RouteOutcome:
      allOf:
        - $ref: '#/components/schemas/Route'
        - type: object
          required:
            - position
            - status
            - orderKey
            - waitingFor
            - error
            - sessionId
            - sessionCreated
            - sessionMatched
            - messageId
            - seq
          properties:
            position:
              description: The route's place in the answer, from 0.
              type: integer
              minimum: 0
            status:
              $ref: '#/components/schemas/OutcomeStatus'
            orderKey:
              description: >-
                The key it is ordered by: the session key, dlv_…/position, or
                the reply match.
              type: string
            waitingFor:
              type:
                - string
                - 'null'
              description: >-
                While pending: the earlier delivery with the same agent and key
                it waits for.
            error:
              oneOf:
                - $ref: '#/components/schemas/OutcomeError'
                - type: 'null'
            sessionId:
              type:
                - string
                - 'null'
              description: Set when delivered.
            sessionCreated:
              type: boolean
            sessionMatched:
              description: The reply match chose the session.
              type: boolean
            messageId:
              type:
                - string
                - 'null'
            seq:
              oneOf:
                - $ref: '#/components/schemas/Seq'
                - type: 'null'
    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
    FunctionResult:
      type: string
      enum:
        - accept
        - respond
        - reject
        - ok
        - retryable
        - permanent
        - error
        - timeout
    DedupeSource:
      type: string
      enum:
        - function
        - body
    Route:
      description: One entry of an inbound function's deliver list.
      type: object
      required:
        - agent
        - sessionKey
        - message
      properties:
        agent:
          description: An agent's ID.
          type: string
        sessionKey:
          type:
            - string
            - 'null'
          description: 'null: a new session.'
        replyTo:
          description: 'A reply match: the external ID of the message the event answers.'
          type: string
        matchOnly:
          description: 'With replyTo: deliver only to the matched session.'
          type: boolean
        message:
          type: string
        replyKey:
          description: Becomes the session's reply key when delivered.
          type: string
        settings:
          $ref: '#/components/schemas/SessionSettings'
    OutcomeStatus:
      type: string
      enum:
        - pending
        - delivered
        - unmatched
        - failed
    OutcomeError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - agent_not_found
            - invalid_settings
            - unavailable
            - internal
        message:
          type: string
    Seq:
      description: A position in an agent's event log.
      type: integer
      minimum: 0
      maximum: 9007199254740991
    ErrorCode:
      type: string
      enum:
        - invalid_request
        - unauthorized
        - forbidden
        - not_found
        - conflict
        - payload_too_large
        - unsupported
        - unavailable
        - internal
    SessionSettings:
      description: >-
        As agent.sessions.create takes them; used only when a session is
        created. connectorKey is the route's and refused in metadata.
      type: object
      additionalProperties: false
      properties:
        cwd:
          type: string
        systemPrompt:
          type: string
        metadata:
          $ref: '#/components/schemas/Metadata'
    Metadata:
      description: The customer's own string keys and values; never case-converted.
      type: object
      additionalProperties:
        type: string
  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.