Clear Flags from a Recipient
Remove one or more flags from a recipient.
POST https://api.notifiedby.com/v1/recipients/flags/clear/
Request Body:
{
"email": "user@example.com",
"flags": ["premium"]
}
Field |
Required |
Description |
|---|---|---|
Yes |
The recipient’s email address. |
|
flags |
Yes |
A list of flag names to clear. Can also be a comma-separated string. |
Success Response (200):
{
"message": "Flags ['premium'] cleared for recipient \"user@example.com\"."
}
Example with curl:
curl -X POST https://api.notifiedby.com/v1/recipients/flags/clear/ \
-H "Authorization: Api-Key YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "user@example.com", "flags": ["premium"]}'