Delete scheduled message
Permanently delete a scheduled or queued message so it will not be sent.
The message is removed from the queue (a hard delete, not recoverable) in any status except while it is being sent; a cancellation record, which includes a copy of the message, is kept in its delivery log. Returns 404 if no message with this id is owned by the caller, and 409 while the message is being sent.
Request
curl -X DELETE "https://api.blueticks.co/v1/scheduled-messages/"{
"success": true,
"data": {
"id": "string",
"deleted": true
}
}{
"success": false,
"error": {
"code": "string",
"message": "string",
"request_id": "string",
"requestId": "string",
"details": [
{
"path": "string",
"code": "string",
"message": "string"
}
],
"candidates": [
{
"numberId": "string",
"phoneNumber": "string"
}
],
"upgrade": {
"url": "string",
"text": "string",
"reset_time": "string",
"seconds_remaining": 0,
"plan": {}
}
}
}Path Parameters
Response
Response Body
application/json
application/json
Update scheduled message
Edit a previously-queued message that has not dispatched yet (status `pending`).
Schedule message
Send or schedule a WhatsApp message to the chat named in the URL path (`{chatId}` — a phone number in E.164 format, e.g. `+15551234567`, or a WhatsApp chat id like `12345@c.us` / `1234567890@g.us` / `12345@newsletter`).