Make an outbound phone call

Make an outbound phone call with one of your AI phone agents.

POST https://app.ringly.io/api/1.1/wf/make-outbound-call


Headers

You can find your Ringly.io API key in Settings > API key and then generate an API key.

NameValue

Content-Type

application/json

Authorization

<Your Ringly.io API key>

Body


from_number string required

A phone number you own in Ringly.io, in E.164 format. Example: "+12153331234".


to_number string required

The number you want to call, in E.164 format. Example: "+12153331234".


agent_tag string required

The tag of one your AI phone agents. Does not need to have a phone number, as long as the 'from_number' is yours. Example: "agent_124532h23i5ad2543b3289bsj3". You can find the agent_tag by going to your agent, and scroll all the way down. Note: not all agent_tag's start with "agent_"


customer_name string optional

The name of the customer you're calling. This way, you can use it in your agent's instructions and greeting. For example, use this as your greeting: Hey this is Jack, am I speaking with {{customer_name}}? Ringly.io will automatically replace {{customer_name}} with the actual customer name.


Example requests

curl --request POST \
  --url https://app.ringly.io/api/1.1/wf/make-outbound-call \
  --header 'Authorization: Your_Ringly_API_key' \
  --header 'Content-Type: application/json' \
  --data '{
  "from_number": "+1234567890",
  "to_number": "+19876543210",
  "agent_tag": "agent_1234abcd",
  "customer_name": "John"
}'

Response

{
  "from_number": "+12137771234",
  "to_number": "+12137771235",
  "agent_tag": "agent_b7893d54b31985d73b459",
  "call_status": "registered",
  "customer_name": "John"
}

Make sure you adhere to local laws and regulations when making outbound phone calls. Read our Terms of Service for more.

Last updated