Skip to main content
POST

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Body

application/json
toNumber
string
required

The number to call, starting with + and the country code.

Pattern: ^\+
Example:

"+966501234567"

phoneNumber
string
required

Your Hamsa number that places the call (Twilio or SIP), as you added it.

Example:

"+14155550100"

agentDetails
object

An agent defined for this call only, instead of voiceAgentId and params. Not saved.

voiceAgentId
string<uuid>

Agent that talks on the call. Can't be combined with agentDetails (VoiceAgentIdForbiddenWithAgentDetails). If omitted, the agent assigned to phoneNumber talks.

Example:

"d949f13f-40d2-4e48-ac86-b66633070603"

params
object

Values for the agent's variables on this call, as {"name": "value"}. Use with voiceAgentId; with agentDetails it must be empty (ParamsRequiredWithAgentDetails). Names are written as {{name}}, so each must be letters, digits and _, not starting with a digit, and not true, false, none, and, or, not, in, is, if or else (true, false and none in any case). Other names are refused with a JinjaName… error that suggests a spelling, for example customer_name for customer name.

Example:
tools
string[]
deprecated

Legacy field, kept for compatibility. Leave it out.

voiceEnablement
boolean
default:false
deprecated

Legacy field, kept for compatibility. Leave it out.

Response

Created

success
boolean
default:false
message
string
default:success
data
object