API keys
pk_, sk_, rk_, ak_ — when to use which.
Kind
Example
Where to use it
What it can do
What's in a key
{kind}_{env}_{prefix}_{secret}
└──┬──┘ └─┬┘ └──┬───┘ └──┬───┘
pk/sk/rk live 8-char url-safe
lookup secretOrigin allowlist for pk_* keys
pk_* keysPOST /v1/track HTTP/1.1
Authorization: Bearer pk_live_…
Origin: https://yoursite.com ← must be in the project's allowed_originsMinting and revoking
Scopes vs kinds
Kind
Scope
Notes
When to use an ak_ key
ak_ keyOperational notes
Last updated
Was this helpful?