> ## 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 a session's output history

> List every saved or skipped output capture, oldest first by default. A later capture never replaces an earlier capture's file identities. Deleted files are omitted. Continue with next_page until it is null.



## OpenAPI

````yaml /openapi.json get /v1/sessions/{session_id}/outputs/history
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}/outputs/history:
    get:
      tags:
        - sessions
      summary: List a session's output history
      description: >-
        List every saved or skipped output capture, oldest first by default. A
        later capture never replaces an earlier capture's file identities.
        Deleted files are omitted. Continue with next_page until it is null.
      operationId: sessions.listOutputHistory
      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]|10)$
            description: Maximum number of captures to return (1-10, default 10)
          required: false
        - name: order
          in: query
          schema:
            type: string
            enum:
              - asc
              - desc
          required: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - session_output_capture
                        session_id:
                          type: string
                          minLength: 1
                          maxLength: 256
                        turn:
                          type: integer
                          minimum: 1
                          maximum: 9007199254740991
                        status:
                          type: string
                          enum:
                            - saved
                            - skipped
                        reason:
                          anyOf:
                            - type: string
                            - type: 'null'
                        files:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                minLength: 1
                              type:
                                type: string
                                enum:
                                  - file
                              filename:
                                type: string
                                minLength: 1
                                maxLength: 255
                                pattern: >-
                                  ^(?:[^./\\\u0000-\u001f\u007f-\u009f\u2028\u2029][^/\\\u0000-\u001f\u007f-\u009f\u2028\u2029]*|\.[^./\\\u0000-\u001f\u007f-\u009f\u2028\u2029][^/\\\u0000-\u001f\u007f-\u009f\u2028\u2029]*|\.\.[^/\\\u0000-\u001f\u007f-\u009f\u2028\u2029]+)$
                              content_type:
                                type: string
                              mime_type:
                                type: string
                              size:
                                type: integer
                                minimum: 0
                                maximum: 9007199254740991
                                description: Size in bytes
                              size_bytes:
                                type: integer
                                minimum: 0
                                maximum: 9007199254740991
                              sha256:
                                type: string
                                pattern: ^[0-9a-f]{64}$
                              origin:
                                anyOf:
                                  - type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - upload
                                    required:
                                      - type
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - session
                                      session_id:
                                        type: string
                                        minLength: 1
                                        maxLength: 256
                                      turn:
                                        type: integer
                                        minimum: 1
                                        maximum: 9007199254740991
                                      path:
                                        type: string
                                        minLength: 1
                                        maxLength: 512
                                        pattern: >-
                                          ^(?:[^./\\\u0000-\u001f\u007f-\u009f\u2028\u2029][^/\\\u0000-\u001f\u007f-\u009f\u2028\u2029]*|\.[^./\\\u0000-\u001f\u007f-\u009f\u2028\u2029][^/\\\u0000-\u001f\u007f-\u009f\u2028\u2029]*|\.\.[^/\\\u0000-\u001f\u007f-\u009f\u2028\u2029]+)(?:\/(?:[^./\\\u0000-\u001f\u007f-\u009f\u2028\u2029][^/\\\u0000-\u001f\u007f-\u009f\u2028\u2029]*|\.[^./\\\u0000-\u001f\u007f-\u009f\u2028\u2029][^/\\\u0000-\u001f\u007f-\u009f\u2028\u2029]*|\.\.[^/\\\u0000-\u001f\u007f-\u009f\u2028\u2029]+))*$
                                    required:
                                      - type
                                      - session_id
                                      - turn
                                      - path
                                    additionalProperties: false
                                description: >-
                                  Where the file came from: an upload or a
                                  session. Session file paths are relative to
                                  the directory where they were saved.
                              created_at:
                                type: string
                            required:
                              - id
                              - type
                              - filename
                              - content_type
                              - size
                              - sha256
                              - origin
                              - created_at
                            additionalProperties: false
                          description: >-
                            Files saved by this capture that have not been
                            deleted. Empty for a skipped capture.
                        skipped:
                          type: array
                          items:
                            type: object
                            properties:
                              path:
                                type: string
                              reason:
                                type: string
                            required:
                              - path
                              - reason
                            additionalProperties: false
                        recorded_at:
                          type: string
                      required:
                        - type
                        - session_id
                        - turn
                        - status
                        - reason
                        - files
                        - skipped
                        - recorded_at
                      additionalProperties: false
                  next_page:
                    anyOf:
                      - type: string
                      - type: 'null'
                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:
    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.