Create an API key in the app
In Receiptor App:- Open Account -> API Keys (
/account/api-keys). - Click Add New API Key.
- Copy the generated
sk_...value.
Where API keys are accepted
For API execution routes, send key in one of:Authorization: Bearer sk_...X-Receiptor-API-Key: sk_...apiKeyquery/body fallback
Authorization: Bearer ...
Workspace scope behavior
Receiptor operations run inuserId + orgId context.
- Most capabilities require
orgIdcontext. - Send
X-Receiptor-Org-Id: org_...when calling REST endpoints directly. - Use
GET /v1/workspacesto discover allowed org IDs.
Organization context required.
If an API key is workspace-restricted and the org does not match, API returns This API key is restricted to a different workspace.
OAuth vs API keys
- API keys: best for direct REST and CLI usage.
- OAuth tokens: required for MCP protected methods (
tools/call) and are authorized per workspace.