Skip to main content
All API requests require an API key. You can generate one from your API Keys page. Keys follow the format cur_live_xxxxxxxxxxxx.

Authentication methods

There are two ways to authenticate. Both are equivalent — use whichever fits your HTTP client. Pass your key in the Authorization header:

API key header

Alternatively, use the X-API-Key header:

Full example

Security best practices

Never expose your API key in client-side code, public repositories, or logs.
  • Store keys in environment variables, not hardcoded in source files
  • Use secrets managers (AWS Secrets Manager, HashiCorp Vault, Vercel env vars) in production
  • Rotate keys immediately if you suspect compromise — generate a new key on the API Keys page

Error responses