Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2023-01-24/reference/create_tag.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

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: 2023-01-24required
Scopes
Tags ReadTags Write
Rate limits
Burst: 3/sSteady: 60/m

Headers

  • revision#stringrequired

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

    2023-01-24

Request body

Content type: application/jsonrequired

  • data#objectrequired
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • tag
    • attributes#objectrequired
      Show 2 fields
      • name#stringrequired

        The Tag name

        Example: My Tag

      • tag_group_id#string

        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

201

Content type: application/json

  • data#objectrequired
    Show 4 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

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