Lumail.ioLumail.io
DocsBlogChangelog

Getting Started

  • Introduction
  • Tutorials
  • API Reference
  • Integrations
  • Features
  • Workflows

Tutorials

  • Create an API Token
  • Build a V0 Capture Page
  • Dynamic Promo Codes with Webhooks

API Reference

  • API Tokens
  • Rate Limits
  • POSTSend Transactional Email
  • POSTEmail Verification API
  • POSTCreate Subscriber
  • GETGet Subscriber
  • PATCHUpdate Subscriber
  • DELETEDelete Subscriber
  • POSTAdd Tags to Subscriber
  • DELETERemove Tags from Subscriber
  • POSTTrack Event
  • GETGet Subscriber Events
  • GETGet All Tags
  • POSTCreate a Tag
  • Send Email in HTML
  • Send Email in Markdown
  • Send Email in Tiptap

Integrations

  • ClickFunnels Integration
  • SystemIO Integration

Features

  • Variables
  • Subscriber Events
  • Revenue Tracking
  • Email Deliverability Score
  • Email Engagement Score
  • Content Deliverability Checker

Workflows

  • Wait Step
  • Email Step
  • Action Step
  • Webhook Step

domains

  • Email Domains
  • Web Domains

Add Tags to Subscriber

Add one or more tags to an existing subscriber

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

Related Documentation

  • Get All Tags - List available tags
  • Create Tags - Create new tags
  • Remove Tags from Subscriber - Remove tags from subscribers
  • Workflows - Trigger workflows when tags are added
  • Action Step - Add tags within workflows
  • Subscriber Events - View tag change history
Delete SubscriberRemove Tags from Subscriber

Method

POST

Endpoint

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

Request Examples

curl -X POST https://lumail.io/api/v1/subscribers/subscriber@example.com/tags \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"tags": ["newsletter", "premium"]}'

Response Examples

{
  "success": true,
  "added": 2,
  "tags": [
    {
      "id": "tag_JqaddtEx7z",
      "name": "newsletter"
    },
    {
      "id": "tag_rdEPhyjnfA",
      "name": "premium"
    }
  ]
}

On This Page

ResponseResponse FieldsRequest SchemaPath ParametersUsage ExampleRelated Documentation

Lumail.io

Create and send e-mail without paying thousands of dollars

Product

BlogDocumentationChangelogDashboard

Company

AboutAccount

Legal

TermsPrivacy

8 The Green STE B, Dover Delaware 19901, United States

© 2025 Codelynx, LLC. All rights reserved.

Sign in