Skip to main content
POST
Create or replace the BYOK key for a provider

Authorizations

Authorization
string
header
required

SDK API key (tl_...) or Clerk session JWT

Body

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

Raw provider API key. Stored AES-256-GCM encrypted; never returned.

Response

BYOK key stored

id
string<uuid>
required
provider
enum<string>
required
Available options:
openai,
anthropic
created_at
string<date-time>
required