lumail.subscribers.addTags

Add tags to a subscriber by id or email with lumail.subscribers.addTags in the Lumail TypeScript SDK, without replacing the tags already on the contact.

MethodPOST
/api/v2/subscribers/:subscriber/tags

[email protected] · lumail.subscribers

subscribers.addTags(idOrEmail: string, tags: string[]): Promise<LumailResult<AddTagsResponse>>

Attach tags without replacing the rest.

Path Parameters

NameTypeDescription
idOrEmailstringRequired. Subscriber id or email.

Body Parameters

NameTypeDescription
tagsstring[]Required. Second argument. Tag names to attach. Sent as { tags }.

Response Fields

FieldTypeDescription
addednumberCount of tags attached.
tags{ id, name }[]Resulting or added tags.

data is { added?, tags? }. Failures return { data: null, error: { name, message, statusCode } }.