# Get Data Field

Gets a data field by its unprefixed ID. For example, collection key `field12345` is retrieved with `/field/12345`; `fieldFirstName` with `/field/FirstName`.
Without `detail=true`, the response contains `id` and `name`; `detail=true` also adds `type`, `multidimensional`, `ai_description`, `category`, and `meta_labels`. All detailed properties are always present, including empty strings and an empty label array when no metadata is configured.
The type vocabulary is extensible; clients should handle unfamiliar tokens. Current types (JSON value types and input examples for writing contact field values):
| Type | Meaning | JSON value / input format | Example |
|  --- | --- | --- | --- |
| `field-single` | Single-line text | String | `"Alex"` |
| `field-paragraph` | Multiline text | String | `"Line 1\nLine 2"` |
| `field-email` | Email address | String containing a valid email address | `"alex@example.com"` |
| `field-number` | Whole number | JSON integer | `100` |
| `field-url` | URL | String with absolute `http://` or `https://` URL | `"https://example.com"` |
| `field-date` | Calendar date | JSON integer, Unix timestamp in seconds | `755222400` |
| `field-time` | Time of day | JSON integer, seconds since midnight (0–86399) | `52200` |
| `field-datetime` | Date and time | JSON integer, Unix timestamp in seconds representing a UTC instant | `1715603400` |
| `field-html` | HTML content | String containing HTML | `"<p>Hello</p>"` |
| `field-decimal` | Decimal number | JSON integer scaled by 100 (1999 displays as 19.99) | `1999` |
| `field-unknown` | Legacy or unsupported field type (e.g. dropdown, checkbox or internal array) | No reliable input format; do not derive validation behavior from this token | — |

For date and date-time values use seconds, not milliseconds or formatted date strings. Convert local date-times to a UTC instant before sending.

Endpoint: GET /field/{fieldid}
Version: 1.0.0

## Path parameters:

  - `fieldid` (string, required)
    Unprefixed data field ID (for `field12345`, pass `12345`)

## Query parameters:

  - `detail` (boolean)
    Include the field type, dimensionality, AI description, category name, and meta-label names.

## Response 200:

  - `200` (unknown)
    Success Response.

## Response 200 fields (application/json):

  - `id` (any, required)
    Unprefixed data field ID; numeric for account fields, string for global fields

  - `name` (string, required)
    Name of the data field

  - `type` (string, required)
    Data field type

  - `multidimensional` (boolean, required)
    Whether a contact can hold one value per subscription (true) or one value overall (false)

  - `ai_description` (string, required)
    Stored AI field description, or the built-in description for a global field; empty string when absent

  - `category` (string, required)
    Category name; empty string when no category is assigned (the app lists such fields under its default group)

  - `meta_labels` (array, required)
    Meta-label names in unspecified order; empty array when no labels are assigned or the field is global

## Response 403:

  - `403` (unknown)
    Access Denied Response (403).

Your account does not have the required permissions to access this resource.

## Response 404:

  - `404` (unknown)
    Not Found Response (404).

The specified resource could not be found.

## Response 200 examples:

  - `Default response` (unknown)

  - `detail=true` (unknown)

