Skip to main content
POST
Add a workspace key

Authorizations

Authorization
string
header
required

An API key (zode_tok_...). Create one in the console under API keys (https://console.zode.dev/tokens), or with zode login.

Body

application/json
provider
enum<string>
required
Available options:
anthropic,
openai,
openrouter,
gemini,
deepseek,
bedrock,
vertex
api_key
string
required
write-only

An API key (8-512 visible characters). Bedrock: a Bedrock API key, up to 4096. Vertex: a service account JSON file (up to 16 KB) or a Vertex API key.

Required string length: 8 - 16384
label
string
Maximum string length: 64

Response

Added

id
string
required
Pattern: ^aik_[a-z2-7]{16}$
provider
string
required
position
integer
required

0 is tried first

label
string
required
hint
string
required

Last 4 characters

created_by
string
required
created_at
string<date-time>
required