Set Flags on a Recipient

Add one or more flags to a recipient. Flags that don’t exist yet will be created automatically.

POST https://api.notifiedby.com/v1/recipients/flags/set/

Request Body:

{
    "email": "user@example.com",
    "flags": ["premium", "onboarded"]
}

Field

Required

Description

email

Yes

The recipient’s email address.

flags

Yes

A list of flag names to set. Can also be a comma-separated string.

Success Response (200):

{
    "message": "Flags ['premium', 'onboarded'] set for recipient \"user@example.com\"."
}

Example with curl:

curl -X POST https://api.notifiedby.com/v1/recipients/flags/set/ \
    -H "Authorization: Api-Key YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"email": "user@example.com", "flags": ["premium", "onboarded"]}'