younifyd
Menu

Get All Locales

Get all locales

GET/spaces/{spaceId}/environments/{environmentId}/locales

Use it in a workflow

  1. Add a step and choose the Contentful connector.
  2. Pick the Get All Locales action (under Contentful Content Management API).
  3. Fill in the fields below, then reference the result from later steps as {{getAllLocales.response.data}}.

Request

Path parameters

spaceIdstringrequired

ID of the space

environmentIdstringrequired

ID of the environment

Query parameters

limitinteger

Maximum number of items to return

Default 100

skipinteger

Number of items to skip

Default 0

Response

Returns 200 with an object. Read it in later steps with {{getAllLocales.response.data.<field>}}.

itemsarray<object>
codestringrequired

Locale code (e.g., en-US, de-DE)

contentDeliveryApibooleanrequired

Whether this locale is available in the content delivery API

contentManagementApibooleanrequired

Whether this locale is available in the content management API

defaultboolean

Whether this is the default locale

fallbackCodestring

Code of the locale to use as a fallback

namestringrequired

Human readable name of the locale

optionalbooleanrequired

Whether this locale is optional for content

sysobjectrequired8 fields
limitinteger

Maximum number of locales returned

skipinteger

Number of locales skipped

sysobject
typestring

One ofArray

totalinteger

Total number of locales

json
{
  "items": [
    {
      "code": "string",
      "contentDeliveryApi": false,
      "contentManagementApi": false,
      "name": "string",
      "optional": false,
      "sys": {
        "id": "string",
        "type": "string",
        "space": {
          "sys": {
            "id": "string",
            "type": "string",
            "linkType": "string"
          }
        },
        "createdBy": {
          "sys": {
            "id": "string",
            "type": "string",
            "linkType": "string"
          }
        },
        "version": 0,
        "environment": {
          "sys": {
            "id": "string",
            "type": "string",
            "linkType": "string"
          }
        },
        "updatedBy": {
          "sys": {
            "id": "string",
            "type": "string",
            "linkType": "string"
          }
        },
        "updatedAt": "2025-01-01T00:00:00Z"
      },
      "default": false,
      "fallbackCode": "string"
    }
  ],
  "limit": 0,
  "skip": 0,
  "sys": {
    "type": "Array"
  },
  "total": 0
}

Need more? See the Contentful guide for connection setup and behaviour shared by every action.