Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/get_segment_ids_for_location_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/get_segment_ids_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 Segment IDs for Location

GEThttps://a.klaviyo.com/api/locations/{id}/relationships/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

  • 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 3 fields
    • type#stringrequired
      Allowed values:
      • segment
    • id#stringrequired

      Primary key that uniquely identifies this segment.

      Example: 01HQ8V5X9K2M4N6P8R0T2W4Y6A

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