Make a call
#
Método#
/send-callPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/send-call
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceituaçãoIn this method you send a call to a number that has whatsapp, whether it is your contact or not.
#
Atributos#
ObrigatóriosAtributos | Tipo | Descrição |
---|---|---|
phone | string | Recipient telephone number in the format DDI DDD NUMERS Ex: 551199999999. IMPORTANT only send numbers without formatting or a mask |
#
OpcionaisAtributos | Tipo | Descrição |
---|---|---|
callDuration | number | Here you define how long you want the call to last, by default the call will last 5 seconds, but you can increase it up to 15 seconds |
#
Request Body#
Response#
200Attributes | Type | Description |
---|---|---|
zaapId | string | id on z-api |
messageId | string | id on whatsapp |
Exemplo
#
405In this case certify that you are sending the correct specification of the method. This means, verify if you sent a POST or GET as specified at the beginning of this topic.
#
415In case you receive 415 error, make sure to add the “Content-Type” of the object you are sending in the request headers, mostly “application/json”
#
Webhook ResponseLink for webhooks response (upon receiving) Webhook