---
title: "Get Segment Tags"
description: "How to call Get Segment Tags (GET /api/segments/{id}/tags/) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2023-07-15/reference/get_segment_tags"
revision: "2023-07-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_tags_for_segment"
operationId: "get_segment_tags"
method: "GET"
endpoint: "https://a.klaviyo.com/api/segments/{id}/tags/"
authentication: "privateKey"
scopes: ["segments:read","tags:read"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
jsonApi: {"fields":{"tag":["name"]}}
related: ["https://developers.klaviyo.com/en/v2023-07-15/reference/segments/llms.txt","https://developers.klaviyo.com/en/v2023-07-15/reference/get_segments.md","https://developers.klaviyo.com/en/v2023-07-15/reference/get_segment.md","https://developers.klaviyo.com/en/v2023-07-15/reference/update_segment.md","https://developers.klaviyo.com/en/v2023-07-15/reference/get_segment_profiles.md"]
---

# Get Segment Tags

> This is the Markdown version of https://developers.klaviyo.com/en/v2023-07-15/reference/get_segment_tags

```http
GET https://a.klaviyo.com/api/segments/{id}/tags/
```

Return all tags associated with the given segment ID.

- Revision header: `revision: 2023-07-15` (required)
- Scopes: `segments:read`, `tags:read`
- Rate limits: Burst: `3/s`, Steady: `60/m`

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/segments/id/tags/' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/json' \
     --header 'revision: 2023-07-15'
```

## Path parameters

- `id` (string, required)

## Query parameters

- `fields[tag]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2023-07-15/reference.md) Allowed values: `name`

## Headers

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

## Responses

### 200: 

Content type: `application/json`

- `data` (object[], required)
  - `relationships` (object)
    - `tag-group` (object)
      - `data` (object, required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `lists` (object)
      - `data` (object[], required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `segments` (object)
      - `data` (object[], required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `campaigns` (object)
      - `data` (object[], required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `flows` (object)
      - `data` (object[], required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `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`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object, required)
  - `self` (string<uri>, required)
  - `first` (string<uri>)
  - `last` (string<uri>)
  - `prev` (string<uri>)
  - `next` (string<uri>)

#### Example response body

```json
{
  "data": [
    {
      "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"
          }
        }
      },
      "type": "tag",
      "id": "abcd1234-ef56-gh78-ij90-abcdef123456",
      "attributes": {
        "name": "My Tag"
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "first": "https://www.example.com",
    "last": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  }
}
```

### 4XX: Client Error

Content type: `application/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/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"
      }
    }
  ]
}
```
