> For the complete documentation index, see [llms.txt](https://docs.overflowcms.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overflowcms.com/api-reference/field-types-and-data-shapes.md).

# Field Types & Data Shapes

## Field Types & Data Shapes

What each field type actually serializes to in the `data` object of a published item.

| Type        | JSON shape                  | Example                                                                                                       |
| ----------- | --------------------------- | ------------------------------------------------------------------------------------------------------------- |
| `text`      | `string`                    | `"Shipping unlimited items on Webflow"`                                                                       |
| `richText`  | `string` (HTML)             | `"<p>Webflow's CMS caps you at 100 items...</p>"`                                                             |
| `image`     | MediaRef object             | `{ "mediaId": "...", "url": "...", "srcset": "...", "alt": "...", "width": 1280, "height": 720 }`             |
| `video`     | MediaRef object             | Same shape as `image`.                                                                                        |
| `number`    | `number`                    | `4.5`                                                                                                         |
| `date`      | ISO-8601 `string`           | `"2026-07-12T00:00:00.000Z"`                                                                                  |
| `boolean`   | `boolean`                   | `true`                                                                                                        |
| `option`    | `string`                    | One of the values you defined for that field, e.g. `"news"`                                                   |
| `reference` | Resolved object (one level) | The referenced item's own `data`, nested under the field's key — not just a bare id, once resolved by the API |

### MediaRef

```ts
interface MediaRef {
  mediaId: string;
  url?: string;
  srcset?: string;
  alt?: string;
  width?: number;
  height?: number;
}
```

`srcset` is only present when the image pipeline generated responsive variants (Cloudflare Images) — an externally-pasted image URL may only carry `url`.

### Which types are indexable

Only indexed values can be used in `sort`/`filter` (see Collections & Items):

| Type        | Indexable | Index kind |
| ----------- | --------- | ---------- |
| `text`      | Yes       | text       |
| `number`    | Yes       | numeric    |
| `date`      | Yes       | numeric    |
| `boolean`   | Yes       | numeric    |
| `option`    | Yes       | text       |
| `reference` | Yes       | text       |
| `richText`  | No        | —          |
| `image`     | No        | —          |
| `video`     | No        | —          |

### Plan gates

`reference` and `video` fields require the **Pro** plan or above — they're hidden/disabled in the field-type picker below that tier. See Plans & Billing.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.overflowcms.com/api-reference/field-types-and-data-shapes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
