Skip to main content
PUT
Save the workspace's own model key for a provider

Authorizations

X-Api-Key
string
header
required

Workspace API key, created in the dashboard under Settings → API Keys.

Path Parameters

workspaceId
string<uuid>
required

Workspace UUID. Caller must have access.

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

Body

application/json
key
string
required

The provider API key (sk-… for OpenAI, sk-ant-api… for Anthropic).

Maximum string length: 512

Response

The saved key's metadata

data
object
required