Field Types & Item Values
Field Types
Each collection has a schema, which defines the fields that can be added to items in the collection. Each field has a type, which determines the data that can be stored in the field. To see a list of field types included in your collection, make a request to the Get Collection endpoint.
Field Type Names
Some field types may use slightly different names in the Webflow UI. For these fields, they have an “alt name” listed, which is the name of the field displayed in Webflow. The API uses the name of the field type.
Plain Text
Basic text content that doesn’t need special formatting.
Format
Example
Rich Text
A long text field that can span multiple lines. Accepts HTML Formatting.
Format
Example
ImageRef / Image
The image field allows you to upload a single image for your Collection items and use it in your designs. Images must be hosted on a publicly accessible URL to be uploaded via the API. The maximum file size for images is 4MB.
You can also add an image that already exists in the CMS by referencing its fileId
.
Field Format: Read
Field Format: Write
ImageRefSet / Multi-Image
The multi-image field allows you to upload multiple images for a Collection item and use it in your designs. Images must be hosted on a publicly accessible URL to be uploaded via the API. The maximum file size for images is 4MB.
You can also add images that already exist in the CMS by referencing the fileId
.
Field Format: Read
Field Format: Write
VideoLink
Adds videos hosted on platforms such as YouTube or Vimeo through a URL. These are usually connected to a video element.
Field Format
Example
Link
Adds a generic link that can be connected to any link element such as a button, a text link, or a link block.
Field Format
Example
Adds an email address field to collection items.
Field Format
Example
Phone
Field Format
Example
Number
Add any kind of number (integer, decimal) to your collection items.
Field Format
Example
DateTime
Add a date and time picker to your collection items.
Field Format: Read
Field Format: Write
Example
Switch
A boolean field that allows you to toggle between true and false.
Field Format
Color
Adds a unique color to each collection item which can be applied as text color, background color, and border color in your designs. Accepts a HEX code as a string.
Field Format
Example
Accepts the following formats
- #RGB
- #RGBA
- #RRGGBB
- #RRGGBBAA
- rgb(red,green,blue)
- rgba(red,green,blue,alpha)
- hsl(hue,saturation,lightness)
- hsla(hue,saturation,lightness,alpha)
- orchid, aqua, black, …
- transparent
Option
Creates a list of predefined values to choose from for each collection item. You can pass either the option_id
or the string name of the option.
Field Format
Example
File
Adds a file to your collection items that you can connect to any link element in your project. Files must be hosted on a publicly accessible URL to be uploaded via the API.
Field Format: Read
Field Format: Write
Example
ItemRef / Reference
Link to a collection item from the same or different collections.
When creating a reference field, get the collectionId
of the collection you’re looking to reference. Then, when creating the field using the Create Field endpoint, pass the collectionId
to the metadata
property as "collectionId": <collectionId>
.
Field Format
Example
Set / Multi-Reference
Link to multiple collection items from the same or different collections.
When creating a reference field, get the collectionId
of the collection you’re looking to reference. Then, when creating the field using the Create Field endpoint, pass the collectionId
to the metadata
property as "collectionId": <collectionId>
.
Field Format
Example
User
Unique User ID that is set by Webflow. Only used for created-by
and updated-by
fields.