---
title: "Get Tags"
description: "How to call Get Tags (GET /api/tags) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/get_tags"
revision: "2026-10-15"
operationId: "get_tags"
method: "GET"
endpoint: "https://a.klaviyo.com/api/tags"
authentication: "privateKey"
scopes: ["tags:read"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json"
jsonApi: {"include":["tag-group"],"fields":{"tag-group":["default","exclusive","id","name"],"tag":["id","name"]},"filter":{"name":{"operators":{"single":["contains","ends-with","equals","starts-with"],"list":["equals"]},"type":"string"}},"sort":["id","-id","name","-name"],"pagination":{"style":"cursor","defaultPageSize":"50"}}
related: ["https://developers.klaviyo.com/en/reference/tags/llms.txt","https://developers.klaviyo.com/en/reference/get_tag.md","https://developers.klaviyo.com/en/reference/create_tag.md","https://developers.klaviyo.com/en/reference/update_tag.md","https://developers.klaviyo.com/en/reference/delete_tag.md","https://developers.klaviyo.com/en/reference/get_flow_ids_for_tag.md","https://developers.klaviyo.com/en/reference/tag_flows.md","https://developers.klaviyo.com/en/reference/remove_tag_from_flows.md","https://developers.klaviyo.com/en/reference/get_campaign_ids_for_tag.md","https://developers.klaviyo.com/en/reference/tag_campaigns.md","https://developers.klaviyo.com/en/reference/remove_tag_from_campaigns.md","https://developers.klaviyo.com/en/reference/get_list_ids_for_tag.md","https://developers.klaviyo.com/en/reference/tag_lists.md","https://developers.klaviyo.com/en/reference/remove_tag_from_lists.md","https://developers.klaviyo.com/en/reference/get_segment_ids_for_tag.md","https://developers.klaviyo.com/en/reference/tag_segments.md","https://developers.klaviyo.com/en/reference/remove_tag_from_segments.md","https://developers.klaviyo.com/en/reference/get_tag_group_for_tag.md","https://developers.klaviyo.com/en/reference/get_tag_group_id_for_tag.md"]
---

# Get Tags

> This is the Markdown version of https://developers.klaviyo.com/en/reference/get_tags

```http
GET https://a.klaviyo.com/api/tags
```

List all tags in an account.

Tags can be filtered by `name`, and sorted by `name` or `id` in ascending or descending order.

Returns a maximum of 50 tags per request, which can be paginated with [cursor-based pagination](https://developers.klaviyo.com/en/reference.md).

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `tags:read`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json)

## Example request

### curl

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/tags' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15'
```

### CLI

```bash
klaviyo tags list
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

response = klaviyo.Tags.get_tags()
```

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, TagsApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const tagsApi = new TagsApi(session)

const response = await tagsApi.getTags()
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::Tags.get_tags()
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->Tags->getTags();
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Query parameters

- `fields[tag-group]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `default`, `exclusive`, `id`, `name`
- `fields[tag]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `id`, `name`
- `filter` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md)\
  Allowed field(s)/operator(s):\
  `name`: `contains`, `ends-with`, `equals`, `starts-with` (string) Example: `equals(name,'My Tag')`
- `include` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `tag-group`
- `page[cursor]` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md)
- `page[size]` (integer): Default: 50. Min: 1. Max: 50.
- `sort` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `id`, `-id`, `name`, `-name`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object[], required)
  - `type` (string, required): Allowed values: `tag`
  - `id` (string, required): The Tag ID Example: `abcd1234-ef56-gh78-ij90-abcdef123456`
  - `attributes` (object, required)
    - `name` (string, required): The Tag name Example: `My Tag`
  - `relationships` (object)
    - `tag-group` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
    - `lists` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
    - `segments` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
    - `campaigns` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
    - `flows` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object)
  - `self` (string<uri>, required)
  - `prev` (string<uri>)
  - `next` (string<uri>)
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response
- `included` (object[])
  - `type` (string, required): Allowed values: `tag-group`
  - `id` (string, required): The Tag Group ID Example: `zyxw9876-vu54-ts32-rq10-zyxwvu654321`
  - `attributes` (object, required)
    - `name` (string, required): The Tag Group name Example: `My Tag Group`
    - `exclusive` (boolean, required): If a tag group is non-exclusive, any given related resource (campaign, flow, etc.) can be linked to multiple tags from that tag group. If a tag group is exclusive, any given related resource can only be linked to one tag from that tag group.
    - `default` (boolean, required): Every company automatically has one Default Tag Group. The Default Tag Group cannot be deleted, and no other Default Tag Groups can be created. This value is true for the Default Tag Group and false for all other Tag Groups.
  - `relationships` (object)
    - `tags` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
      - `links` (RelationshipLinks): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tags.json).
  - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": [
    {
      "type": "tag",
      "id": "abcd1234-ef56-gh78-ij90-abcdef123456",
      "attributes": {
        "name": "My Tag"
      },
      "relationships": {
        "tag-group": {
          "data": {
            "type": "tag-group",
            "id": "string"
          },
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        },
        "lists": {
          "data": [
            {
              "type": "list",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        },
        "segments": {
          "data": [
            {
              "type": "segment",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        },
        "campaigns": {
          "data": [
            {
              "type": "campaign",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        },
        "flows": {
          "data": [
            {
              "type": "flow",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        }
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  },
  "included": [
    {
      "type": "tag-group",
      "id": "zyxw9876-vu54-ts32-rq10-zyxwvu654321",
      "attributes": {
        "name": "My Tag Group",
        "exclusive": true,
        "default": true
      },
      "relationships": {
        "tags": {
          "data": [
            {
              "type": "tag",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        }
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ]
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
