Place an outbound call

POSThttps://server.heyrik.com/api/v1/calls/dispatch

Headers

AuthorizationstringRequired

Use Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.

Get your API key

Parameters 4

Fields documented for this operation. See the request example for placement and structure.

phone_number_idstringRequired

Which of YOUR numbers to call from (GET /phone-numbers).

tostringRequired

Destination in E.164, e.g. +919876543210.

agent_idstring

Agent to speak. Defaults to the number's assigned agent.

variablesobject

Merged into the prompt — {{name}}, {{order_id}}…

Response

Explore the example values. This is not a complete response schema.

dataobject
Explore 2 properties
call_idstring

Example "call_1dd990f7"

statusstring

Example "dialing"

Error reference
POST/calls/dispatch
cURL
curl -X POST https://server.heyrik.com/api/v1/calls/dispatch \
  -H "Authorization: Bearer $HEYRIK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone_number_id": "sip_45723ca5",
    "to": "+919876543210",
    "agent_id": "agc_9f2a1c30",
    "variables": { "name": "Ravi", "order_id": "AC-8842" }
  }'
Response example
JSON
{ "data": { "call_id": "call_1dd990f7", "status": "dialing" } }

Illustrative examples · No live request is sent

Docs

Build sophisticated voice experiences with HeyRik.

© 2026 HeyRik · Support