POST
/
v0
/
calls
/
phone
curl --request POST \
  --url https://app.callrounded.com/api/v0/calls/phone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from_number": "+33912345678",
  "to_number": "+33612345678",
  "agent_id": "411b82c8-462a-4e1b-89bc-10ab3ce1ed29",
  "dynamic_variables_values": {
    "first_name": "John",
    "last_name": "Doe"
  }
}'
{
  "call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Description

Starts a new phone call. This endpoint is in private beta, email us at team@callrounded.com to get access.

Authorizations

Authorization
string
header
required

Authentication header containing your API key in the format "Bearer API_KEY".

Body

application/json
Information required to start the call
from_number
string
required

Phone number emitting the call, in E.164 format. It must be a phone number from your Rounded organization.

to_number
string
required

Phone number receiving the call, in E.164 format.

agent_id
string
required

Id of the agent making the call. You can get the id from your agent's config page URL, e.g. https://app.callrounded.com/agents/411b82c8-462a-4e1b-89bc-10ab3ce1ed29.

dynamic_variables_values
object

Values for the variables that should be initialized before call starts, provided as a JSON object.

Response

200
application/json
Call created successfully
call_id
string

Unique identifier of the initiated call.