cURL
curl --request POST \ --url https://api.timelyai.com.br/v1/conversations/{id}/messages \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "content": "<string>", "sender_type": "agent", "message_type": "text", "media_url": "<string>", "media_type": "<string>" } '
{ "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "content": "<string>", "sender_type": "customer", "message_type": "text", "media_url": "<string>", "media_type": "<string>", "is_edited": true, "created_at": "2023-11-07T05:31:56Z" } }
Envia uma mensagem na conversa.
Chave de API obtida no dashboard
ID da conversa
1 - 65535
customer
agent
ai
system
bot
text
image
file
audio
video
Mensagem enviada
Show child attributes