Skip to content

[Endpoint Name]

post

/email/spam/remove

This is the description of the endpoint. For example: “This endpoint allows you to remove email addresses from your Braze spam list. We will also remove them from the spam list maintained by your email provider.”

Request Body

This is where you can give more information about your endpoint request body, including an example of what one would look like.

1
2
Content-Type: application/json
Authorization: Bearer YOUR-REST-API-KEY
1
2
3
{
  "email": "example@123.com"
}

Parameter Details

This is a place for you to describe additional details for the parameters in the request body.

Parameter Required Data Type Description
email Yes String or Array String email address to modify, or an Array of up to 50 email addresses to modify.

Example Unsubscribe CURL

The following example CURL demonstrates how to unsubscribe a user from receiving email via the Braze APIs:

1
2
3
4
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer " -d '{
  "email":"EMAIL_TO_UNSUBSCRIBE",
  "subscription_state":"unsubscribed"
}' https://rest.iad-01.braze.com/email/status
WAS THIS PAGE HELPFUL?
New Stuff!