sendsend.email

Delete a received email

DELETE/v1/received-emails/{id}

Removes the message and its attachments now, rather than waiting for the retention period.

Required scope: inbound:manage

Parameters

NameInDescription
idrequiredpathThe received email id.

Example

curl -X DELETE 'https://api.sendsend.email/v1/received-emails/ID' \
  -H "Authorization: Bearer $SENDSEND_API_KEY"

Response 200

{
  "object": "received_email",
  "id": "rcv_Qw3…",
  "deleted": true
}

Errors

StatusCodeWhen
404not_foundNo such resource in this project.
401unauthorizedThe API key is missing, invalid or revoked.
403forbiddenThe key does not have the scope this endpoint needs.

Every error has the same shape. See Errors.