Visitar URL original
Tag Segments | Klaviyo API ReferenceSkip to content

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

KlaviyoKlaviyoDevelopers

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

Associate a tag with one or more segments. Any segment cannot be associated with more than 100 tags.

Use the request body to pass in the ID(s) of the segments(s) that will be associated with the tag.

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

Path parameters

  • id#stringrequired

    The Tag ID

    Example: abcd1234-ef56-gh78-ij90-abcdef123456

Headers

  • revision#stringrequired

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

    2026-10-15

Request body

Content type: application/vnd.api+jsonrequired

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

      The IDs of the segments to link or unlink with the given Tag ID

Responses

204Success

This response has no body.

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