Create Call
Calling API
Create Call
Create Call.
POST
Create Call
Authorizations
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
The call type to create. Use
web_call for a browser-based call or outbound_call to place a phone call.The unique ID of the agent that should own, handle, or be assigned to this resource. Use the
id returned by the Agent API.The caller ID used for outbound calls, in E.164 format. The number must be purchased, imported, or connected in Agni. Example:
+14157774444.The destination phone number for an outbound call, in E.164 format. Example:
+12137774445.Custom key-value data to attach to the resource. Use this for IDs or attributes from your own systems.
Dynamic variables injected into the agent prompt for this call. Keys should match variables used in the prompt template.
Response
Whether the request succeeded.
Human-readable status message.
LiveKit access token.
Room ID for the created call session.
Call session UUID.
LiveKit WebSocket URL.
Authorizations
Body
application/json
Call type
Available options:
web_call, outbound_call Example:
"outbound_call"
Agent UUID
Example:
"<string>"
Caller ID (for outbound)
Example:
"<string>"
Destination phone (for outbound)
Example:
"<string>"
Custom key-value metadata
Example:
{}Variables for agent prompt
Example:
{}
