Messages
Cancel a message
POST
Cancels dispatches the publisher has not claimed yet.
Required permission: messages.send. See the guide for details.
Error codes:
- 404
message.not_found - 422
message.not_cancellable
Every endpoint can also answer 401 (missing or invalid key), 403 (route outside the key's project or permission) and 429 rate_limit.exceeded.
ApiKeyheader
X-Api-Key<token>Project API key: nb_<prefix>_<secret>.
companyId*stringId of the company that owns the project (shown with the API key in the dashboard).
Format
uuidprojectId*stringId of the project the API key belongs to.
Format
uuidmessageId*stringFormat
uuidOK
application/json- response
messageId*stringFormat
uuidstatus*MessageStatusValue in
"Pending""Processing""Completed""PartiallyCompleted""Failed""Cancelled"cancelledDispatches*integerDispatches cancelled by this call. Dispatches already handed to the delivery queue are not cancelled.
Format
int32curl -X POST 'https://api.gbnotification.dokploy.geobilgi.net/api/v1/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel'Example Response
{ "messageId": "8540d774-4863-4d2b-b788-4ecb19412e85", "status": "Pending", "cancelledDispatches": 0}