Skip to main content
POST
Send text

Conceituação

Método para envio de mensagens de texto simples. Suporta formatação do WhatsApp, emojis e quebras de linha. Para adicionar quebras de linha na mensagem, utilize qualquer um dos formatos: \n, \r, \r\n ou %0a.

Autorizações

Authorization
string
header
obrigatório

Secret Key generated in the Omni Z-API Security panel

Corpo

application/json
phone
string
obrigatório

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

Exemplo:

"5511999999999"

message
string
obrigatório

Message text

Exemplo:

"Welcome to *Omni Z-API*!"

delayMessage
integer

Delay in seconds before sending (1-15)

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

Seconds to display "typing" status (1-15)

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

ID of a previously sent message to edit

Resposta

Message sent successfully

zaapId
string

Internal identifier

messageId
string

WhatsApp message ID

id
string

Same value as messageId (compatibility)