Skip to main content
POST
/
api
/
agents
/
config
/
preview
cURL
curl --request POST \
  --url http://localhost:8080/api/agents/config/preview \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>' \
  --data '
{
  "apply_to_all": false,
  "agent_ids": [
    "agent_123",
    "agent_456"
  ],
  "configuration": {
    "llm_config": {
      "model": "gpt-4",
      "provider": "openai"
    },
    "tts_config": {
      "provider": "elevenlabs",
      "voice_id": "new_voice_id"
    }
  }
}
'
{
  "message": "Configuration preview generated successfully",
  "status": "success",
  "error": null,
  "data": {
    "organization_id": "org_456",
    "total_agents": 2,
    "agents_with_changes": 2,
    "apply_to_all": false,
    "preview": [
      {
        "agent_id": "agent_123",
        "agent_name": "Agent 1",
        "status": "active",
        "current_config": {
          "llm_model": "gpt-3.5-turbo",
          "llm_provider": "openai",
          "tts_provider": "elevenlabs",
          "voice_id": "old_voice_id"
        },
        "new_config": {
          "llm_model": "gpt-4",
          "llm_provider": "openai",
          "tts_provider": "elevenlabs",
          "voice_id": "new_voice_id"
        },
        "will_update": true
      }
    ]
  }
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Body

application/json
apply_to_all
boolean
agent_ids
string[]
configuration
object

Response

200 - application/json

OK

message
string
status
string
error
string
data
object