Skip to main content
DELETE
/
v1
/
emails
Delete an email
curl --request DELETE \
  --url https://brew.new/api/v1/emails \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "emailId": "eml_x"
}
'
{
  "emailId": "eml_x",
  "deleted": true
}

Authorizations

Authorization
string
header
default:Bearer brew_your_api_key
required

Send your Brew API key as Authorization: Bearer brew_xxx.

Body

application/json
emailId
string
required
Required string length: 1 - 64

Response

200 - application/json

Deleted (or already gone).

emailId
string
required
Minimum string length: 1
deleted
boolean
required