Pular para o conteúdo principal
POST
/
send-contact
Send contact
curl --request POST \
  --url https://zapi.hubmessage.io/channels/{channel_id}/token/{channel_token}/send-contact \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "5511999999999",
  "contactName": "Hub Message Support",
  "contactPhone": "5511888888888"
}
'
{
  "zaapId": "3999984263738042930CD6ECDE9VDWSA",
  "messageId": "D241XXXX732339502B68",
  "id": "D241XXXX732339502B68"
}

Conceituação

Método para envio de contatos. Não é necessário que o contato esteja salvo na sua agenda — basta informar o nome e telefone.
A estrutura de resposta é idêntica à da Z-API. Seu código existente que processa esses retornos continuará funcionando sem alterações.

Autorizações

Authorization
string
header
obrigatório

Secret Key generated in the Hub Message Security panel

Corpo

application/json
phone
string
obrigatório

Recipient phone number (country code + area code + number)

Exemplo:

"5511999999999"

contactName
string
obrigatório

Name of the contact to share

contactPhone
string
obrigatório

Phone number of the contact to share

contactBusinessDescription
string

Contact description (not displayed in WhatsApp Web)

messageId
string

ID of an existing message to reply to

delayMessage
integer

Delay in seconds before sending (1-15)

Intervalo obrigatório: 1 <= x <= 15

Resposta

Message sent successfully

zaapId
string

Internal identifier

messageId
string

WhatsApp message ID

id
string

Same value as messageId (compatibility)