Skip to main content
POST
/
call
Call
curl --request POST \
  --url https://api.osvi.ai/call \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_uuid": "agent_IsxxxxSf_60EhxxxxMGbz-Rxxg",
  "phone_number": "98xxxx7890",
  "country_code": "IN",
  "system_prompt": "",
  "webhook_url": "http://<your domain>/webhook",
  "person_name": "John Doe",
  "additional_data": {
    "questions": "<custom questions agent should ask>"
  }
}
'
{
  "status": "success",
  "message": "Call initiated successfully",
  "call_id": "call_abc123xyz"
}

Authorizations

API-Token
string
header
required

Body

application/json
agent_uuid
string
required
Example:

"agent_IsxxxxSf_60EhxxxxMGbz-Rxxg"

phone_number
string
required
Example:

"98xxxx7890"

country_code
string
required
Example:

"IN"

system_prompt
string
Example:

""

webhook_url
string
Example:

"http://<your domain>/webhook"

person_name
string
Example:

"John Doe"

additional_data
object
Example:
{
"questions": "<custom questions agent should ask>"
}

Response

Successful response

status
string
Example:

"success"

message
string
Example:

"Call initiated successfully"

call_id
string
Example:

"call_abc123xyz"