Tags (not archived) for a site
name (string) - The name of the contact tagUse the page[number] and page[size] query parameters to paginate results:
GET /v1/contact_tags?page[number]=1&page[size]=10GET /v1/contact_tags?page[number]=2&page[size]=25The response includes pagination links and meta data:
{
"links": {
"self": "https://api.kajabi.com/v1/contact_tags?page[number]=2&page[size]=10",
"first": "https://api.kajabi.com/v1/contact_tags?page[number]=1&page[size]=10",
"prev": "https://api.kajabi.com/v1/contact_tags?page[number]=1&page[size]=10",
"next": "https://api.kajabi.com/v1/contact_tags?page[number]=3&page[size]=10",
"last": "https://api.kajabi.com/v1/contact_tags?page[number]=5&page[size]=10"
},
"meta": {
"total_pages": 5,
"total_count": 50,
"current_page": 2
}
}
Use the filter[site_id] parameter to get contact tags for a specific site:
GET /v1/contact_tags?filter[site_id]=123Response will only include contact tags for that site
{
"data": [{
"id": "456",
"type": "contact_tags",
"attributes": {
"name": "Source"
},
"relationships": {
"site": {
"data": {
"id": "123",
"type": "sites"
}
}
}
}]
}
Use the filter[name_cont] parameter to find contact tags where the name contains specific text:
GET /v1/contact_tags?filter[name_cont]=vipResponse will include contact tags with matching names
{
"data": [{
"id": "456",
"type": "contact_tags",
"attributes": {
"name": "VIP Customer"
}
}]
}
You can combine pagination, sorting, sparse fields and filtering in a single request:
GET /v1/contact_tags?page[number]=2&page[size]=10&sort=-name&filter[site_id]=123Response will include only requested fields, sorted and paginated
{
"data": [{
"id": "456",
"type": "contact_tags",
"attributes": {
"name": "Webinar Attendee"
}
}, {
"id": "789",
"type": "contact_tags",
"attributes": {
"name": "VIP Customer"
}
}],
"links": {
"self": "https://api.kajabi.com/v1/contact_tags?page[number]=2&page[size]=10&sort=-name&fields[contact_tags]=name,handle&filter[site_id]=123",
"first": "https://api.kajabi.com/v1/contact_tags?page[number]=1&page[size]=10&sort=-name&fields[contact_tags]=name,handle&filter[site_id]=123",
"prev": "https://api.kajabi.com/v1/contact_tags?page[number]=1&page[size]=10&sort=-name&fields[contact_tags]=name,handle&filter[site_id]=123",
"next": "https://api.kajabi.com/v1/contact_tags?page[number]=3&page[size]=10&sort=-name&fields[contact_tags]=name,handle&filter[site_id]=123",
"last": "https://api.kajabi.com/v1/contact_tags?page[number]=5&page[size]=10&sort=-name&fields[contact_tags]=name,handle&filter[site_id]=123"
},
"meta": {
"total_pages": 5,
"total_count": 50,
"current_page": 2
}
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Sort order, use: name, email, for descending order use '-' e.g. &sort=-name
Number of documents
Partial attributes as specified, e.g. fields[contact_tags]=name
Filter by site_id, for example ?filter[site_id]=111
Filter by name contains, for example ?filter[name_cont]=vip