API Keys

Manage API keys for Partner API authentication. Create keys with optional scopes and expiration, list existing keys, and revoke keys when no longer needed.

Important: When you create an API key, the full key value (plainKey) is returned only once. Store it securely; it cannot be retrieved later.

List API Keys

Retrieve all API keys for the partner account.

Request:

GET /partner/api-keys

Response:

{
  "apiKeys": [
    {
      "id": "uuid",
      "name": "Production Key",
      "keyPrefix": "pk_live_abc123",
      "scopes": ["read", "write"],
      "status": "active",
      "expiresAt": "2026-01-01T00:00:00Z",
      "lastUsedAt": "2025-02-27T10:30:00Z",
      "createdAt": "2025-01-01T00:00:00Z"
    }
  ]
}

Example:


Create API Key

Create a new API key. The full key value is returned only in this response.

Request:

Body:

Field
Type
Required
Description

name

string

Yes

Descriptive name for the key

scopes

string[]

No

Array of scopes: read, write, admin. Omit for full access

expiresAt

string

No

ISO 8601 expiration date. Omit for no expiration

Response:

Important: Store plainKey immediately. It will not be shown again.

Example:


Revoke API Key

Permanently revoke an API key. Revoked keys cannot be used for authentication.

Request:

Parameters:

Parameter
Type
Description

keyId

string

UUID of the API key to revoke

Response: 204 No Content

Example:

Last updated