Skip to main content
GET
/
v2
/
locales
List Locales
curl --request GET \
  --url https://api.makeswift.com/v2/locales \
  --header 'x-api-key: <api-key>'
{
  "object": "list",
  "data": [
    {
      "object": "locale",
      "id": "<unknown>",
      "locale": "<string>",
      "domain": "https://hearthfurniture.com.mx",
      "isDefault": true
    }
  ],
  "hasMore": true
}

Authorizations

x-api-key
string
header
required

The App API key.

(e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

Query Parameters

siteId
string<uuid>
required

The site ID to list locales from.

limit
number
default:20

The maximum number of locales to return.

Required range: 1 <= x <= 100
starting_after
string<uuid>

The pagination cursor. This is used to indicate what ID to list from.

Response

object
enum<string>
required
Available options:
list
Example:

"list"

data
object[]
required
hasMore
boolean
required

The flag that indicates whether there are more locales available.