API keys

API keys (pk_live_…) are what your backend uses to call poolse. Never put one in a browser or mobile app. How keys and user tokens fit together: Authentication.

Create a key

  1. Open API keys in the sidebar and click + Create API key.
  2. Fill in Create an API key:
    • Name: up to 64 characters. Name it after where it runs, such as production or staging.
    • Scopes: what the key may do. users:manage is ticked for you.
  3. Click Create key. The Save this key now dialog shows the full key. Click Copy to clipboard, store it in your secret manager, then I've saved it — close.

Scopes can't be changed after creation. Create a new key instead.

Scopes

ScopeHint in the dashboardUnlocks
users:managemint user tokensPOST /v1/users/:user_id/tokens. Every integration needs this.
tokens:adminrevoke user tokensPOST /admin/v1/tokens/revoke
webhooks:adminmanage webhooksEvery /v1/webhooks* endpoint
audit:readread the audit logGET /v1/audit_logs

Every key, whatever its scopes, can call POST /v1/users, GET /v1/whoami and the call history endpoints (GET /v1/calls, GET /v1/calls/:id). A key without users:manage cannot mint user tokens: that call returns 403 forbidden.

Give each deployment only the scopes it needs. An analytics job that reads the audit log needs audit:read and nothing else.

The key list

Active keys shows, for each key:

ColumnShows
NameThe name you gave it.
PrefixThe start of the key, so you can tell which key a service uses.
ScopesIts scopes, or "none".
Last usedWhen it last authenticated a request, or "Never".
CreatedWhen it was created.

Revoked keys move to Revoked keys below, kept for reference.

Revoke a key

Click Revoke on the key's row, then Revoke again to confirm (or Cancel). The key is refused from its next request.

User tokens already minted with that key keep working until they expire, at most one hour later. To cut one off sooner, revoke it with POST /admin/v1/tokens/revoke (needs tokens:admin); see Authentication.

Rotate a key

Create the new key, deploy it, then revoke the old one. Step by step: Token rotation.

API keys · Dashboard · poolse docs