---
title: "List Locales"
method: GET
path: "/v2/locales"
tags: ["locale"]
---

# List Locales

`GET /v2/locales`

Returns a list of locales for a site.

## Query parameters

- `siteId` string, uuid, required
- `limit` number, double
- `startingAfter` string, uuid

## Headers

- `x-api-key` string, required

## Response `200`

- ListSiteLocaleV2ResponseBodyDto
  - `object` 'list', required
  - `data` ListSiteLocaleV2ResponseBodyDtoDataItems[], required
    - `object` 'locale', required
    - `id` string, uuid, nullable, required — The ID of the locale you are getting.
    - `locale` string, required — We support the subset of locales specified with ISO 3166 that are composed of language and optionally a region.
    - `domain` string, uri, nullable, required — The domain URL for domain-based localization.
    - `pathPrefix` string, nullable, required — Custom URL path prefix. Null means the locale code is used as the default prefix.
    - `isDefault` boolean, required — The flag that indicates whether this locale is the default locale for the site.
  - `hasMore` boolean, required — The flag that indicates whether there are more locales available.

## Other responses

- `400`
- `403`

---

[API](https://skmtc.net/makeswift/apis/rest.md) · [All operations](https://skmtc.net/makeswift/apis/rest/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/makeswift/rest/revisions/9e0c72b4d151/schema)
