cURL
curl --request POST \ --url https://apizap.loce.io/v1/message/text \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "sessionId": "<string>", "phone": "<string>", "message": "<string>", "quoteId": "<string>" } '
{ "messageId": "<string>", "sessionId": "<string>", "phone": "<string>", "type": "<string>", "status": "<string>", "quoteId": "<string>", "createdAt": "2023-11-07T05:31:56Z" }
Envia uma mensagem de texto simples para o contato informado.
await zap.sendMessageText('my-session-id', { to: '5564999999999', text: 'Olá 👋', });
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Sessão que enviará a mensagem.
Destino no formato MSISDN com DDI e DDD.
Conteúdo textual enviado ao contato.
ID da mensagem original quando for uma resposta.
Mensagem enviada.