Evento: uazapi e Orkesio
Na uazapi: POST /send/event. Na Orkesio: POST /messages com "type": "event". A rota da uazapi continua funcionando.
Na uazapi as datas iam em segundos Unix (startTime, endTime); na Orkesio, em ISO. Com join_link, o evento vira chamada agendada (o isScheduleCall da uazapi).
Pedido
uazapi (POST /send/event)
{
"number": "5511999999999",
"name": "Reunião de apresentação",
"description": "Demonstração do produto",
"startTime": 1792249200,
"endTime": 1792252800,
"location": {
"name": "Escritório",
"address": "Av. Paulista, 1000"
},
"hasReminder": true,
"reminderOffsetSec": 900
}Orkesio (POST /messages)
{
"to": "5511999999999",
"type": "event",
"text": "Reunião de apresentação",
"description": "Demonstração do produto",
"start_at": "2026-10-17T15:00:00.000Z",
"end_at": "2026-10-17T16:00:00.000Z",
"location": {
"name": "Escritório",
"address": "Av. Paulista, 1000"
},
"reminder_minutes": 15
}Resposta
O content da uazapi é o proto do WhatsApp; aqui vai resumido (...).
uazapi
{
"id": "5511888888888:3EB05DCE1D4036FCE241C6",
"messageid": "3EB05DCE1D4036FCE241C6",
"chatid": "5511999999999@s.whatsapp.net",
"chatlid": "123456789012345@lid",
"fromMe": true,
"isGroup": false,
"groupName": "",
"sender": "987654321098765@lid",
"sender_pn": "5511888888888@s.whatsapp.net",
"sender_lid": "987654321098765@lid",
"senderName": "",
"messageType": "EventMessage",
"mediaType": "",
"messageTimestamp": 1792238400000,
"source": "web",
"status": "",
"text": "",
"content": {
"name": "Reunião de apresentação",
"description": "Demonstração do produto",
"startTime": 1792249200,
"endTime": 1792252800,
"location": {
"name": "Escritório"
}
},
"quoted": "",
"edited": "",
"reaction": "",
"vote": "",
"buttonOrListid": "",
"convertOptions": "",
"pinned": false,
"owner": "5511888888888",
"wasSentByApi": true,
"track_source": "",
"track_id": "",
"response": {
"status": "success",
"message": "Message sent successfully"
}
}Orkesio
{
"id": "3EB05DCE1D4036FCE241C6",
"chat_id": "5511999999999@s.whatsapp.net",
"author": {
"id": "5511888888888@s.whatsapp.net",
"phone": "5511888888888"
},
"direction": "out",
"sent_at": "2026-10-17T12:00:00.000Z",
"category": "unsent",
"type": "event",
"text": "Reunião de apresentação",
"description": "Demonstração do produto",
"start_at": "2026-10-17T15:00:00.000Z",
"end_at": "2026-10-17T16:00:00.000Z",
"location": {
"name": "Escritório",
"address": "Av. Paulista, 1000"
},
"sent_by": "api",
"status": "queued"
}