v1

latestOpenAPI 3.1.02026-08-046031.9 KB
Team Management

Create API Key

Creates a new API key for the authenticated team. Optionally specify a name, rate limit, and budget for the API key.

post/api-keys

Request body

namestring

Optional name for the API key

rateLimitinteger

Optional rate limit for the API key (requests per second)

budgetCentsinteger nullable

Optional spending budget for the API key, in cents. Set to null to remove the budget.

Example request

{
  "name": "Production API Key",
  "rateLimit": 1000,
  "budgetCents": 5000
}

Response

API key created successfully