## Get an enumeration field value

`GET /v1/userfields/:entity/enum-values/:id`

Retrieves one CRM enumeration field option by its ID so you can inspect its current label and properties.

> **This feature is rolling out.** It requires a CRM update after `26.2200.0` and activation by an administrator. The release version has not been published. Until available, requests return `422 METHOD_NOT_YET_AVAILABLE` with `error.release`.

For Smart Process Automation (SPA) fields, use the same contract at `GET /v1/items/:entityTypeId/userfields/enum-values/:id`. Invoices are also available through `entityTypeId=31`.

## Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `entity` (path) | string | yes | — | `deals` — deals, `leads` — leads, `contacts` — contacts, `companies` — companies, `quotes` — estimates, `invoices` — invoices |
| `entityTypeId` (path) | integer | for the alternate path | — | [SPA type](/docs/entities/smart-processes/list) ID, or `31` for invoices |
| `id` (path) | integer | yes | — | Positive option ID from the [list](/docs/entities/crm-field-enum/list) or [creation response](/docs/entities/crm-field-enum/create) |

## Examples

### curl — personal key

```bash
curl "https://vibecode.bitrix24.com/v1/userfields/deals/enum-values/4119" \
  -H "X-Api-Key: YOUR_API_KEY"
```

### curl — OAuth application

```bash
curl "https://vibecode.bitrix24.com/v1/userfields/deals/enum-values/4119" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"
```

### JavaScript — personal key

```javascript
const response = await fetch(
  'https://vibecode.bitrix24.com/v1/userfields/deals/enum-values/4119',
  {
    "method": "GET",
    "headers": {
      "X-Api-Key": "YOUR_API_KEY"
    }
  }
)
const { success, data } = await response.json()
```

### JavaScript — OAuth application

```javascript
const response = await fetch(
  'https://vibecode.bitrix24.com/v1/userfields/deals/enum-values/4119',
  {
    "method": "GET",
    "headers": {
      "X-Api-Key": "YOUR_APP_KEY",
      "Authorization": "Bearer USER_SESSION_TOKEN"
    }
  }
)
const { success, data } = await response.json()
```

## Response fields

HTTP `200 OK`.

| Field | Type | Description |
|---|---|---|
| `success` | boolean | `true` on success |
| `data` | object | Field option |
| `data.id` | integer | Option ID for [retrieval](/docs/entities/crm-field-enum/get) |
| `data.fieldId` | integer | Field ID. See [CRM fields](/docs/userfields/crm/list) and [SPA fields](/docs/userfields/smart-processes/list) |
| `data.value` | string | Option label |
| `data.isDefault` | boolean | Used as a default option |
| `data.sort` | integer | Sort order |
| `data.xmlId` | string / null | External integration ID |

## Response example

```json
{
  "success": true,
  "data": {
    "id": 4119,
    "fieldId": 6008145,
    "value": "VIBE-PROBE option",
    "isDefault": false,
    "sort": 500,
    "xmlId": "VIBE-PROBE-X"
  }
}
```

## Error response example

400 — invalid request:

```json
{
  "success": false,
  "error": {
    "code": "INVALID_PARAMS",
    "message": "id must be a positive safe integer"
  }
}
```

## Errors

| HTTP | Code | Description |
|---|---|---|
| 400 | `INVALID_PARAMS` | Invalid request shape or parameter type |
| 400 | `UNKNOWN_FILTER_FIELD` | Unknown or repeated query parameter |
| 404 | `ENTITY_NOT_FOUND` | No option exists with the specified ID |
| 422 | `METHOD_NOT_YET_AVAILABLE` | The feature is not yet available. Update information is provided in `error.release` |
| 502 | `BITRIX_UNAVAILABLE` | Invalid response from Bitrix24 |
| 401 | `MISSING_API_KEY` | Missing `X-Api-Key` |
| 401 | `TOKEN_MISSING` | No Bitrix24 tokens are configured |
| 403 | `SCOPE_DENIED` | The key requires the `crm` scope |

For shared API errors, see [Errors](/docs/errors).

## See also

- [List enumeration field values](/docs/entities/crm-field-enum/list)
- [Create an enumeration field value](/docs/entities/crm-field-enum/create)
- [Update an enumeration field value](/docs/entities/crm-field-enum/update)
- [Delete an enumeration field value](/docs/entities/crm-field-enum/delete)
- [CRM enumeration field values](/docs/entities/crm-field-enum)
