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

# Receive a signed webhook or Discord interaction

> Send the original provider body bytes, up to 65,536 bytes. Provider signatures authenticate deliveries at this URL.

Standard Webhooks use `webhook-id`, `webhook-timestamp`, and `webhook-signature`.

GitHub uses `x-hub-signature-256`. The signed body supplies the repository and event.

Linear uses `linear-signature` and the signed body supplies the event timestamp.

Notion uses `x-notion-signature` after the initial verification challenge.

Discord uses `x-signature-ed25519` and `x-signature-timestamp`.



## OpenAPI

````yaml /openapi.json post /v1/incoming/{binding_id}
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/incoming/{binding_id}:
    post:
      tags:
        - inbound_deliveries
      summary: Receive a signed webhook or Discord interaction
      description: >-
        Send the original provider body bytes, up to 65,536 bytes. Provider
        signatures authenticate deliveries at this URL.


        Standard Webhooks use `webhook-id`, `webhook-timestamp`, and
        `webhook-signature`.


        GitHub uses `x-hub-signature-256`. The signed body supplies the
        repository and event.


        Linear uses `linear-signature` and the signed body supplies the event
        timestamp.


        Notion uses `x-notion-signature` after the initial verification
        challenge.


        Discord uses `x-signature-ed25519` and `x-signature-timestamp`.
      operationId: inbound_deliveries.receive
      parameters:
        - name: binding_id
          in: path
          schema:
            type: string
            pattern: ^inb_[0-9a-f]{24}$
          required: true
      requestBody:
        required: false
        description: >-
          Original delivery bytes. Native provider deliveries contain JSON. The
          route reads the bytes regardless of Content-Type.
        content:
          application/json:
            schema: {}
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: Run receipt, provider status, or Discord acknowledgement.
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - run_id
                      - session_id
                    properties:
                      run_id:
                        type: string
                      session_id:
                        type: string
                  - type: object
                    required:
                      - status
                    properties:
                      status:
                        enum:
                          - ignored
                          - awaiting_confirmation
                  - type: object
                    required:
                      - type
                    properties:
                      type:
                        const: 1
                  - type: object
                    required:
                      - type
                      - data
                    properties:
                      type:
                        const: 4
                      data:
                        type: object
                        required:
                          - content
                          - flags
                          - allowed_mentions
                        properties:
                          content:
                            type: string
                          flags:
                            const: 64
                          allowed_mentions:
                            type: object
                            required:
                              - parse
                            properties:
                              parse:
                                type: array
                                maxItems: 0
                  - type: object
                    required:
                      - type
                      - data
                    properties:
                      type:
                        const: 5
                      data:
                        type: object
                        required:
                          - flags
                        properties:
                          flags:
                            const: 64
        '400':
          description: Invalid request or endpoint ID.
          content:
            application/json:
              schema:
                type: object
                required:
                  - type
                  - error
                  - request_id
                properties:
                  type:
                    const: error
                  error:
                    type: object
                    required:
                      - type
                      - message
                    properties:
                      type:
                        const: invalid_request_error
                      message:
                        type: string
                  request_id:
                    type: string
        '401':
          description: Missing, invalid, or expired signature.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '404':
          description: The endpoint or destination is unavailable.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
        '413':
          description: The body exceeds 65,536 bytes.
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - error
                    properties:
                      error:
                        type: string
                  - type: object
                    required:
                      - type
                      - error
                      - request_id
                    properties:
                      type:
                        const: error
                      error:
                        type: object
                        required:
                          - type
                          - message
                        properties:
                          type:
                            const: payload_too_large
                          message:
                            type: string
                      request_id:
                        type: string
        '500':
          description: The server could not handle the delivery.
          content:
            application/json:
              schema:
                type: object
                required:
                  - type
                  - error
                  - request_id
                properties:
                  type:
                    const: error
                  error:
                    type: object
                    required:
                      - type
                      - message
                    properties:
                      type:
                        const: internal_error
                      message:
                        type: string
                  request_id:
                    type: string
        '503':
          description: Incoming integrations are unavailable.
          content:
            application/json:
              schema:
                type: object
                required:
                  - type
                  - error
                  - request_id
                properties:
                  type:
                    const: error
                  error:
                    type: object
                    required:
                      - type
                      - message
                    properties:
                      type:
                        const: service_unavailable
                      message:
                        type: string
                  request_id:
                    type: string
      security: []

````

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