> ## 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.

# List enumerations

> List the enumerations available in an app's build, including those from libraries, so you can discover enumeration names without knowing them in advance.

> [!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 one page of the enumerations in an app's build: the app's own enumerations and the ones it gets from its libraries, with resource overrides applied. Each entry carries the enumeration name and resource definition ID, which you pass to [Get enumeration by name](https://docs.flowx.ai/6.x/docs/api/enumerations/get-enumeration-by-name.md) or [Get enumeration by resource definition ID](https://docs.flowx.ai/6.x/docs/api/enumerations/get-enumeration-by-resource-definition-id.md) to read its values. To read the values of a whole page in one call, use [Get enumeration definitions](https://docs.flowx.ai/6.x/docs/api/enumerations/get-enumeration-definitions.md).

The list is sorted by name, ignoring case. 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` | You want the build that currently runs in the workspace. |
| **By build ID** | `GET /api/runtime/app/{appId}/build/{buildId}/rt/enumeration` | 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). |

***

## 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). 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.

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

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

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

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

## Request headers

**Authorization** `string` *required*

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

***

## Response

**content** `array`

The enumerations on this page.

**Enumeration 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.

**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?nameSnippet=country&page=0&size=100" \
  -H "Authorization: Bearer <token>"
```

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

```json 200 theme={"dark"}
{
  "content": [
    {
      "name": "countries",
      "resourceDefinitionId": "3f1c2a7e-5b8d-4e21-9c4a-7d2e1f0b6a93",
      "appId": "dbe0ab87-539b-4015-962d-6e73226b9e58",
      "fromLibrary": false
    },
    {
      "name": "countryRegions",
      "resourceDefinitionId": "8a4e6c12-0d3f-4b7a-a915-2c6e8f1d4b07",
      "appId": "5c2b9e41-7f6a-4d38-b0e2-91a4c7d3e8f5",
      "fromLibrary": true
    }
  ],
  "page": 0,
  "size": 100,
  "totalElements": 2
}
```


## Related topics

- [Get enumeration by name](https://docs.flowx.ai/6.x/docs/api/enumerations/get-enumeration-by-name.md)
- [Get enumeration definitions](https://docs.flowx.ai/6.x/docs/api/enumerations/get-enumeration-definitions.md)
- [Get enumeration by resource definition ID](https://docs.flowx.ai/6.x/docs/api/enumerations/get-enumeration-by-resource-definition-id.md)
- [Enumerations](https://docs.flowx.ai/6.x/docs/platform-deep-dive/core-extensions/content-management/enumerations.md)
- [Resources](https://docs.flowx.ai/6.x/docs/projects/resources.md)


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