curl -X POST https://api.ravan.ai/api/v1/agents/ \ -H "X-Api-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "widget_settings_id": "019d1fdb-6701-762d-97bd-93fc72606d7c", "name": "Sales Assistant", "agent_name": "Ava", "model": "gpt-4o", "temperature": 0.7, "begin_message": "Hello! This is Ava. How can I help you today?", "start_speaker": "agent" }'
{ "success": true, "message": "Agent created successfully", "data": { "id": "019d1fdb-98e9-7c87-86c7-321e2fa98733", "organization_id": "1268c1f0-19f3-47db-aefb-c16a7c3ace6e", "widget_settings_id": "019d1fdb-6701-762d-97bd-93fc72606d7c", "name": "Sales Assistant", "agent_name": "Ava", "status": "AGENT_STATUS_ACTIVE", "model": "gpt-4o", "temperature": 0.7, "selected_tools": [], "integrations": null, "begin_message": "Hello! This is Ava. How can I help you today?", "start_speaker": "agent", "created_at": "2026-03-20T10:30:00Z", "updated_at": "2026-03-20T10:30:00Z" }}
Agent API
Create Agent
Create a new voice AI agent with customizable voice, LLM model, telephony settings, and tool integrations.
POST
/
api
/
v1
/
agents
curl -X POST https://api.ravan.ai/api/v1/agents/ \ -H "X-Api-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "widget_settings_id": "019d1fdb-6701-762d-97bd-93fc72606d7c", "name": "Sales Assistant", "agent_name": "Ava", "model": "gpt-4o", "temperature": 0.7, "begin_message": "Hello! This is Ava. How can I help you today?", "start_speaker": "agent" }'
{ "success": true, "message": "Agent created successfully", "data": { "id": "019d1fdb-98e9-7c87-86c7-321e2fa98733", "organization_id": "1268c1f0-19f3-47db-aefb-c16a7c3ace6e", "widget_settings_id": "019d1fdb-6701-762d-97bd-93fc72606d7c", "name": "Sales Assistant", "agent_name": "Ava", "status": "AGENT_STATUS_ACTIVE", "model": "gpt-4o", "temperature": 0.7, "selected_tools": [], "integrations": null, "begin_message": "Hello! This is Ava. How can I help you today?", "start_speaker": "agent", "created_at": "2026-03-20T10:30:00Z", "updated_at": "2026-03-20T10:30:00Z" }}
ISO 8601 timestamp when the agent was last modified.
curl -X POST https://api.ravan.ai/api/v1/agents/ \ -H "X-Api-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "widget_settings_id": "019d1fdb-6701-762d-97bd-93fc72606d7c", "name": "Sales Assistant", "agent_name": "Ava", "model": "gpt-4o", "temperature": 0.7, "begin_message": "Hello! This is Ava. How can I help you today?", "start_speaker": "agent" }'
{ "success": true, "message": "Agent created successfully", "data": { "id": "019d1fdb-98e9-7c87-86c7-321e2fa98733", "organization_id": "1268c1f0-19f3-47db-aefb-c16a7c3ace6e", "widget_settings_id": "019d1fdb-6701-762d-97bd-93fc72606d7c", "name": "Sales Assistant", "agent_name": "Ava", "status": "AGENT_STATUS_ACTIVE", "model": "gpt-4o", "temperature": 0.7, "selected_tools": [], "integrations": null, "begin_message": "Hello! This is Ava. How can I help you today?", "start_speaker": "agent", "created_at": "2026-03-20T10:30:00Z", "updated_at": "2026-03-20T10:30:00Z" }}