Getting started
Guides
Endpoints
- Accounts
- Broadcasts
- Custom Fields
- Forms
- Subscribers
- Tags
- Email Templates
- Purchases
- Segments
- Sequences
- Webhooks
Tags
Bulk tag subscribers
The subscribers being tagged must already exist. Subscribers can be created in bulk using the “Bulk create subscriber” endpoint.
See “Bulk & async processing” for more information.
POST
/
v4
/
bulk
/
tags
/
subscribers
Copy
Ask AI
curl --request POST \
--url https://api.kit.com/v4/bulk/tags/subscribers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"taggings": [
{
"tag_id": 0,
"subscriber_id": 0
},
{
"tag_id": 1,
"subscriber_id": 1
},
{
"tag_id": 2,
"subscriber_id": 2
},
{
"tag_id": 3,
"subscriber_id": 3
}
],
"callback_url": null
}'
Copy
Ask AI
{
"subscribers": [
{
"id": 15982,
"first_name": "Sub",
"email_address": "[email protected]",
"created_at": "2023-02-17T11:43:55Z",
"tagged_at": "2023-02-17T11:43:55Z"
},
{
"id": 15982,
"first_name": "Sub",
"email_address": "[email protected]",
"created_at": "2023-02-17T11:43:55Z",
"tagged_at": "2023-02-17T11:43:55Z"
}
],
"failures": [
{
"errors": [
"Subscriber does not exist"
],
"tagging": {
"tag_id": 3427,
"subscriber_id": null
}
},
{
"errors": [
"Tag does not exist"
],
"tagging": {
"tag_id": null,
"subscriber_id": 15982
}
}
]
}
Authorizations
Authenticate API requests via an OAuth token
Body
application/json
Response
200
application/json
Creates the taggings synchronously when 100 or less tags/subscribers are requested
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.kit.com/v4/bulk/tags/subscribers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"taggings": [
{
"tag_id": 0,
"subscriber_id": 0
},
{
"tag_id": 1,
"subscriber_id": 1
},
{
"tag_id": 2,
"subscriber_id": 2
},
{
"tag_id": 3,
"subscriber_id": 3
}
],
"callback_url": null
}'
Copy
Ask AI
{
"subscribers": [
{
"id": 15982,
"first_name": "Sub",
"email_address": "[email protected]",
"created_at": "2023-02-17T11:43:55Z",
"tagged_at": "2023-02-17T11:43:55Z"
},
{
"id": 15982,
"first_name": "Sub",
"email_address": "[email protected]",
"created_at": "2023-02-17T11:43:55Z",
"tagged_at": "2023-02-17T11:43:55Z"
}
],
"failures": [
{
"errors": [
"Subscriber does not exist"
],
"tagging": {
"tag_id": 3427,
"subscriber_id": null
}
},
{
"errors": [
"Tag does not exist"
],
"tagging": {
"tag_id": null,
"subscriber_id": 15982
}
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.