Create API key

Creates a new API key. Requires a Provisioning API key.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired
Display name for the API key
limitdouble or nullOptional
Optional credit limit for the key
limit_resetenum or nullOptional

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_limitbooleanOptional
Whether to include BYOK usage in the credit limit

Response

Created API key
dataobject
keystring or null
The API key string itself. Only returned when creating a new key.