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
}
]
}
}Previews configuration changes for agents (current behavior).
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
}
]
}
}API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication