Skip to main content
PUT
Set the dojo provider API key for a provider (admin-only).

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Body

application/json
provider
enum<string>
required
Available options:
anthropic,
openai,
google
key
string
required

The provider API key (cleartext) — encrypted at rest, never echoed.

Minimum string length: 8
key_ref
string

Optional human label.

Response

Provider key stored. Returns non-secret metadata only.

provider
enum<string>
required
Available options:
anthropic,
openai,
google
key_prefix
string
required

Non-secret leading characters, for display.

updated_at
string<date-time>
required
key_ref
string | null