> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get enumeration definitions

> Read the full definitions of a page of enumerations in an app's build in one call, with values, labels and source system codes, to export or sync them.

> [!TIP]
>
> Looking for end-to-end guidance on calling FlowX from your own app? See [Consuming FlowX from external apps](https://docs.flowx.ai/6.x/docs/platform-deep-dive/integrations/consuming-flowx-from-external-apps.md).

Returns the full definitions of one page of an app's enumerations: the same page that [List enumerations](https://docs.flowx.ai/6.x/docs/api/enumerations/list-enumerations.md) returns, with every enumeration's values, labels and source system codes included. Use it to export or sync all enumerations of a build without one call per enumeration.

The page is sorted by enumeration name, ignoring case, and covers the app's own enumerations and the ones from its libraries. Enumerations deleted after the build was created are left out of both the page and `totalElements`.

Any signed-in user of your organization can call this endpoint. The runtime checks that the workspace belongs to the caller's organization.

***

## Choose the build

There are two variants of this endpoint. They take the same query parameters and return the same response.

| Variant | Path | Use when |
| - | - | - |
| **Active build** | `GET /api/runtime/wks/{workspaceId}/app/{appId}/rt/enumeration/definitions` | You want the build that currently runs in the workspace. |
| **By build ID** | `GET /api/runtime/app/{appId}/build/{buildId}/rt/enumeration/definitions` | You already know the build, for example from [Get build info](https://docs.flowx.ai/6.x/docs/api/start-process/get-build-info.md). |

> [!TIP]
>
> When you page through the active build, read `buildId` from the first response and request the next pages with the **By build ID** variant. If a new build becomes active while you page, every page still comes from the same build.

***

## Path parameters

> [!NOTE]
>
> **Need help finding the app ID or workspace ID?** See the [Finding identifiers and parameters](https://docs.flowx.ai/6.x/docs/platform-deep-dive/integrations/finding-identifiers-and-parameters.md) guide.

**workspaceId** `string` *required*

The UUID of the workspace. Active build variant only.

**appId** `string` *required*

The UUID of the app.

**buildId** `string`

The UUID of the build, as returned in `buildId` by [Get build info](https://docs.flowx.ai/6.x/docs/api/start-process/get-build-info.md) or by this endpoint. By build ID variant only. The build must belong to the app in `appId`.

## Query parameters

**nameSnippet** `string`

Returns only enumerations whose name contains this text, ignoring case.

**languages** `string[]`

The language codes to return labels in. Repeat the parameter for several languages, for example `languages=en&languages=ro`. Every code must be a language of the build, otherwise the call returns `400 Bad Request`. When omitted, labels come in all of the build's languages.

**page** `integer` (default: 0)

The zero-based page number. Must be `0` or more.

**size** `integer` (default: 20)

The number of enumerations per page, from `1` to `20`. A value outside this range returns `400 Bad Request`.

## Request headers

**Authorization** `string` *required*

Bearer token. Format: `Bearer <token>`.

***

## Response

**buildId** `string`

The build the page was read from. Pass it to the **By build ID** variant to read the next pages from the same build.

**content** `array`

The enumeration definitions on this page.

**Definition properties**

**name** `string`

The enumeration name.

**resourceDefinitionId** `string`

The enumeration's resource definition ID, stable across builds and versions.

**appId** `string`

The app that owns the enumeration: the app in the path, or the library it comes from.

**fromLibrary** `boolean`

`true` when the enumeration comes from a library, `false` when it belongs to the app itself.

**languages** `string[]`

The languages the labels are returned in.

**values** `array`

The enumeration values, sorted by `order`. Each value has `code`, `order`, `labels` (label per language code), `sourceSystems` (code per source system) and, when set, `childEnumeration` (the name of the linked child enumeration). To read a child enumeration, call [Get enumeration by name](https://docs.flowx.ai/6.x/docs/api/enumerations/get-enumeration-by-name.md) with `childEnumName`.

**page** `integer`

The page number you requested.

**size** `integer`

The page size you requested.

**totalElements** `integer`

The number of enumerations that match `nameSnippet` across all pages.

```bash Active build theme={"dark"}
curl -X GET "{BASE_URL}/api/runtime/wks/{workspaceId}/app/{appId}/rt/enumeration/definitions?languages=en&page=0&size=20" \
  -H "Authorization: Bearer <token>"
```

```bash By build ID theme={"dark"}
curl -X GET "{BASE_URL}/api/runtime/app/{appId}/build/{buildId}/rt/enumeration/definitions?languages=en&page=1&size=20" \
  -H "Authorization: Bearer <token>"
```

```json 200 theme={"dark"}
{
  "buildId": "11111111-1111-1111-1111-111111111111",
  "content": [
    {
      "name": "countries",
      "resourceDefinitionId": "3f1c2a7e-5b8d-4e21-9c4a-7d2e1f0b6a93",
      "appId": "dbe0ab87-539b-4015-962d-6e73226b9e58",
      "fromLibrary": false,
      "languages": ["en"],
      "values": [
        {
          "code": "RO",
          "order": 1,
          "labels": { "en": "Romania" },
          "sourceSystems": { "CRM": "642" },
          "childEnumeration": "regions"
        }
      ]
    },
    {
      "name": "currencies",
      "resourceDefinitionId": "c7b3d915-2e4a-4f60-8d1b-6a9e0f3c2b48",
      "appId": "5c2b9e41-7f6a-4d38-b0e2-91a4c7d3e8f5",
      "fromLibrary": true,
      "languages": ["en"],
      "values": [
        {
          "code": "EUR",
          "order": 1,
          "labels": { "en": "Euro" },
          "sourceSystems": {}
        }
      ]
    }
  ],
  "page": 0,
  "size": 20,
  "totalElements": 2
}
```


## Related topics

- [List enumerations](https://docs.flowx.ai/6.x/docs/api/enumerations/list-enumerations.md)
- [Get enumeration by resource definition ID](https://docs.flowx.ai/6.x/docs/api/enumerations/get-enumeration-by-resource-definition-id.md)
- [Get enumeration by name](https://docs.flowx.ai/6.x/docs/api/enumerations/get-enumeration-by-name.md)
- [React Native SDK](https://docs.flowx.ai/6.x/sdks/react-native-renderer.md)
- [React SDK](https://docs.flowx.ai/6.x/sdks/react-renderer.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.