---
title: "Get Location"
description: "How to call Get Location (GET /api/locations/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/get_location_beta"
revision: "2026-10-15.pre"
operationId: "get_location_beta"
method: "GET"
endpoint: "https://a.klaviyo.com/api/locations/{id}"
authentication: "privateKey"
scopes: ["locations:read"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
preRelease: "BETA"
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/get_location_beta.json"
jsonApi: {"include":["segments"],"fields":{"location":["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"]}}
related: ["https://developers.klaviyo.com/en/reference/location-hub-beta/llms.txt","https://developers.klaviyo.com/en/reference/get_locations_beta.md","https://developers.klaviyo.com/en/reference/create_location_beta.md","https://developers.klaviyo.com/en/reference/update_location_beta.md","https://developers.klaviyo.com/en/reference/delete_location_beta.md","https://developers.klaviyo.com/en/reference/get_location_hub_setting_beta.md","https://developers.klaviyo.com/en/reference/update_location_hub_setting_beta.md","https://developers.klaviyo.com/en/reference/query_proximity_segment_definition_beta.md","https://developers.klaviyo.com/en/reference/get_segment_ids_for_location_beta.md","https://developers.klaviyo.com/en/reference/add_segments_to_location_beta.md","https://developers.klaviyo.com/en/reference/remove_segments_from_location_beta.md","https://developers.klaviyo.com/en/reference/get_segments_for_location_beta.md"]
---

# Get Location

> This is the Markdown version of https://developers.klaviyo.com/en/reference/get_location_beta

```http
GET https://a.klaviyo.com/api/locations/{id}
```


> [!WARNING]
> **This endpoint is in beta and subject to change.**
> A beta revision header (2026-10-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy.md) for more information.


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.pre` (required)
- Scopes: `locations:read`
- Rate limits: Burst: `10/s`, Steady: `150/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/get_location_beta.json)

## Example request

### curl

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/locations/id' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15.pre'
```

### CLI

```bash
klaviyo beta location-hub get-location id
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

## Path parameters

- `id` (string, required)

## Query parameters

- `fields[location]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) 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](https://developers.klaviyo.com/en/reference.md) Allowed values: `segments`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15.pre`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `location`
  - `id` (string, required): Primary key that uniquely identifies this location. Example: `01HQ8V5X9K2M4N6P8R0T2W4Y6A`
  - `attributes` (object, required)
    - `name` (string, required): Name of the location. Example: `Klaviyo Boston`
    - `address1` (string, nullable): First line of the street address. Example: `125 Summer St`
    - `address2` (string, nullable): Second line of the street address, such as a suite or floor. Example: `Floor 6`
    - `city` (string, nullable): City or town. Example: `Boston`
    - `region` (string, nullable): State, province, or other top-level administrative area. Example: `MA`
    - `zip` (string, nullable): Postal code. Example: `02110`
    - `country` (string, nullable): Country name or ISO country code. Example: `US`
    - `latitude` (number, nullable): Latitude of the location, resolved by geocoding when not supplied directly. Example: `42.3505`
    - `longitude` (number, nullable): Longitude of the location, resolved by geocoding when not supplied directly. Example: `-71.055`
    - `geocode_status` (string, nullable): 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` (string, nullable): Your own category for this location. Example: `Flagship store`
    - `description` (string, nullable): Free-text description of the location. Example: `Corner store with in-store pickup.`
    - `url` (string, nullable): Web page for this location. Example: `https://example.com/stores/boston`
    - `phone_number` (string, nullable): Public phone number for this location. Example: `+16175551234`
    - `email` (string, nullable): Public contact email address for this location. Example: `boston@example.com`
    - `manager_name` (string, nullable): Name of the person responsible for this location. Example: `Alex Chen`
    - `manager_email` (string, nullable): 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` (string, nullable): Value written to the location profile property on profiles associated with this location. Example: `Klaviyo Boston`
    - `profile_count` (integer, nullable): Number of profiles currently associated with this location. Recomputed periodically, so it lags recent segment membership changes. Example: `1284`
    - `segment_count` (integer, nullable): Number of segments linked to this location. Available via `?include=segments`. Example: `3`
  - `relationships` (object)
    - `segments` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/get_location_beta.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/get_location_beta.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.
- `included` (object[])
  - `type` (string, required): Allowed values: `segment`
  - `id` (string, required): Identifier of the segment. Example: `01HQ8V5X9K2M4N6P8R0T2W4Y6A`
  - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": {
    "type": "location",
    "id": "01HQ8V5X9K2M4N6P8R0T2W4Y6A",
    "attributes": {
      "name": "Klaviyo Boston",
      "address1": "125 Summer St",
      "address2": "Floor 6",
      "city": "Boston",
      "region": "MA",
      "zip": "02110",
      "country": "US",
      "latitude": 42.3505,
      "longitude": -71.055,
      "geocode_status": "successful",
      "type_label": "Flagship store",
      "description": "Corner store with in-store pickup.",
      "url": "https://example.com/stores/boston",
      "phone_number": "+16175551234",
      "email": "boston@example.com",
      "manager_name": "Alex Chen",
      "manager_email": "alex.chen@example.com",
      "features": [
        "curbside-pickup",
        "returns"
      ],
      "profile_property_value": "Klaviyo Boston",
      "profile_count": 1284,
      "segment_count": 3
    },
    "relationships": {
      "segments": {
        "data": [
          {
            "type": "segment",
            "id": [
              "01HQ8V5X9K2M4N6P8R0T2W4Y6C"
            ]
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  },
  "included": [
    {
      "type": "segment",
      "id": "01HQ8V5X9K2M4N6P8R0T2W4Y6A",
      "links": {
        "self": "https://www.example.com"
      }
    }
  ]
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
