Create a virtual key with a budget
Keys
Create Key
POST
Create a virtual key with a budget
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Example:
"CI pipeline key"
Available options:
interactive, ci Monthly budget in USD
Example:
50
Max requests per minute. null or 0 = unlimited.
Example:
60
Max tokens per minute. null or 0 = unlimited.
Example:
100000
User who owns/uses this key. Must belong to the caller’s tenant. Omitted or null = ownerless (CI/service key).
Cost-center team this key bills to. Must belong to the caller’s tenant. When omitted and ownerId is set, defaults to that owner’s current team. Explicit null = unassigned (no team).
Response
201
Key created — rawKey shown once