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

# View locations

`GET /locations`

## Request

- Base URL: `https://nexhealth.info`
- URL: `https://nexhealth.info/locations`
- Auth: API key in header `Authorization`

This endpoint returns the institutions accessible to the caller, each with its nested list of locations. Pass subdomain to scope the response to a single institution.

## Query parameters

- `subdomain` string
- `inactive` boolean
- `foreign_id` string

## Response `200`

Successful

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error

---

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