Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2023-01-24/reference/create_tag_relationships.md. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2023-01-24

You're reading the reference for API revision 2023-01-24. The latest revision is 2026-10-15. See this page in the latest revision.

Create Tag Relationships

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

Associate a tag with other resources. Any given resource cannot be associated with more than 100 tags. The related_resource can be one of campaigns, flows, lists, or segments. Use the request body to pass in the ID(s) of the related resource(s) that will be associated with the tag. The scopes listed below are conditionally required depending on the specified related resource.

Revision header
revision: 2023-01-24required
Scopes
Flows WriteLists WriteSegments WriteTags Write
Rate limits
Burst: 3/sSteady: 60/m

Path parameters

  • id#stringrequired
  • related_resource#stringrequired
    Allowed values:
    • flows
    • lists
    • segments
    • tag-groups

Headers

  • revision#stringrequired

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

    2023-01-24

Request body

Content type: application/jsonrequired

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

Responses

204

This response has no body.

4XXClient Error

Content type: application/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/json

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