Skip to main content
POST
/
api
/
v1
/
calling
/
create-call
Create Call
curl --request POST \
  --url https://api.ravan.ai/api/v1/calling/create-call \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "type": "web_call",
  "agent_id": "<string>",
  "from_phone_number": "<string>",
  "to_phone_number": "<string>",
  "metadata": {},
  "prompt_dynamic_variables": {}
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "url": "<string>",
    "access_token": "<string>",
    "session_id": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.ravan.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Api-Key
string
required
Your Agni API key. Find it in your RavanAi.

Body

type
string
required
Call type: web_call or outbound_call
agent_id
string
required
Agent UUID
from_phone_number
string
Caller ID (purchased number, required for outbound)
to_phone_number
string
Destination phone number (required for outbound)
metadata
object
Custom key-value metadata
prompt_dynamic_variables
object
Variables for agent prompt

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
data
object
Returned data.

Authorizations

X-Api-Key
string
header
required

Body

application/json
type
enum<string>
required

Call type

Available options:
web_call,
outbound_call
agent_id
string
required

Agent UUID

from_phone_number
string

Caller ID (for outbound)

to_phone_number
string

Destination phone (for outbound)

metadata
object

Custom key-value metadata

prompt_dynamic_variables
object

Variables for agent prompt

Response

200 - application/json

Successful response

success
boolean
message
string
data
object