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

# Start an automation from an incoming integration

> Start a Checkfu automation from GitHub, Linear, Notion, Discord, or any Standard Webhooks sender.

Open **Integrations**, choose a source, and select an existing automation by name. To start from scratch, choose **Create an on-demand automation**, set an agent, environment, and starting message, then select **Create and continue**. Checkfu returns you to endpoint setup with the new automation selected.

You can also start from **Integrations → Browse catalog** and choose **Add endpoint** for a supported trigger or channel. Copy the generated endpoint URL into the sending service and follow the setup instructions for that source. After a test delivery, select **View automation runs** to check the resulting session.

## Find the exact run from a delivery receipt

When a sender records a response with `run_id` and `session_id`, use those IDs to find the exact run even if several endpoints start the same automation. Open `/sessions/{session_id}` on your Dashboard or retrieve the run with an authenticated request.

```sh theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --fail-with-body "$CHECKFU_BASE_URL/v1/automation_runs/$RUN_ID" \
  -H "Authorization: Bearer $CHECKFU_API_KEY"
```

Redelivery returns the same run and Session IDs. The Dashboard's Runs list groups runs by automation. The **On request** label includes manual starts and incoming deliveries. For Discord, check the reply to the original interaction.

## Recover an uncertain creation

If the Dashboard loses the creation reply, choose **Refresh endpoint list** and look for the endpoint by ID when the reply supplied one. The list shows the endpoint URL and available setup controls. GitHub and signed webhook secrets appear only in the successful creation reply. Linear and Notion use the setup controls on their saved endpoints. Discord uses the saved endpoint URL.

If you need a fresh signing secret or choose to replace the endpoint, select **Allow replacement**, then **Create endpoint**. Revoke an earlier endpoint by selecting its specific row and confirming the revocation. Separate endpoints can share the same settings.

After a successful create, copy the URL and any signing secret, then select **Done** before creating another endpoint.

## GitHub

1. Choose **GitHub**, enter the numeric repository ID, and select an issue or pull request event. The repository ID is returned by the GitHub repository API, for example `gh api repos/OWNER/REPO --jq .id`.
2. In the repository's webhook settings, use the endpoint URL as the payload URL. Choose `application/json`, paste the signing secret exactly as displayed, and subscribe to issues or pull requests.
3. Open or close an issue or pull request matching the selected event. Check the automation's **Runs** list. [Create a GitHub webhook](https://docs.github.com/en/webhooks/using-webhooks/creating-webhooks)

For tools, add the **GitHub** connector to the agent. In its Vault, use **Add a credential → GitHub** and a repository-scoped personal access token with the permissions required by the tools you use.

For a verified issue or pull request, the session starts with the event type, repository, and issue or pull request number alongside your automation's starting message.

## Linear

