---
title: "Get a location"
method: GET
path: "/locations/{locationId}"
tags: ["Locations"]
---

# Get a location

`GET /locations/{locationId}`

## Request

- Base URL: `https://public.escape.tech/v3`
- URL: `https://public.escape.tech/v3/locations/{locationId}`
- Auth: API key in header `X-ESCAPE-API-KEY`

Retrieve a Private Location details.

## Path parameters

- `locationId` string, uuid, required: The ID of the location to get

## Response `200`

OK

- object
  - `id` string, uuid: The location ID.
  - `name` string: The name of the location.
  - `type` string: The type of the location.
  - `enabled` boolean: Whether the location is enabled.
  - `createdAt` string: The date and time the location was created.
  - `lastSeenAt` string, nullable: The date and time the location was last seen.
  - `ip` string, nullable: The IP address of the location.
  - `region` 'Asia' | 'Canada' | 'Europe' | 'UnitedStates' | 'null', nullable: The region of the location.
  - `isActive` boolean: Whether the location agent is currently active.
  - `tags` object[]: The tags associated with the location.
    - `id` string, uuid, required: The id of the tag
    - `name` string, required: The name of the tag
    - `color` string, required: The color of the tag
  - `links` object, required
    - `locationOverview` string, required: The URL of the location overview.

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/escape/apis/escape-public-api.md) - [All operations](https://skmtc.dev/escape/apis/escape-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/escape/apis/escape-public-api/revisions/2eab35df40c7?raw)
