Skip to main content
POST
Call a customer on WhatsApp

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Headers

Idempotency-Key
string
required

Between 1 and 128 characters. A retry with the same key and body gets the first answer back and writes nothing; the same key with another body is refused with 409.

Required string length: 1 - 128

Path Parameters

agentId
string
required
Required string length: 1 - 128

Body

application/json
permissionTemplate
object
required

An approved template with a call permission request, sent when the customer has not allowed this number to call them. Its values are given as a template send's are.

to
string
required

The customer's WhatsApp number with its country code, such as 5215512345678. A +, spaces and dashes are ignored.

Required string length: 1 - 32
branchId
string

A published branch of the agent the conversation runs on. Checked before anything is sent; left out, the live version answers.

Required string length: 1 - 100
dynamicVariables
object

Values for the agent's dynamic variables, such as {{customer_name}}, kept for the conversation. Template values are not passed to the agent; repeat one here when the agent needs it. Names starting with secret__ are refused.

from
string

A phoneNumberId or phoneNumber from the template list. Required when the agent has more than one WhatsApp number.

Required string length: 1 - 64

Response

Placed, or waiting on the customer.

data
object
required