Skip to main content
POST
Save the organisation OpenRouter API key

Authorizations

Authorization
string
header
required

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

Body

application/json
api_key
string
required

The provider API key (Anthropic keys start with sk-ant-, OpenRouter keys with sk-or-).

Response

The key was stored

Whether an organisation API key is stored for a provider, with a masked preview.

configured
boolean
required
key_preview
string | null
required

Masked preview of the stored key; null when none is stored.