Skip to content

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

KlaviyoKlaviyoDevelopers
v2025-01-15

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

Create Tag

POSThttps://a.klaviyo.com/api/tags

Create a tag. An account cannot have more than 500 unique tags.

A tag belongs to a single tag group. If the tag_group_id is not specified, the tag is added to the account's default tag group.

Revision header
revision: 2025-01-15required
Scopes
tags:readtags:write
Rate limits
Burst: 3/sSteady: 60/m

Headers

  • revision#stringrequired

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

    2025-01-15

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • tag
    • attributes#objectrequired
      Show 1 field
      • name#stringrequired

        The Tag name

        Example: My Tag

    • relationships#object
      Show 1 field
      • tag-group#object
        Show 1 field
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • tag-group
          • id#stringrequired

            The ID of the Tag Group to associate the Tag with. If this field is not specified, the Tag will be associated with the company's Default Tag Group.

            Example: zyxw9876-vu54-ts32-rq10-zyxwvu654321

Responses

201Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 5 fields
    • type#stringrequired
      Allowed values:
      • tag
    • id#stringrequired

      The Tag ID

      Example: abcd1234-ef56-gh78-ij90-abcdef123456

    • attributes#objectrequired
      Show 1 field
      • name#stringrequired

        The Tag name

        Example: My Tag

    • relationships#object
      Show 5 fields
      • tag-group#object
        Show 2 fields
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • tag-group
          • id#stringrequired
      • lists#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • list
          • id#stringrequired
      • segments#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • segment
          • id#stringrequired
      • campaigns#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • campaign
          • id#stringrequired
      • flows#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • flow
          • id#stringrequired

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