Visitar URL original
Get Location | Klaviyo API ReferenceSkip to content

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

KlaviyoKlaviyoDevelopers

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.

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

Get a physical location by id.

Returns 404 if the id belongs to an in-person event rather than a physical location. Pass ?include=segments to populate the linked segment ids and count; included segments carry their id only, no attributes.

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

Path parameters

  • id#stringrequired

Query parameters

  • fields[location]#string[]

    For more information please visit API overview

    Show 22 allowed values
    • address1
    • address2
    • city
    • country
    • description
    • email
    • features
    • geocode_status
    • id
    • latitude
    • longitude
    • manager_email
    • manager_name
    • name
    • phone_number
    • profile_count
    • profile_property_value
    • region
    • segment_count
    • type_label
    • url
    • zip
  • include#string[]

    For more information please visit API overview

    Allowed values:
    • segments

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

      Primary key that uniquely identifies this location.

      Example: 01HQ8V5X9K2M4N6P8R0T2W4Y6A

    • attributes#objectrequired
      Show 21 fields
      • name#stringrequired

        Name of the location.

        Example: Klaviyo Boston

      • address1#stringnullable

        First line of the street address.

        Example: 125 Summer St

      • address2#stringnullable

        Second line of the street address, such as a suite or floor.

        Example: Floor 6

      • city#stringnullable

        City or town.

        Example: Boston

      • region#stringnullable

        State, province, or other top-level administrative area.

        Example: MA

      • zip#stringnullable

        Postal code.

        Example: 02110

      • country#stringnullable

        Country name or ISO country code.

        Example: US

      • latitude#numbernullable

        Latitude of the location, resolved by geocoding when not supplied directly.

        Example: 42.3505

      • longitude#numbernullable

        Longitude of the location, resolved by geocoding when not supplied directly.

        Example: -71.055

      • geocode_status#stringnullable

        Whether the supplied address has been resolved to coordinates. Locations still pending or queued have no latitude or longitude yet, and locations that failed geocoding cannot be used for proximity segmentation.

        Allowed values:
        • pending
        • queued
        • successful
        • failed

        Example: successful

      • type_label#stringnullable

        Your own category for this location.

        Example: Flagship store

      • description#stringnullable

        Free-text description of the location.

        Example: Corner store with in-store pickup.

      • url#stringnullable

        Web page for this location.

        Example: https://example.com/stores/boston

      • phone_number#stringnullable

        Public phone number for this location.

        Example: +16175551234

      • email#stringnullable

        Public contact email address for this location.

        Example: boston@example.com

      • manager_name#stringnullable

        Name of the person responsible for this location.

        Example: Alex Chen

      • manager_email#stringnullable

        Email address of the person responsible for this location.

        Example: alex.chen@example.com

      • features#string[]nullable

        Amenities or capabilities offered at this location.

      • profile_property_value#stringnullable

        Value written to the location profile property on profiles associated with this location.

        Example: Klaviyo Boston

      • profile_count#integernullable

        Number of profiles currently associated with this location. Recomputed periodically, so it lags recent segment membership changes.

        Example: 1284

      • segment_count#integernullable

        Number of segments linked to this location. Available via ?include=segments.

        Example: 3

    • relationships#object
      Show 1 field
      • segments#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • segment
          • id#stringrequired

            IDs of the segments linked to this location. Available via ?include=segments.

  • included#object[]
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • segment
    • id#stringrequired

      Identifier of the 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