Skip to main content
PUT
/
ai
/
settings
Update AI settings
curl --request PUT \
  --url https://api.wacht.dev/ai/settings \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "gemini_api_key": "<string>",
  "openai_api_key": "<string>",
  "anthropic_api_key": "<string>"
}
'
{
  "gemini_api_key_set": true,
  "openai_api_key_set": false,
  "anthropic_api_key_set": true
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Body

application/json
gemini_api_key
string

Gemini API key

openai_api_key
string

OpenAI API key

anthropic_api_key
string

Anthropic API key

Response

200 - application/json

AI settings updated

gemini_api_key_set
boolean

Whether Gemini API key is set

Example:

true

openai_api_key_set
boolean

Whether OpenAI API key is set

Example:

false

anthropic_api_key_set
boolean

Whether Anthropic API key is set

Example:

true