Skip to content

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

KlaviyoKlaviyoDevelopers
v2026-10-15

This endpoint is in beta. Call it with the revision header 2026-10-15.pre. Beta endpoints may change before they're generally available. See our versioning and deprecation policy for more information.

Get Segments for Location

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

Get the segments linked to a location.

A segment is linked to at most one physical location, so a location's segments are the ones that target it.

Segment details are read from the segments service and cached for five minutes, so a segment renamed moments ago may still report its old name.

Revision header
revision: 2026-10-15.prerequired
Scopes
locations:readsegments:read
Rate limits
Burst: 10/sSteady: 150/m

Path parameters

  • id#stringrequired

Query parameters

  • fields[segment]#string[]

    For more information please visit API overview

    Allowed values:
    • created
    • definition
    • id
    • linked_at
    • name
    • updated
  • page[cursor]#string

    Page cursor

  • page[size]#integer

    Default: 25. Min: 1. Max: 100.

Headers

  • revision#stringrequired

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

    2026-10-15.pre

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • segment
    • id#stringrequired

      Primary key that uniquely identifies this segment.

      Example: 01HQ8V5X9K2M4N6P8R0T2W4Y6A

    • attributes#objectrequired
      Show 5 fields
      • name#stringrequired

        Name of the segment.

        Example: Klaviyo Boston - within 10 miles

      • definition#objectnullable

        The segment's conditions, in the same format the segments API uses. Pass this back unchanged when creating a segment through POST /api/segments.

      • created#string<date-time>nullable

        Date and time when the segment was created, in ISO 8601 format.

        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.

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

      • linked_at#string<date-time>nullable

        Date and time when this segment was linked to the location, in ISO 8601 format.

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

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