---
title: "Get Court Locations (paginated, filterable)"
method: GET
path: "/court-locations"
tags: ["court-locations"]
---

# Get Court Locations (paginated, filterable)

`GET /court-locations`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/court-locations`
- Auth: none declared

Returns a paginated list of Court Locations.
- Filters:
  - `name` – case-insensitive partial match
  - `code` – case-insensitive partial match

## Query parameters

- `name` string
- `code` string
- `pageNumber` integer
- `pageSize` integer
- `sort` string[]

## Response `200`

Page of summarised Court Locations

- CourtLocationPage: Generic Spring Data page.
  - `pageNumber` integer, required: Zero-based page index.
  - `pageSize` integer, required: Page size.
  - `totalElements` integer, required: Total number of elements across all pages.
  - `totalPages` integer: Total number of pages.
  - `sort` Sort: Sorting state for the returned page.
    - `orders` SortOrdersInner[]: Active sort orders in priority order.
      - `property` string, required: Property name used for sorting.
      - `direction` 'asc' | 'desc', required: Sort direction.
  - `first` boolean
  - `last` boolean
  - `elementsOnPage` integer, required: Total number of elements in the current page.
  - `content` CourtLocationGetSummaryDto[], required
    - `name` string, required: Human-readable court name.
    - `locationCode` string, required: Code that identifies the Court Location.

## Other responses

- `400`: Invalid request parameters.
- `401`: Authentication required or token invalid.
- `403`: Authenticated but not permitted to perform this action.
- `406`: Requested media type/version not acceptable.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/hm-courts-and-tribunals-service/apis/applications-register-api.md) - [All operations](https://skmtc.dev/hm-courts-and-tribunals-service/apis/applications-register-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hm-courts-and-tribunals-service/apis/applications-register-api/revisions/36521cfe1ab7?raw)
