v52

latestOpenAPI 3.0.1raw.githubusercontent.com2026-08-01353775.9 KB
API Keys

Create a new API key

Generate a new API key pair (clientId + clientSecret) for the authenticated subscriber. The clientSecret is only returned once on creation.

post/v1/api-keys

Request body

envstring

Environment label for the API key (e.g., "api", "production", "staging")

Example request

{
  "env": "api"
}

Response

API key created successfully. The clientSecret is only returned once.

idstring uuid required

Unique identifier for the API key

clientIdstring required

Public client ID used in API requests

clientSecretstring required

Secret key for signing requests. Only returned on creation - store securely.

envstring required

Environment label for the API key

createdAtstring date-time required

Timestamp when the API key was created

Example response

{
  "id": "e63d04d0-cfd4-46ad-9186-20ee31a8563b",
  "clientId": "pk_lori_client_12345678deadbeef",
  "clientSecret": "sk_lori_secret_abcdefghijklmnop...",
  "env": "production",
  "createdAt": "2024-01-15T10:00:00.000Z"
}