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

string
The organization ID this agent belongs to.
string
The public-facing display name for the agent.
string
Agent status. Allowed values: ACTIVE, INACTIVE.
string
The LLM model identifier used by the agent for reasoning and responses.
string
The speech-to-speech model identifier used for realtime voice conversations.
string
The voice ID used for the agent speech output.
number
Controls response randomness. Lower values are more deterministic; higher values are more varied. Range: 0.01.0.
integer
Milliseconds of silence before the agent sends a reminder message.
integer
Maximum number of reminder messages the agent can send during a call.
string
The message the agent sends as a reminder during silence.
string
Background sound profile to play during calls. Leave empty to disable.
number
Volume for the ambient sound. Range: 0 (muted) to 1 (full volume).
integer
Maximum allowed call duration in milliseconds.
integer
Maximum time in milliseconds to let an outbound call ring before treating it as unanswered.
string
Message to leave when voicemail is detected.
integer
Maximum time in milliseconds to wait for voicemail detection.
array
Custom patterns used for voicemail detection. Pass null to disable.
string
Model used to generate post-call analysis such as summaries and sentiment.
array
Array of structured data fields to extract after the call.
array
Tools enabled for the agent. Pass null to disable.
string
Knowledge base ID to attach to this agent.
string
The first message the agent says when the conversation starts.
string
Who speaks first. Allowed values: agent, user.
string
The system prompt used by the agent. Supports template variables like {{current_time_Asia/Calcutta}}.
string[]
List of webhook URLs to receive call events.
integer
Duration of silence in milliseconds after which the call ends automatically.
number
Sensitivity for detecting user interruptions. Range: 0.01.0.
boolean
Whether the agent retains memory across turns in a conversation.
string
IANA timezone used for calendar scheduling.
string[]
Accent preferences for the agent voice.
boolean
Whether the agent expresses emotion in its voice.
string
Salesforce calendar ID for appointment scheduling.
string
Backup phone number to transfer the call to on failure (E.164 format).

Response

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