Request Headers
authorizationstring*required
The authorization token (required).
Request Body
api_keystring*required
The OpenRouter API key to be set for the user.
Response Body
dataarray*required
An array of API keys.
Items
API Keyobject
Properties
api_keystring*required
The API key.
createdstring*required
The RFC 3339 timestamp of when the API key was created.
expiresstringoptional
The RFC 3339 timestamp of when the API key expires.
disabledstringoptional
The RFC 3339 timestamp of when the API key was disabled.
namestring*required
The name of the API key.
descriptionstringoptional
The description of the API key.
costnumber*required
The total number of credits spent by using the API key.