# Data Toolkit – Unflatten

> Data Toolkit – Unflatten is a paid API for AI agents from data.openverbs.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Expands a flat, delimiter-keyed object into a deeply nested object structure

## Facts

- Endpoint: POST https://data.openverbs.com/v1/unflatten
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/data-toolkit-unflatten-d9be1934
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4XuQ9Qvsmy49n1puAT9ql

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability data-toolkit-unflatten-d9be1934 -d '<json body>'
```

Example prompt: Take this flat object — {"user.name": "Alice", "user.address.city": "Denver", "user.address.zip": "80201"} — and unflatten it into a proper nested JSON object using dot as the delimiter.

## When to prefer this

Choose this endpoint when you have a flat object with delimiter-separated keys (e.g. dot notation like 'a.b.c') and need to reconstruct its original nested hierarchical form. Ideal for reversing a flatten operation, restoring nested configs from flat storage, or processing form-encoded data back into structured JSON. Prefer this over hand-rolling recursive logic in your agent when the transformation needs to be reliable and fast.

## Known failure modes

- Missing required 'data' field returns a validation error
- Invalid or empty delimiter causes a bad request response
- Malformed or non-object input body results in schema validation failure
- Ambiguous keys where a key is both a leaf and a parent (e.g. 'a' and 'a.b') may produce unexpected output or an error

## How this service works

Rebuild a nested object from a single-level object whose keys are delimited paths (default delimiter `.`) — the inverse of flatten. Requires a flat object.

## Output

A deeply nested JSON object reconstructed from the input flat key-value pairs, where each delimiter-separated segment in the key becomes a level of nesting in the output object.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "data": {
       "description": "The flat, delimiter-keyed object to expand."
      },
      "delimiter": {
       "type": "string",
       "minLength": 1,
       "maxLength": 8,
       "description": "Path delimiter. Default `.`."
      }
     },
     "required": [
      "data"
     ],
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/data-toolkit-unflatten-d9be1934/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.openverbs.com](https://www.zero.xyz/host/data.openverbs.com/llms.txt)
