Skip to main content
DELETE
/
threads
/
{threadId}
/
messages
/
{messageId}
Delete message
curl --request DELETE \
  --url https://inboxapp.com/api/v1/threads/{threadId}/messages/{messageId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "deleteForAll": true
}
'
{
  "success": true,
  "messageId": "<string>",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

threadId
string
required

The ID of the thread containing the message.

messageId
string
required

The ID of the message to delete.

Body

application/json
deleteForAll
boolean
default:true

Whether to delete the message for all participants or just for yourself. Defaults to true (delete for all).

Response

200 - application/json

OK

success
boolean
required
messageId
string
required
deletedAt
string<date-time>
required