---
title: "Get a private location"
method: GET
path: "/api/synthetics/private_locations/{id}"
tags: ["synthetics"]
---

# Get a private location

`GET /api/synthetics/private_locations/{id}`

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/synthetics/private_locations/{id}</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

You must have `read` privileges for the Synthetics and Uptime feature in the Observability section of the Kibana feature privileges.

## Path parameters

- `id` string, required

## Response `200`

A successful response.

- SyntheticsGetPrivateLocation
  - `agentPolicyId` string — The ID of the agent policy associated with the private location.
  - `geo` object — Geographic coordinates (WGS84) for the location.
    - `lat` number, required — The latitude of the location.
    - `lon` number, required — The longitude of the location.
  - `id` string — The unique identifier of the private location.
  - `isInvalid` boolean — Indicates whether the location is invalid. If `true`, the location is invalid, which means the agent policy associated with the location is deleted.
  - `label` string — A label for the private location.
  - `namespace` string — The namespace of the location, which is the same as the namespace of the agent policy associated with the location.

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
