Documentation Index
Fetch the complete documentation index at: https://docs.causeflow.ai/llms.txt
Use this file to discover all available pages before exploring further.
JWT Bearer token
Most CauseFlow API endpoints require a JWT Bearer token. Include the token in theAuthorization header of every request:
JWT claims structure
CauseFlow JWTs include the following standard and custom claims:| Claim | Type | Description |
|---|---|---|
sub | string | Unique user identifier |
email | string | User email address |
tenant_id | string | Tenant the user belongs to |
roles | string[] | RBAC roles assigned to the user (admin or member) |
iss | string | Token issuer — a Clerk-backed URL. Clerk issues JWTs from https://<instance>.clerk.accounts.dev (shared development domain) or your CauseFlow-configured Clerk custom domain. Inspect the iss claim on any token your tenant receives to confirm the exact value for your instance. |
aud | string | Intended audience — always https://api.causeflow.ai |
exp | number | Unix timestamp when the token expires |
Example: authenticated request
API key authentication
API keys are used for webhook endpoints. Include your API key in theX-API-Key header:
cflo_ and can be created in Settings → API Keys in the CauseFlow dashboard.
Webhook HMAC signature
When CauseFlow delivers a webhook to your endpoint, every request includes an HMAC-SHA256 signature in theX-Webhook-Signature header. Verify this signature to confirm the request originated from CauseFlow.
HMAC-SHA256(webhook_secret, raw_request_body), encoded as a lowercase hex string prefixed with sha256=.