API keys, webhooks, and usage
Use tenant API keys for server integrations, receive signed lifecycle events, and inspect metered activity.
API keys
POST
/tenants/{tenant}/api-keysUser tokenJSON body
{
"name": "Production backend",
"scopes": ["passes:read", "passes:write"],
"expires_at": "2027-12-31T23:59:59Z"
}The plaintext token is returned once. Available scopes cover templates, passes, wallets, webhooks, usage, and audit access. List keys with GET /api-keys and revoke one with DELETE /api-keys/{api_key}.
Webhooks
POST
/tenants/{tenant}/webhookswebhooks:writeJSON body
{
"url": "https://example.com/webhooks/passflow",
"events": ["pass.created", "pass.updated", "pass.synced", "pass.sync_failed"]
}The endpoint secret is returned once. Verify the sha256=... HMAC in X-Passflow-Signature against the raw JSON body. X-Passflow-Delivery uniquely identifies a delivery.
Usage and audit
GET
/tenants/{tenant}/usage?from=2026-09-01usage:readGET
/tenants/{tenant}/audit-logsaudit:readUsage returns quantities grouped by metric. Audit records include the actor, action, subject, before/after state, IP address, and user agent.