Skip to content

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

KlaviyoKlaviyoDevelopers
v2026-07-15

You're reading the reference for API revision 2026-07-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 relationships.tag-group.data.id is not specified, the tag is added to the account's default tag group.

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

Query parameters

  • fields[tag]#string[]

    For more information please visit API overview

    Allowed values:
    • id
    • name

Headers

  • revision#stringrequired

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

    2026-07-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
  • 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