Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/get_tag_ids_for_segment.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_tag_ids_for_segment.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-10-15

Get Tag IDs for Segment

GEThttps://a.klaviyo.com/api/segments/{id}/relationships/tags

If related_resource is tags, returns the tag IDs of all tags associated with the given segment ID.

Revision header
revision: 2026-10-15required
Scopes
segments:readtags:read
Rate limits
Burst: 3/sSteady: 60/m

Path parameters

  • id#stringrequired

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-10-15

Responses

200Success

Content type: application/vnd.api+json

  • data#object[]required
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • tag
    • id#stringrequired

      The Tag ID

      Example: abcd1234-ef56-gh78-ij90-abcdef123456

  • meta#object

    Response-level metadata

    Show 1 field
    • agent_hints#object

      Optional hints emitted by the API for agent callers

      Show 1 field
      • next_steps#string[]

        Suggested follow-up actions for agents to take after this response

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string