Data Objects

> A named set of fields and nested fields, readable from any flow without creating a table.

A data object holds one JSON object: settings, feature flags, copy text, limits, a small catalog. It sits next to tables and KV stores in Dashboard > Data > Data objects.

| Use | Pick | |-----|------| | One structured set of values, read often | Data object | | Many records with the same columns | Table | | Many independent values looked up by key | KV store |

Create and edit

Open Dashboard > Data > Data objects and click Add data object. The editor has two modes:

  • Form: a field tree. Each field has a name, a type (Text, Number, Boolean, Object, List, Empty) and a value. Objects and lists nest.
  • JSON: the same object as JSON. Switching back to Form keeps your edits.

Hover a field to copy its path, for example address.city or tags[0].

A data object can be at most 128 KB and 16 levels deep. Names may contain letters, numbers, hyphens and underscores.

Read fields in a flow

1. Open the Data panel in the builder, switch to Objects and drag the object onto the canvas. This creates a reference node. 2. Drag from the reference pin into empty canvas. The menu lists Value (the whole object) and every field, including nested ones such as address.city. 3. Pick a field. The new node outputs the field value with a matching pin type.

To read a path that is only known at runtime, use Get Data Object Field with a path pin.

Write fields in a flow

Set Data Object Field writes a value at a path and saves the object. Missing parent fields are created. Delete Data Object Field removes a field or list item.

Writes from parallel executions do not overwrite each other: each write re-reads the stored object when another execution saved it first. Reads later in the same execution see the new value.

Paths use dots for fields and brackets for list items: limits.requests, items[2].name. Use ["a.b"] for a field name that contains a dot.

API

| Method | Path | Body | |--------|------|------| | GET | /api/data-objects | | | POST | /api/data-objects | { name, description?, value? } | | GET | /api/data-objects/:id | | | PUT | /api/data-objects/:id | { name?, description?, value? } | | PUT | /api/data-objects/:id/path | { path, value } | | DELETE | /api/data-objects/:id/path | { path } | | DELETE | /api/data-objects/:id | |

:id is the object's ID (obj_...) or its name. Data objects also appear in /api/data-assets with type: "object".