Messages
Cancel and delete a message
No auth requiredDeletes the message. If it hasn't fired yet, this cancels it.
DELETE
/api/messages/{id}Parameters
Path
idstringrequiredThe scheduled message ID (`msg_…`).Responses
204The message was deleted.
401No valid API key was provided.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.403The caller is authenticated but lacks access to the resource.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.404The resource does not exist or is not visible to the caller.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.Example request
curl
curl -X DELETE https://agtls.dev/api/messages/{id}