Cancel a scheduled message

Cancel a message that was scheduled with scheduled_at but has not been delivered yet.

Cancel a message that was scheduled with scheduled_at but has not been delivered yet. The message is removed from the sending queue and deleted. This action cannot be undone.

Only a scheduled message still in pending can be cancelled: a message already sent, delivered or failed returns 409, as does one that was never scheduled (it is delivered on submit, so there is nothing to call back).

DELETE/v1/conversations/{id}/messages/{messageId}

Path Parameters

idstring
messageIdstring

Response Body

fetch("https://api.outstand.so/v1/conversations/string/messages/string", {  method: "DELETE"})
{
  "success": true,
  "message": "Message cancelled successfully"
}
{
  "success": false,
  "error": "Conversation not found"
}
{
  "success": false,
  "error": "Conversation not found"
}
{
  "success": false,
  "error": "Internal server error"
}