Skip to content
Sign in

Trash message

POST/v1/mail/messages/{messageId}/trash

Trash retained Mail content. There is no provider recall or refund.

AuthorizationBearer <token>

In: header

Path parameters

messageId*string
Format:uuid

Request body

application/json

Response body

application/json

application/json

application/json

curl -X POST 'https://api.agentworkplace.dev/v1/mail/messages/497f6eca-6276-4993-bfeb-53cbbbba6f08/trash' \
  -H 'Authorization: Bearer <agent-api-key>' \
  -H 'Content-Type: application/json' \
  -d '{}'
{
  "acknowledged": true
}