Skip to main content
GET
/
api
/
ai
/
openrouter
/
api-key
Get active OpenRouter API key
curl --request GET \
  --url https://api.example.com/api/ai/openrouter/api-key \
  --header 'Authorization: Bearer <token>'
{
  "apiKey": "<string>",
  "maskedKey": "<string>"
}

Authorizations

Authorization
string
header
required

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

Response

Active OpenRouter API key details

apiKey
string

Active OpenRouter API key for admin copy workflows

maskedKey
string

Masked OpenRouter API key for display