Create a new API key
Authentication
AuthorizationBearer
API key as bearer token in Authorization header
Request
This endpoint expects an object.
name
Name for the new API key
limit
Optional spending limit for the API key in USD
limit_reset
Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
Allowed values:
include_byok_in_limit
Whether to include BYOK usage in the limit
Response
API key created successfully
data
The created API key information
key
The actual API key string (only shown once)