# List locations in a project (admin)

Canonical page: https://docs.ovok.com/api/slim/location/list-locations-in-a-project-admin

`GET /v1/slim/location/admin/list`

Lists the locations of a given project. The admin dashboard uses it to fill the location picker after you choose a project.

**Auth:** Bearer token. The caller must be a Medplum project admin. Super admins without the admin role, practitioners and System Owner callers are refused. The access-policy check (`Location:search`, `Location:read`) is skipped only for an admin who holds no access policy.
**Scope:** The project named by the required `projectId` query parameter. The search runs with Ovok's admin client, not the caller's token.

## Behaviour

- Read-only.
- Locations are sorted by name.
- Pagination is zero-based: `page` (default `0`) and `count` (default `50`, max `100`).
- `total` is an estimate: when a page is full it is one more than the rows seen so far, so a full page means more may follow.
- Unlike `GET /v1/slim/location`, rows carry no device or resident fields: one row per location.

## Example

```bash
curl -X GET 'https://api.sandbox.ovok.com/v1/slim/location/admin/list?projectId=c3499c27-2973-0a7f-807e-fb8676a92dcb&page=0&count=50' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
