https://api.fiveapi.ai needs an API key. Keys belong to your account: every key of an account sees the same tasks, balance and limits.
Create a key
- Sign in to the developer console and open API Keys.
- Click Create key and give it a name that says where it runs, for example
prod-backendorstaging-worker. - Optionally narrow it down with scopes, an expiry date and an IP allowlist (see Key options).
- Copy the key. It starts with
sk_live_and is shown only once: Five API stores a hash, not the key.
Send the key
Send the key in theAuthorization header with the Bearer scheme. The x-api-key header is accepted as an alternative; use one or the other.
Scopes
Each key carries one or more scopes. New keys get all three unless you narrow them down.
A request that needs a scope the key lacks answers
403 insufficient_scope. For example, give a dashboard that only shows task status a video:read key.
Key options
An account can hold up to 20 active keys. Use separate keys for production, staging and CI so you can revoke one without touching the others. More keys never raise a limit: rate limits, the concurrency cap, the balance and idempotency keys are shared by the whole account.
Rotate or revoke a key
To rotate a key without downtime:- Create a new key with the same options.
- Deploy it to your servers.
- Revoke the old key in API Keys.
401 api_key_revoked.
Team members
Invite teammates to your account from the console. Each member has a role:
Members sign in to the console; only API keys call the API.