Authentication
Create, use and revoke API keys.
#Creating a key
Create keys at Account → API keys. The full key is shown exactly once, right after creation — copy it somewhere safe. SankeyKit only ever stores a hash of the key, so support can't look it up or show it to you again; if you lose it, revoke it and create a new one.
#Using a key
Send it as a bearer token on every request:
Authorization: Bearer sk_live_YOUR_KEY#Revoking a key
Revoke a key from the same API keys page. Revocation takes effect immediately.
#Plan requirement
API access requires a paid plan. If your account's API quota is 0 (Free plan), every request — even with a valid key — returns:
{
"error": "api_not_included",
"message": "API access requires a paid plan",
"upgrade_url": "https://sankeykit.com/account/billing"
}with HTTP status 403. See Errors for possible responses.