Authentication
View MarkdownAuthentication
Main API
Create a user-owned API key in Profile → Integrations → HTTP API keys, in the organization your integration will use. Send it on every authenticated request:
Authorization: Bearer <your-api-key>The key belongs to your user and that organization. Current membership, verified email, role, assigned clients and invoice grants are checked on every request. Organization-owned keys, browser cookies and MCP tokens do not authenticate these endpoints. Secrets never belong in URLs or browser bundles.
Custard application
Internal /api routes continue to use browser sessions and same-origin checks. Signing into the app does not authenticate a script calling /v1. Public API requests do not change the workspace open in your browser.
Anonymous generation
Omit Authorization for /invoice-pdfs. To download a saved invoice, use authenticated GET /invoices/{id}/pdf instead.