---
title: "Get Locale"
method: GET
path: "/v2/locales/{localeIdOrCode}"
tags: ["locale"]
---

# Get Locale

`GET /v2/locales/{localeIdOrCode}`

Returns a locale by its ID or locale code.

## Path parameters

- `localeIdOrCode` string, required

## Query parameters

- `siteId` string, uuid

## Headers

- `x-api-key` string, required

## Response `200`

- ReadSiteLocaleV2ResponseBodyDto
  - `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.

## 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/versions/9e0c72b4d151/schema)
