Version 2.1.1792967583 · latest Download OpenAPI Markdown

API keys

API keys of the current user. The plaintext key is returned only once at creation, and scopes can be limited per domain.

api-keysUser accountsAuthentication: User4 endpoints

List API keys

GET/api/v2/api-keys
Authentication: User

Query parameters

FieldTypeRequiredDescription
pageinteger— Page number, starting from 1
Default 1
page_sizeinteger— Items per page
Default 20
sortstring— Sort fields, comma-separated; prefix `-` for descending, e.g. `-created_at,id`

Create API key

POST/api/v2/api-keys
Authentication: User

Request body application/json

FieldTypeRequiredDescription
allow_ipsApiKeyAllowIps— Caller IP allowlist (single IPs only, at most 200); empty means no restriction. Calls from other IPs get 401 as invalid credentials
expires_atstring— Expires at
namestringRequired Name
scopesstring[]Required Granted scopes, same values as scopes at creation

Update API key IP allowlist or reset it

PUT/api/v2/api-keys/{id}
Authentication: User

Request body application/json

FieldTypeRequiredDescription
allow_ipsApiKeyAllowIps— Caller IP allowlist (single IPs only, at most 200); empty means no restriction. Calls from other IPs get 401 as invalid credentials
resetboolean— When true, issue a new key; the old one stops working at once

Delete API key

DELETE/api/v2/api-keys/{id}
Authentication: User

API keys object

FieldTypeRequiredDescription
allow_ipsApiKeyAllowIps— Caller IP allowlist (single IPs only, at most 200); empty means no restriction. Calls from other IPs get 401 as invalid credentials
created_atstring— Created at
read-only
expires_atstring— Expires at
idinteger— Record ID
read-only
last_used_atstring— Time of last use; null if never used
namestring— Name
prefixstring— First few characters of the plaintext key, for recognition
resetboolean— When true, issue a new key; the old one stops working at once
scopesstring[]— Granted scopes, same values as scopes at creation
secretstring— Plaintext key (the X-API-Key value), returned only once at creation; only a hash is stored
updated_atstring— Updated at
read-only