Skip to content

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

KlaviyoKlaviyoDevelopers
v2024-02-15

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

Get Segment

GEThttps://a.klaviyo.com/api/segments/{id}/

Get a segment with the given segment ID.

Revision header
revision: 2024-02-15required
Scopes
segments:read
Rate limits
Burst: 75/sSteady: 700/m

Rate limits when using the additional-fields[segment]=profile_count parameter in your API request:
Burst: 1/s
Steady: 15/m

To learn more about how the additional-fields parameter impacts rate limits, check out our Rate limits, status codes, and errors guide.

Path parameters

  • id#stringrequired

Query parameters

  • additional-fields[segment]#string[]

    Request additional fields not included by default in the response. Supported values: 'profile_count'

    Allowed values:
    • profile_count
  • fields[segment]#string[]

    For more information please visit API overview

    Allowed values:
    • name
    • created
    • updated
    • is_active
    • is_processing
    • is_starred
    • profile_count
  • fields[tag]#string[]

    For more information please visit API overview

    Allowed values:
    • name
  • include#string[]

    For more information please visit API overview

    Allowed values:
    • tags

Headers

  • revision#stringrequired

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

    2024-02-15

Responses

200Success

Content type: application/json

  • data#objectrequired
    Show 5 fields
    • type#stringrequired
      Allowed values:
      • segment
    • attributes#objectrequired
      Show 6 fields
      • name#stringnullable

        A helpful name to label the segment

        Example: Repeat Purchasers

      • created#string<date-time>nullable

        Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

        Example: 2022-11-08T00:00:00+00:00

      • updated#string<date-time>nullable

        Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

        Example: 2022-11-08T00:00:00+00:00

      • is_active#booleanrequired
      • is_processing#booleanrequired
      • is_starred#booleanrequired
    • relationships#object
      Show 2 fields
      • profiles#object
        Show 1 field
      • tags#object
        Show 2 fields
        • data#object[]required
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • tag
          • id#stringrequired
    • id#stringrequired
  • included#object[]
    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