> ## 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 by name

> Read the full definition of one enumeration in an app's build by its name, with every value's code, order, labels per language and source system codes.

> [!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 enumeration of an app's build, looked up by name, with all its values: code, order, label per language, source system codes and child enumeration. The enumeration can belong to the app or come from one of its libraries. To find enumeration names first, call [List enumerations](https://docs.flowx.ai/6.x/docs/api/enumerations/list-enumerations.md). To look up by resource definition ID instead, use [Get enumeration by resource definition ID](https://docs.flowx.ai/6.x/docs/api/enumerations/get-enumeration-by-resource-definition-id.md).

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/rn/{enumerationName}/definition` | You want the build that currently runs in the workspace. |
| **By build ID** | `GET /api/runtime/app/{appId}/build/{buildId}/rt/enumeration/rn/{enumerationName}/definition` | 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`.

**enumerationName** `string` *required*

The name of the enumeration. An enumeration that is not in the build returns `404 Not Found`.

## Query parameters

**childEnumName** `string`

The name of a child enumeration under this enumeration. When set, the response is the child enumeration's definition instead of the parent's, reported under the parent's `resourceDefinitionId`. A child that does not exist returns `404 Not Found`.

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

## Request headers

**Authorization** `string` *required*

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

***

## Response

**name** `string`

The enumeration name.

**resourceDefinitionId** `string`

The enumeration's resource definition ID. For a child enumeration read with `childEnumName`, this is the parent's resource definition ID.

**languages** `string[]`

The languages the labels are returned in.

**values** `array`

The enumeration values, sorted by `order`.

**Value properties**

**code** `string`

The value's code.

**order** `integer`

The value's position in the enumeration.

**labels** `object`

The value's label in each requested language, keyed by language code.

**sourceSystems** `object`

The value's code in each external source system, keyed by source system code. Empty when no source system codes are set.

**childEnumeration** `string`

The name of the child enumeration linked to this value. Omitted when the value has none. Pass it as `childEnumName` to read the child's values.

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

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

```json 200 theme={"dark"}
{
  "name": "countries",
  "resourceDefinitionId": "3f1c2a7e-5b8d-4e21-9c4a-7d2e1f0b6a93",
  "languages": ["en", "ro"],
  "values": [
    {
      "code": "RO",
      "order": 1,
      "labels": { "en": "Romania", "ro": "România" },
      "sourceSystems": { "CRM": "642" },
      "childEnumeration": "regions"
    },
    {
      "code": "HU",
      "order": 2,
      "labels": { "en": "Hungary", "ro": "Ungaria" },
      "sourceSystems": {}
    }
  ]
}
```


## 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)
- [React SDK](https://docs.flowx.ai/release-notes/v6.x/v6.1.0-november-2026/migrating-to-v6.1/react.md)
- [Angular SDK](https://docs.flowx.ai/release-notes/v6.x/v6.1.0-november-2026/migrating-to-v6.1/angular.md)


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