Skip to main content
POST
Set personal credential

Authorizations

Authorization
string
header
required

Organization or personal API key from Settings → API Keys.

Headers

X-Replicas-Api-Version
enum<string>

API version. 2026-10-07 returns snake_case responses. See versioning.

Available options:
2026-10-07

Path Parameters

provider
enum<string>
required

Credential provider. claude, codex, and muse subscriptions also support reads and deletes; connect those with the CLI.

Available options:
anthropic,
openai,
openrouter,
cursor,
muse-api-key,
opencode-go,
aster,
ollama,
openai-compatible,
bedrock,
claude-foundry,
codex-foundry,
claude,
codex,
muse

Body

application/json

Most providers take api_key. ollama: api_key, base_url, models. openai-compatible: base_url, api_key, models_url, authorization_header. bedrock: aws_access_key_id, aws_secret_access_key, aws_region, small_fast_model_region. claude-foundry: api_key, resource, sonnet_model, haiku_model, opus_model. codex-foundry: api_key, base_url, model.

api_key
string
base_url
string
models_url
string
authorization_header
string
aws_access_key_id
string
aws_secret_access_key
string
aws_region
string
small_fast_model_region
string
resource
string
sonnet_model
string
haiku_model
string
opus_model
string
model
string
models
string[]

Response

Success

success
boolean
required
credential_id
string