Skip to main content
PUT
/
api
/
agent-server
/
provider-configs
/
{provider_type}
Create or update provider config
curl --request PUT \
  --url http://localhost:6060/api/agent-server/provider-configs/{provider_type} \
  --header 'Content-Type: application/json' \
  --data '
{
  "base_url": "<string>",
  "custom_headers": {}
}
'
{
  "error": true,
  "message": "<string>",
  "data": {
    "provider_type": "<string>",
    "base_url": "<string>",
    "custom_headers": {}
  },
  "status": 123,
  "errorDetails": {}
}

Path Parameters

provider_type
enum<string>
required
Available options:
OpenAI,
Anthropic,
Gemini,
xAI

Body

application/json
base_url
string
custom_headers
object

Response

Provider config saved successfully

error
boolean
message
string
data
object
status
integer
errorDetails
object