light-mode-image
Learn
MATTR VII PlatformInboxes

Delete a message

Deletes a message from the requested inbox by providing its ID.

Analytic events

  • MESSAGING_INBOX_MESSAGE_DELETE_START
  • MESSAGING_INBOX_MESSAGE_DELETE_SUCCESS
  • MESSAGING_INBOX_MESSAGE_DELETE_FAIL
DELETE/v1/messaging/inboxes/{id}/messages/{messageid}

Authorization

bearerAuth

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Requested inbox ID

messageid*string

Requested message ID

Response Body

application/json

application/json

curl -X DELETE "https://example.vii.au01.mattr.global/v1/messaging/inboxes/string/messages/string"
Empty

{
  "code": "BadRequest",
  "message": "Validation Error",
  "details": [
    {
      "value": "notUUIDvalue",
      "msg": "Invalid value",
      "param": "inboxId",
      "location": "params"
    }
  ]
}

{
  "code": "NotFound",
  "message": "Resource Not Found"
}

How would you rate this page?