Create an API key

Creates a key with least-privilege scopes and optional restrictions (expires_at, ip_allowlist, subaccount_id for tenant-scoped keys). The secret is returned only in this response — store it immediately; all later reads return a masked prefix. Key creation is audit-logged.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
string
enum
required
Allowed:
scopes
array of objects
Defaults to read

Defaults to [read] — grant write/admin scopes explicitly.

scopes
Allowed:
string
ip_allowlist
array of strings
ip_allowlist
date-time
Headers
string
length ≤ 255

Any unique string (e.g. a UUID). Retries with the same key within 24h return the original response with Idempotent-Replayed: true. Same key + different body → 409.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json