1. Choose **Linear**, enter the organization ID, and select **Issue.create** or **Issue.update**. The organization ID is available as `organization.id` through the Linear GraphQL API.
2. Create an Issue webhook in Linear with the endpoint URL. Copy its signing secret, then open **Set signing secret** on the Checkfu endpoint and save it.
3. Create or update an issue in that organization. If you rotate the key in Linear, update the same binding with **Replace signing secret**. [Linear webhook setup](https://linear.app/developers/webhooks)

For tools, choose **Linear** under **Vaults → Connect an MCP server** and sign in. Add Linear to the agent's MCP servers and attach the same Vault to its session or automation.

For a verified issue delivery, the session starts with the Linear issue ID and event type alongside your automation's starting message. For example, ask the agent to look up the triggering issue and summarize it. The agent reads the issue through its configured Linear MCP connection.

## Notion

1. Choose **Notion**, enter the workspace ID, and select **page.created** or **page.content\_updated**.
2. In Notion's connection settings, create a webhook subscription with the endpoint URL and the selected event. Grant the connection access to the page you use for testing.
3. Select **Check Notion setup** in Checkfu. Copy the verification token into Notion and verify the subscription there. Then select **Confirm verified in Notion** in Checkfu. Complete these steps within 30 minutes of creating the endpoint.
4. Create a page or edit its content, depending on the event you selected. Notion can aggregate content updates before sending them. [Notion webhook setup](https://developers.notion.com/reference/webhooks)

For tools, choose **Notion** under **Vaults → Connect an MCP server** and sign in. Add Notion to the agent's MCP servers and attach the same Vault to its session or automation. The webhook subscription has its own verification token.

For a verified page event, the session starts with the event type and page ID alongside your automation's starting message. The agent can use the configured Notion connection to read the page if it has access.

## Signed webhook

With your Checkfu API key, create a binding for the automation.

```sh theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --fail-with-body -X POST "$CHECKFU_BASE_URL/v1/inbound_bindings" \
  -H "Authorization: Bearer $CHECKFU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"webhook","automation_id":"YOUR_AUTOMATION_ID"}'
```

Append the returned `path` to your Checkfu API URL. Save `signing_secret` in the sender's secret store when you create the binding. Sign the exact body bytes with `webhook-id`, `webhook-timestamp`, and `webhook-signature` per the [Standard Webhooks specification](https://github.com/standard-webhooks/standard-webhooks/blob/main/spec/standard-webhooks.md).

For a binding with `type: "webhook"`, `POST /v1/incoming/{binding_id}` returns HTTP 200 with this JSON receipt after Checkfu accepts the delivery.

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
	"run_id": "arun_...",
	"session_id": "sess_..."
}
```

Both fields are nonempty, opaque strings. Use the same binding and `webhook-id` for retries of a delivery. Sign each attempt with a fresh timestamp over the original body bytes. Checkfu returns the original run and Session IDs. The run uses the automation's configured agent, environment, and starting message.

## Discord

Create a Discord application and register a guild slash command named `checkfu`. Bind the automation with the application's public key and the allowed guild and channel IDs ([Discord application commands](https://docs.discord.com/developers/interactions/application-commands)):

```sh theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --fail-with-body -X POST "$CHECKFU_BASE_URL/v1/inbound_bindings" \
  -H "Authorization: Bearer $CHECKFU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type":"discord",
    "automation_id":"YOUR_AUTOMATION_ID",
    "application_id":"YOUR_DISCORD_APPLICATION_ID",
    "guild_id":"YOUR_DISCORD_SERVER_ID",
    "channel_id":"YOUR_DISCORD_CHANNEL_ID",
    "public_key":"YOUR_DISCORD_APPLICATION_PUBLIC_KEY"
  }'
```

Set the Discord application's **Interactions Endpoint URL** to your Checkfu API URL plus the returned `path`. In the configured channel, run `/checkfu` to start the automation.

A Discord binding uses the same delivery route and returns a Discord interaction response. The ping response is HTTP 200 with `{"type":1}`. A valid slash command in the configured channel returns HTTP 200 with the private deferred acknowledgement `{"type":5,"data":{"flags":64}}`. Checkfu uses that acknowledgement before starting the run and on retries of the same interaction. A refused interaction can return a private message with `type: 4`. These responses use Discord's interaction fields. Check the automation's Runs list for the run and Session IDs.

Checkfu edits the deferred response when the first agent turn finishes. If the session needs an approval, continue it in Checkfu. Replies use Discord's short-lived interaction token. A longer-running automation can finish in Checkfu after the Discord reply window closes. [Discord interactions](https://docs.discord.com/developers/interactions/receiving-and-responding)

## List incoming endpoints

Call `GET /v1/inbound_bindings` with your API key. To continue, send the response's `next_page` as the `page` query parameter until `next_page` is null. The CLI accepts `checkfu inbound-bindings list --page <token>`. The TypeScript SDK can traverse the pages with `client.inboundBindings.list()` in a `for await` loop.

## Revoke a binding

Send an authenticated `DELETE /v1/inbound_bindings/{binding_id}` with the ID returned at setup. Revocation blocks new deliveries to that path. Runs already started remain in Checkfu.


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