Mensagens Agendadas
Listagem paginada de mensagens agendadas com filtros opcionais.
Limite superior de busca, sempre em fuso horário UTM.
Limite inferior de busca, sempre em fuso horário UTM.
Status da mensagem agendada para filtrar
Tipo da mensagem agendada para filtrar
ID ou número de telefone do canal cadastrado na conta.
ID ou número de telefone do destinatário.
ID ou nome do usuário
ID ou nome da equipe
Limite superior de busca, sempre em fuso horário UTM.
Limite inferior de busca, sempre em fuso horário UTM.
Limite superior de busca, sempre em fuso horário UTM.
Limite inferior de busca, sempre em fuso horário UTM.
Número da página a ser obtida.
1Tamanho da página a ser obtida.
15Nome do campo para ser utilizado como pivô da ordenação.
Determina se a ordenação deve ser crescente ou decrescente.
Success
Server Error
GET /chat/v1/scheduled-message HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
{
"pageNumber": 1,
"pageSize": 15,
"orderBy": "text",
"orderDirection": "ASCENDING",
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:30:07.242Z",
"updatedAt": "2025-11-06T22:30:07.242Z",
"active": true,
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"sessionId": "123e4567-e89b-12d3-a456-426614174000",
"contactId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"channelId": "123e4567-e89b-12d3-a456-426614174000",
"departmentId": "123e4567-e89b-12d3-a456-426614174000",
"status": "SCHEDULED",
"type": "TEMPLATE",
"templateId": "123e4567-e89b-12d3-a456-426614174000",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"scheduling": "2025-11-06T22:30:07.242Z",
"hiddenSession": true,
"failureReason": "text",
"contact": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"phonenumberFormatted": "text",
"instagram": "text",
"pictureUrl": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"channel": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"humanId": "text",
"type": "GupShup_WhatsApp"
},
"department": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"chatbot": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"template": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"templateParams": {
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"file": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"extension": "text",
"mimeType": "text",
"type": "UNDEFINED",
"publicUrl": "text",
"publicUrlDownload": "text",
"size": 1,
"isThumbnail": true,
"thumbnail": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"publicUrl": "text"
}
}
}
}
}
],
"totalItems": 1,
"totalPages": 1,
"hasMorePages": true
}Cria uma nova mensagem agendada com os dados fornecidos.
Número de telefone do canal cadastrado na conta.
Número de telefone do destinatário.
Tipo da mensagem agendada
ID do modelo de mensagem para a mensagem a ser enviada.
ID do bot que será ativado após a resposta do contato.
Data e hora programada para envio da mensagem
Indica se a sessão deve ficar oculta (padrão: false)
Success
Server Error
POST /chat/v1/scheduled-message HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 378
{
"from": "text",
"to": "text",
"department": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"type": "TEMPLATE",
"templateId": "text",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"scheduling": "2025-11-06T22:30:07.242Z",
"hiddenSession": true,
"templateParams": {
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"fileUrl": "text",
"fileId": "123e4567-e89b-12d3-a456-426614174000"
}
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:30:07.242Z",
"updatedAt": "2025-11-06T22:30:07.242Z",
"active": true,
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"contactId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"channelId": "123e4567-e89b-12d3-a456-426614174000",
"departmentId": "123e4567-e89b-12d3-a456-426614174000",
"status": "SCHEDULED",
"type": "TEMPLATE",
"templateId": "123e4567-e89b-12d3-a456-426614174000",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"scheduling": "2025-11-06T22:30:07.242Z",
"hiddenSession": true,
"failureReason": "text",
"contact": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"phonenumberFormatted": "text",
"instagram": "text",
"pictureUrl": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"channel": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"humanId": "text",
"type": "GupShup_WhatsApp"
},
"department": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"chatbot": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"template": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"templateParams": {
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"file": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"extension": "text",
"mimeType": "text",
"type": "UNDEFINED",
"publicUrl": "text",
"publicUrlDownload": "text",
"size": 1,
"isThumbnail": true,
"thumbnail": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"publicUrl": "text"
}
}
}
}
}Retorna os detalhes de uma mensagem agendada específica.
ID da mensagem agendada
Success
Server Error
GET /chat/v1/scheduled-message/{id} HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:30:07.242Z",
"updatedAt": "2025-11-06T22:30:07.242Z",
"active": true,
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"sessionId": "123e4567-e89b-12d3-a456-426614174000",
"contactId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"channelId": "123e4567-e89b-12d3-a456-426614174000",
"departmentId": "123e4567-e89b-12d3-a456-426614174000",
"status": "SCHEDULED",
"type": "TEMPLATE",
"templateId": "123e4567-e89b-12d3-a456-426614174000",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"scheduling": "2025-11-06T22:30:07.242Z",
"hiddenSession": true,
"failureReason": "text",
"contact": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"phonenumberFormatted": "text",
"instagram": "text",
"pictureUrl": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"channel": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"humanId": "text",
"type": "GupShup_WhatsApp"
},
"department": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"chatbot": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"template": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"templateParams": {
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"file": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"extension": "text",
"mimeType": "text",
"type": "UNDEFINED",
"publicUrl": "text",
"publicUrlDownload": "text",
"size": 1,
"isThumbnail": true,
"thumbnail": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"publicUrl": "text"
}
}
}
}
}Atualiza uma mensagem agendada existente. Mensagens já enviadas não podem ser editadas.
ID da mensagem agendada
Número de telefone do destinatário.
Número de telefone do canal cadastrado na conta.
Tipo da mensagem agendada
ID do modelo de mensagem para a mensagem a ser enviada.
ID do bot que será ativado após a resposta do contato.
Data e hora programada para envio da mensagem
Indica se a sessão deve ficar oculta (padrão: false)
Success
Server Error
PUT /chat/v1/scheduled-message/{id} HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 401
{
"fields": [
"Undefined"
],
"to": "text",
"from": "text",
"department": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"type": "TEMPLATE",
"templateId": "text",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"scheduling": "2025-11-06T22:30:07.242Z",
"hiddenSession": true,
"templateParams": {
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"fileUrl": "text",
"fileId": "123e4567-e89b-12d3-a456-426614174000"
}
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:30:07.242Z",
"updatedAt": "2025-11-06T22:30:07.242Z",
"active": true,
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"contactId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"channelId": "123e4567-e89b-12d3-a456-426614174000",
"departmentId": "123e4567-e89b-12d3-a456-426614174000",
"status": "SCHEDULED",
"type": "TEMPLATE",
"templateId": "123e4567-e89b-12d3-a456-426614174000",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"scheduling": "2025-11-06T22:30:07.242Z",
"hiddenSession": true,
"failureReason": "text",
"contact": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"phonenumberFormatted": "text",
"instagram": "text",
"pictureUrl": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"channel": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"humanId": "text",
"type": "GupShup_WhatsApp"
},
"department": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"chatbot": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"template": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"templateParams": {
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"file": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"extension": "text",
"mimeType": "text",
"type": "UNDEFINED",
"publicUrl": "text",
"publicUrlDownload": "text",
"size": 1,
"isThumbnail": true,
"thumbnail": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"publicUrl": "text"
}
}
}
}
}Cancela uma mensagem agendada específica. Apenas mensagens com status agendado podem ser canceladas.
ID da mensagem agendada
Success
Sem conteúdo
Server Error
POST /chat/v1/scheduled-message/{id}/cancel HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Accept: */*
Sem conteúdo
Cancela em massa mensagens agendadas. Apenas mensagens com status agendado podem ser canceladas.
Success
Server Error
POST /chat/v1/scheduled-message/batch-cancel HTTP/1.1
Host: api.wts.chat
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 40
[
"123e4567-e89b-12d3-a456-426614174000"
][
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-11-06T22:30:07.242Z",
"updatedAt": "2025-11-06T22:30:07.242Z",
"active": true,
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"sessionId": "123e4567-e89b-12d3-a456-426614174000",
"contactId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"channelId": "123e4567-e89b-12d3-a456-426614174000",
"departmentId": "123e4567-e89b-12d3-a456-426614174000",
"status": "SCHEDULED",
"type": "TEMPLATE",
"templateId": "123e4567-e89b-12d3-a456-426614174000",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"scheduling": "2025-11-06T22:30:07.242Z",
"hiddenSession": true,
"failureReason": "text",
"contact": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"phonenumberFormatted": "text",
"instagram": "text",
"pictureUrl": "text"
},
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"channel": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"humanId": "text",
"type": "GupShup_WhatsApp"
},
"department": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"chatbot": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"botId": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"template": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"templateParams": {
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"file": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"extension": "text",
"mimeType": "text",
"type": "UNDEFINED",
"publicUrl": "text",
"publicUrlDownload": "text",
"size": 1,
"isThumbnail": true,
"thumbnail": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"publicUrl": "text"
}
}
}
}
}
]Atualizado