Add Tags to Subscriber

Add one or more tags to an existing subscriber

MethodPOST
/api/v1/subscribers/{subscriber}/tags

https://lumail.io/api/v1/subscribers/{subscriber}/tags

Add one or more tags to an existing subscriber. Tags that don't exist will be created automatically. If the subscriber already has a tag, it will be skipped (no duplicate tags).

Response

  • Success (200 OK) - Returns the list of tags that were processed.
  • Error (404 Not Found) - Subscriber not found.
  • Error (400 Bad Request) - Invalid request body or empty tags array.

Response Fields

FieldTypeDescription
successbooleanIndicates if the operation was successful
addednumberNumber of new tags added (excludes tags the subscriber already had)
tagsarrayList of all tags that were processed
tags[].idstringUnique identifier for the tag
tags[].namestringName of the tag

Request Schema

FieldTypeDefaultDescription
tagsstring[]requiredArray of tag names to add to the subscriber. At least one tag is required.

Path Parameters

ParameterTypeDescription
subscriberstringSubscriber identifier - can be either the subscriber ID (e.g., sub_TTYPR5tWDh) or email address

Usage Example

Use this API endpoint to:

  • Add tags to subscribers for segmentation and targeting
  • Automatically tag subscribers based on external events (purchases, signups, etc.)
  • Sync tags from your CRM or other systems
  • Trigger workflows based on tag additions