Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Apply a tag to matching contacts

POST
/api/v3/contacts/tags/{tagId}/apply
curl --request POST \
--url https://api.tryletterhead.com/api/v3/contacts/tags/1/apply \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "api": true, "channelId": 42, "status": 1 }'

Applies the tag to every contact matching the supplied filter β€” the same filter shape as Search contacts (query, tags, channelId, status). Omit all filters to apply the tag to your entire audience.

tagId
required
integer

The tag’s numeric identifier.

Media type application/json
object
api

Required. Set to true to authenticate with an API key.

boolean
query
string
tags
Array<string>
channelId
integer
status
integer
Example
{
"api": true,
"channelId": 42,
"status": 1
}

Successful response

Still can’t find what you need? Contact support.