Português (BR)
curl -X POST "https://api.leavo.ai/backend/messages/send" \ -H "Authorization: Bearer sua_chave_aqui" \ -H "Content-Type: application/json" \ -d '{ "channel_id": "uuid-do-canal", "remote_jid": "[email protected]", "content": "Olá! Como posso ajudar?", "message_type": "text" }'
{ "success": true, "message_id": "msg-uuid", "timestamp": "2024-01-15T10:30:00Z" }
Envia uma mensagem de texto ou mídia
[email protected]
text
image
video
audio
document
curl -X POST "https://api.leavo.ai/backend/messages/send" \ -H "Authorization: Bearer sua_chave_aqui" \ -H "Content-Type: application/json" \ -d '{ "channel_id": "uuid-do-canal", "remote_jid": "[email protected]", "content": "Veja nossa proposta!", "message_type": "image", "url": "https://exemplo.com/proposta.jpg" }'