Skip to main content
POST
/
v1
/
model-configurations
Create Model Configuration
curl --request POST \
  --url https://api.cyberdesk.io/v1/model-configurations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "provider": "<string>",
  "model": "<string>",
  "description": "<string>",
  "temperature": 123,
  "max_tokens": 123,
  "timeout_seconds": 123,
  "max_retries": 123,
  "additional_params": {},
  "is_computer_use_model": false,
  "api_key": "<string>"
}
'
{
  "name": "<string>",
  "provider": "<string>",
  "model": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_system_default": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "temperature": 123,
  "max_tokens": 123,
  "timeout_seconds": 123,
  "max_retries": 123,
  "additional_params": {},
  "is_computer_use_model": false,
  "organization_id": "<string>",
  "api_key_alias": "<string>"
}

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string

Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

application/json

Create a model configuration.

api_key is the raw secret material; it will be stored in Basis Theory and only the alias is persisted. For providers that Cyberdesk does not provide keys for, api_key is required.

name
string
required
Required string length: 1 - 255
provider
string
required

LangChain provider name (e.g. 'anthropic', 'openai').

Required string length: 1 - 50
model
string
required

Provider model identifier (e.g. 'claude-sonnet-4-5-20250929').

Required string length: 1 - 255
description
string | null
temperature
number | null
max_tokens
integer | null
timeout_seconds
number | null
max_retries
integer | null
additional_params
Additional Params · object

Provider-specific kwargs passed through to LangChain.

is_computer_use_model
boolean
default:false

True if this model has native computer use capabilities. If True, can be used for main agent, focused actions, and fallbacks for those agents.

api_key
string | null

Raw API key (stored in Basis Theory; never persisted directly).

Response

Successful Response

API response schema for model configurations.

name
string
required
Required string length: 1 - 255
provider
string
required

LangChain provider name (e.g. 'anthropic', 'openai').

Required string length: 1 - 50
model
string
required

Provider model identifier (e.g. 'claude-sonnet-4-5-20250929').

Required string length: 1 - 255
id
string<uuid>
required
is_system_default
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
description
string | null
temperature
number | null
max_tokens
integer | null
timeout_seconds
number | null
max_retries
integer | null
additional_params
Additional Params · object

Provider-specific kwargs passed through to LangChain.

is_computer_use_model
boolean
default:false

True if this model has native computer use capabilities. If True, can be used for main agent, focused actions, and fallbacks for those agents.

organization_id
string | null
api_key_alias
string | null

Basis Theory token id (alias) used to resolve api_key at runtime.