Skip to main content
POST
Create Agent
Actual endpoint: POST https://api.ravan.ai/api/v1/agents/

Authorizations

string
required
Your Agni API key used to authenticate the request. Pass it in the X-Api-Key header. Find or rotate it from your Ravan AI account settings.

Body

Use the current API contract fields below. The actual request schema uses snake_case keys.
string
Optional widget settings ID associated with this agent.
string
Internal name for the agent.
string
Public-facing name that will be displayed to users.
string
LLM model identifier used for reasoning and responses.
string
Speech-to-speech model identifier used for real-time voice conversations.
string
Voice ID used for the agent’s TTS output.
number
Controls randomness in responses. Range: 0.0 to 1.0.
integer
Milliseconds of silence before the agent sends a reminder.
integer
Maximum reminder messages allowed during a call.
string
Background sound profile. Leave empty to disable.
number
Ambient sound volume. Range: 0 to 1.
boolean
Whether to end the call after a silence threshold is reached.
integer
Maximum call duration in milliseconds.
integer
Maximum time an outbound call rings before it is treated as unanswered.
boolean
Whether voicemail detection is enabled.
string
Message to leave when voicemail is detected.
integer
Timeout in milliseconds for voicemail detection.
boolean
Whether to allow emergency call transfer fallback.
string
Backup number to transfer the call to in an emergency. Use E.164 format.
object
Optional IVR configuration object.
string
Model used for post-call analysis, summaries, and structured extraction.
string
Prompt used to summarize call details after the conversation ends.
object
Tools enabled for the agent. This is an object keyed by tool name or tool ID.
object
Integration configuration for connected systems such as GHL or Salesforce.
string
Knowledge base ID to attach to the agent.
string
Initial message spoken by the agent when the conversation starts.
string
Who speaks first. Allowed values: agent or user.

Request Example


Response

boolean
Whether the request succeeded.
string
Human-readable status message. Example: Agent created successfully
object
Created agent object.