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

> ## Agent Instructions
> Checkfu is open source (https://github.com/checkfu/checkfu) and runs in the reader's own Cloudflare account. There is no shared hosted base URL: `checkfu deploy` prints the deployment's API URL (`https://<api-worker>.workers.dev` or the CHECKFU_API_DOMAIN hostname, exported as `CHECKFU_BASE_URL` for the CLI, SDK, and curl) and MCP URL (`.../mcp`). Local development serves the API on http://localhost:1337 and MCP on http://localhost:1338/mcp.
> Authenticated HTTP requests send the deployment's CHECKFU_API_KEY as `Authorization: Bearer $CHECKFU_API_KEY` (or `x-api-key`) and `Content-Type: application/json` for JSON bodies. Pass `Idempotency-Key` on retriable writes.
> Core workflow: create an Agent (`POST /v1/agents`) and an Environment (`POST /v1/environments`), create a Session that references both (`POST /v1/sessions`), send a `user.message` event (`POST /v1/sessions/{session_id}/events`), and follow `GET /v1/sessions/{session_id}/events/stream` until `session.status_idle`.
> Other resources: Memory stores (`/v1/memory_stores`), Files (`/v1/files`), Artifacts (`/v1/artifacts`), Vaults and credentials (`/v1/vaults`), Provider credentials (`/v1/provider_credentials`), Automations (`/v1/automations`), Inbound bindings (`/v1/inbound_bindings`), and Webhooks (`/v1/webhooks`). The deployment serves its OpenAPI 3.1 specification at `GET /openapi.json`.

# List session events

> List persisted events for a session. Large events can make a page shorter than the requested limit. Continue with next_page until it is null.



## OpenAPI

````yaml /openapi.json get /v1/sessions/{session_id}/events
openapi: 3.1.0
info:
  title: Checkfu API
  version: 0.0.1
  description: >-
    Managed agents API for managing agents, environments, sessions, automations,
    artifacts, vaults, memory stores, and outbound webhooks.
servers: []
security: []
tags:
  - name: health
  - name: auth
    description: Check a credential
  - name: agents
    description: Create and manage versioned agent configurations
  - name: models
    description: Discover models for agent authoring
  - name: provider_credentials
  - name: inbound_bindings
  - name: inbound_deliveries
  - name: environments
    description: Create and manage environments where agents run
  - name: sessions
    description: Run agents in sessions and follow their events
  - name: automations
    description: Run agents on a schedule or on demand and inspect their runs
  - name: artifacts
    description: Manage artifacts
  - name: artifact_data
    description: Manage the documents in an artifact's database
  - name: files
    description: Upload files to give to agents, and download files they produce
  - name: vaults
    description: Manage vaults and the credentials they hold
  - name: webhooks
    description: Manage outbound webhooks
  - name: memory_stores
    description: Manage memory stores
paths:
  /v1/sessions/{session_id}/events:
    get:
      tags:
        - sessions
      summary: List session events
      description: >-
        List persisted events for a session. Large events can make a page
        shorter than the requested limit. Continue with next_page until it is
        null.
      operationId: sessions.listEvents
      parameters:
        - name: session_id
          in: path
          schema:
            type: string
            minLength: 1
            maxLength: 256
            description: Session ID
          required: true
        - name: page
          in: query
          schema:
            type: string
            pattern: ^\d{1,15}$
            description: Opaque pagination cursor from the previous response's next_page.
          required: false
        - name: limit
          in: query
          schema:
            type: string
            pattern: ^(?:[1-9]\d?|100)$
            description: Maximum number of events to return (1-100)
          required: false
        - name: types
          in: query
          schema:
            type: array
            items:
              type: string
              enum:
                - system.message
                - user.message
                - user.interrupt
                - user.tool_confirmation
                - user.custom_tool_result
                - session.status_running
                - span.model_request_start
                - agent.tool_use
                - agent.tool_result
                - agent.mcp_tool_use
                - agent.mcp_tool_result
                - agent.custom_tool_use
                - agent.thinking
                - agent.message
                - span.model_request_end
                - session.status_idle
                - session.error
                - session.status_terminated
                - session.archived
            description: Return events with one of these types.
          required: false
        - name: created_at[gt]
          in: query
          schema:
            type: string
          required: false
        - name: created_at[gte]
          in: query
          schema:
            type: string
          required: false
        - name: created_at[lt]
          in: query
          schema:
            type: string
          required: false
        - name: created_at[lte]
          in: query
          schema:
            type: string
          required: false
        - name: order
          in: query
          schema:
            type: string
            enum:
              - asc
              - desc
            description: 'Order of the persisted event sequence: asc or desc'
          required: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SessionEvent'
                  next_page:
                    anyOf:
                      - type: string
                      - type: 'null'
                    description: >-
                      Token for the next page, or null when there are no more
                      results.
                required:
                  - data
                  - next_page
                additionalProperties: false
        '400':
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - error
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - invalid_request_error
                      message:
                        type: string
                      code:
                        $ref: '#/components/schemas/ErrorCode'
                    required:
                      - type
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                    minLength: 1
                  accepted:
                    type: array
                  failed_index:
                    type: number
                  unconfirmed_index:
                    type: number
                required:
                  - type
                  - error
                  - request_id
                additionalProperties: false
        '401':
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - error
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - authentication_error
                      message:
                        type: string
                      code:
                        $ref: '#/components/schemas/ErrorCode'
                    required:
                      - type
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                    minLength: 1
                  accepted:
                    type: array
                  failed_index:
                    type: number
                  unconfirmed_index:
                    type: number
                required:
                  - type
                  - error
                  - request_id
                additionalProperties: false
        '404':
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - error
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - not_found_error
                      message:
                        type: string
                      code:
                        $ref: '#/components/schemas/ErrorCode'
                    required:
                      - type
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                    minLength: 1
                  accepted:
                    type: array
                  failed_index:
                    type: number
                  unconfirmed_index:
                    type: number
                required:
                  - type
                  - error
                  - request_id
                additionalProperties: false
        '409':
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - error
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - conflict_error
                      message:
                        type: string
                      code:
                        $ref: '#/components/schemas/ErrorCode'
                    required:
                      - type
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                    minLength: 1
                  accepted:
                    type: array
                  failed_index:
                    type: number
                  unconfirmed_index:
                    type: number
                required:
                  - type
                  - error
                  - request_id
                additionalProperties: false
        '429':
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - error
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - rate_limit_error
                      message:
                        type: string
                      code:
                        $ref: '#/components/schemas/ErrorCode'
                    required:
                      - type
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                    minLength: 1
                  accepted:
                    type: array
                  failed_index:
                    type: number
                  unconfirmed_index:
                    type: number
                required:
                  - type
                  - error
                  - request_id
                additionalProperties: false
        '500':
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - error
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - internal_error
                      message:
                        type: string
                      code:
                        $ref: '#/components/schemas/ErrorCode'
                    required:
                      - type
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                    minLength: 1
                  accepted:
                    type: array
                  failed_index:
                    type: number
                  unconfirmed_index:
                    type: number
                required:
                  - type
                  - error
                  - request_id
                additionalProperties: false
        '503':
          description: Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - error
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - service_unavailable
                      message:
                        type: string
                      code:
                        $ref: '#/components/schemas/ErrorCode'
                    required:
                      - type
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                    minLength: 1
                  accepted:
                    type: array
                  failed_index:
                    type: number
                  unconfirmed_index:
                    type: number
                required:
                  - type
                  - error
                  - request_id
                additionalProperties: false
      security:
        - bearer: []
        - apiKey: []
components:
  schemas:
    SessionEvent:
      anyOf:
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - system.message
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - text
                  text:
                    type: string
                required:
                  - type
                  - text
                additionalProperties: false
              minItems: 1
              maxItems: 1000
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - content
          additionalProperties: false
          description: Privileged context appended to the session's system instructions.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - user.message
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - text
                  text:
                    type: string
                required:
                  - type
                  - text
                additionalProperties: false
              minItems: 1
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - content
          additionalProperties: false
          description: >-
            A user message in the session conversation, with text content
            blocks.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - user.interrupt
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
          additionalProperties: false
          description: An interrupt that stops the agent's current turn.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - user.tool_confirmation
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            tool_use_id:
              type: string
              minLength: 1
              maxLength: 523
            result:
              type: string
              enum:
                - allow
                - deny
            deny_message:
              type: string
              maxLength: 4096
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - tool_use_id
            - result
          additionalProperties: false
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - user.custom_tool_result
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            custom_tool_use_id:
              type: string
              minLength: 1
              maxLength: 523
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - text
                  text:
                    type: string
                required:
                  - type
                  - text
                additionalProperties: false
            is_error:
              type: boolean
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - custom_tool_use_id
            - content
          additionalProperties: false
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - session.status_running
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            turn:
              type: integer
              minimum: 1
              maximum: 9007199254740991
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - turn
          additionalProperties: false
          description: The agent is processing a turn.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - span.model_request_start
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            model_request_start_id:
              type: string
              minLength: 1
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - model_request_start_id
          additionalProperties: false
          description: A model request started.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - agent.tool_use
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            tool_use_id:
              type: string
              minLength: 1
              maxLength: 523
            name:
              type: string
              minLength: 1
              maxLength: 256
              description: >-
                The tool the model called. A code mode script is one call named
                codemode: its code is the input and its output the result; the
                calls the script makes are not published separately.
            input:
              type: object
            truncated:
              type: boolean
              enum:
                - true
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - tool_use_id
            - name
            - input
          additionalProperties: false
          description: >-
            The agent called a tool. A turn's calls come before its end event,
            whether the turn replied, failed or was interrupted.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - agent.tool_result
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            tool_use_id:
              type: string
              minLength: 1
              maxLength: 523
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - text
                  text:
                    type: string
                required:
                  - type
                  - text
                additionalProperties: false
            is_error:
              type: boolean
            truncated:
              type: boolean
              enum:
                - true
            rejected:
              type: string
              enum:
                - unavailable
                - invalid_arguments
                - blocked
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - tool_use_id
            - content
            - is_error
          additionalProperties: false
          description: >-
            The result of a tool call, including why the call was rejected when
            applicable. A turn's calls come before its end event, whether the
            turn replied, failed or was interrupted.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - agent.mcp_tool_use
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            tool_use_id:
              type: string
              minLength: 1
              maxLength: 523
            mcp_server_name:
              type: string
              minLength: 1
              maxLength: 32
              pattern: ^[A-Za-z0-9-]+(?:_[A-Za-z0-9-]+)*$
            name:
              type: string
              minLength: 1
              maxLength: 256
            input:
              type: object
            evaluated_permission:
              type: string
              enum:
                - allow
                - ask
              description: >-
                allow: the call ran without asking. ask: it waited for a
                confirmation.
            truncated:
              type: boolean
              enum:
                - true
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - tool_use_id
            - mcp_server_name
            - name
            - input
          additionalProperties: false
          description: >-
            Records an MCP call the model made. A turn's calls come before its
            end event, whether the turn replied, failed or was interrupted.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - agent.mcp_tool_result
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            tool_use_id:
              type: string
              minLength: 1
              maxLength: 523
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - text
                  text:
                    type: string
                required:
                  - type
                  - text
                additionalProperties: false
            is_error:
              type: boolean
            truncated:
              type: boolean
              enum:
                - true
            rejected:
              type: string
              enum:
                - unavailable
                - invalid_arguments
                - blocked
            mcp_tool_use_id:
              type: string
              minLength: 1
              maxLength: 523
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - tool_use_id
            - content
            - is_error
          additionalProperties: false
          description: >-
            Records what an MCP call the model made returned, or, with rejected,
            why it did not run. A turn's calls come before its end event,
            whether the turn replied, failed or was interrupted.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - agent.custom_tool_use
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            tool_use_id:
              type: string
              minLength: 1
              maxLength: 523
            name:
              type: string
              minLength: 1
              maxLength: 256
            input:
              type: object
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - tool_use_id
            - name
            - input
          additionalProperties: false
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - agent.thinking
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
          additionalProperties: false
          description: The agent is thinking.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - agent.message
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - text
                  text:
                    type: string
                required:
                  - type
                  - text
                additionalProperties: false
              minItems: 1
            truncated:
              type: boolean
              enum:
                - true
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - content
          additionalProperties: false
          description: The agent's response, with text content blocks.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - span.model_request_end
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            model_request_start_id:
              type: string
              minLength: 1
            model_usage:
              type: object
              properties:
                input_tokens:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                output_tokens:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                cache_read_input_tokens:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                cache_creation_input_tokens:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                cache_creation:
                  type: object
                  properties:
                    ephemeral_5m_input_tokens:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    ephemeral_1h_input_tokens:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                  required:
                    - ephemeral_5m_input_tokens
                    - ephemeral_1h_input_tokens
                  additionalProperties: false
              required:
                - input_tokens
                - output_tokens
              additionalProperties: false
            is_error:
              anyOf:
                - type: boolean
                - type: 'null'
            start_event_id:
              type: string
              minLength: 1
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - model_request_start_id
            - model_usage
            - is_error
          additionalProperties: false
          description: A model request finished. Includes token usage in model_usage.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - session.status_idle
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            stop_reason:
              anyOf:
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - end_turn
                        - interrupted
                        - retries_exhausted
                        - budget_reached
                        - refusal
                  required:
                    - type
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - requires_action
                    event_ids:
                      type: array
                      items:
                        type: string
                      description: >-
                        The IDs of the tool call events waiting for an answer.
                        Send a user.tool_confirmation for each
                        agent.mcp_tool_use and a user.custom_tool_result for
                        each agent.custom_tool_use.
                  required:
                    - type
                    - event_ids
                  additionalProperties: false
            turn:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            stop_details:
              anyOf:
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - refusal
                    category:
                      anyOf:
                        - type: string
                        - type: 'null'
                    explanation:
                      anyOf:
                        - type: string
                        - type: 'null'
                  required:
                    - type
                    - category
                    - explanation
                  additionalProperties: false
                - type: 'null'
            cancelled_event_ids:
              type: array
              items:
                type: string
              description: >-
                The IDs of the tool calls still waiting for an answer when the
                turn ended. The end of the turn cancelled them: they can no
                longer be answered.
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - stop_reason
            - turn
          additionalProperties: false
          description: >-
            The agent stopped processing a turn. An applied user.interrupt ends
            the turn with stop_reason.type end_turn. An output cap ends the turn
            with end_turn and a truncated agent.message. A pause or a change to
            its pending calls uses requires_action.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - session.error
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            error:
              type: object
              properties:
                type:
                  type: string
                message:
                  type: string
                retry_status:
                  type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - retrying
                        - exhausted
                        - terminal
                  required:
                    - type
                  additionalProperties: false
              required:
                - type
                - message
                - retry_status
              additionalProperties: false
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
            - error
          additionalProperties: false
          description: >-
            An error occurred while processing a turn. Includes the error and
            its retry status.
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - session.status_terminated
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
            cancelled_event_ids:
              type: array
              items:
                type: string
              description: >-
                The IDs of the tool calls still waiting for an answer when the
                turn ended. The end of the turn cancelled them: they can no
                longer be answered.
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
          additionalProperties: false
        - type: object
          properties:
            id:
              type: string
            seq:
              type: integer
              minimum: 1
              maximum: 9007199254740991
            type:
              type: string
              enum:
                - session.archived
            created_at:
              type: string
            processed_at:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - id
            - seq
            - type
            - created_at
            - processed_at
          additionalProperties: false
    ErrorCode:
      type: string
      enum:
        - session_awaiting_action
        - idempotency_key_reused
        - agent_model_unavailable
        - automation_reference_unavailable
        - automation_memory_store_archived
        - automation_schedule_unusable
        - automation_capacity_reached
        - credential_url_taken
        - mcp_server_blocked
        - mcp_server_credential_invalid
        - mcp_server_credentials_ambiguous
        - machine_credential_invalid
  securitySchemes:
    bearer:
      type: http
      scheme: Bearer
    apiKey:
      type: apiKey
      name: x-api-key
      in: header

````

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