cURL
curl --request POST \ --url https://apizap.loce.io/v1/message/image \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "sessionId": "<string>", "phone": "<string>", "imageUrl": "<string>", "quoteId": "<string>", "caption": "<string>" } '
{ "messageId": "<string>", "sessionId": "<string>", "phone": "<string>", "type": "<string>", "status": "<string>", "quoteId": "<string>", "createdAt": "2023-11-07T05:31:56Z" }
Envia imagens com legenda opcional.
await zap.sendMessageImage('my-session-id', { to: '5564999999999', imageUrl: 'https://files.loce.io/promo.png', caption: 'Confira o novo recurso!', });
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.
ID da mensagem original quando for uma resposta.
Imagem enfileirada.