---
title: "GET /locations"
method: GET
path: "/locations"
tags: ["locations"]
---

# GET /locations

`GET /locations`

Returns list of locations

## Query parameters

- `with_total` boolean

## Response `200`

Returns list of locations

- EndpointsLocations — Endpoints_Locations model
  - `data` LocationEntity[]
    - `id` integer
    - `name` string
    - `parent_location_id` integer
    - `sub_locations` LocationEntity[]
  - `total` integer — Show the total count of locations

## Other responses

- `400` — validation_error
- `401` — authentication_error
- `403` — authorization_error
- `404` — not_found_error
- `422` — validation_error
- `500` — internal_server_error

---

[API](https://skmtc.net/propstack/apis/propstack-api-v2-beta.md) · [All operations](https://skmtc.net/propstack/apis/propstack-api-v2-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/propstack/propstack-api-v2-beta/revisions/ae1e0fe6da1a/schema)
