---
title: "Get Location Hub Setting"
description: "How to call Get Location Hub Setting (GET /api/location-hub-settings/{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_hub_setting_beta"
revision: "2026-10-15.pre"
operationId: "get_location_hub_setting_beta"
method: "GET"
endpoint: "https://a.klaviyo.com/api/location-hub-settings/{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_hub_setting_beta.json"
jsonApi: {"fields":{"location-hub-setting":["id","profile_property_key_name"]}}
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/get_location_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/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 Hub Setting

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

```http
GET https://a.klaviyo.com/api/location-hub-settings/{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 Location Hub settings for an account.

The resource id is the account id. Returns the effective profile property key name Location Hub uses when linking profiles to locations.

- 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_hub_setting_beta.json)

## Example request

### curl

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/location-hub-settings/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-hub-setting 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-hub-setting]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `id`, `profile_property_key_name`

## 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-hub-setting`
  - `id` (string, required): The account identifier for these settings. Example: `abCdEf`
  - `attributes` (object, required)
    - `profile_property_key_name` (string, required): Profile property key Location Hub writes when linking a profile to a location. Example: `nearest_location`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": {
    "type": "location-hub-setting",
    "id": "abCdEf",
    "attributes": {
      "profile_property_key_name": "nearest_location"
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "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"
      }
    }
  ]
}
```
