{"uid":"cap_4XuQ9Qvsmy49n1puAT9ql","slug":"data-toolkit-unflatten-d9be1934","name":"Data Toolkit – Unflatten","description":"Rebuild a nested object from a single-level object whose keys are delimited paths (default delimiter `.`) — the inverse of flatten. Requires a flat object.","url":"https://data.openverbs.com/v1/unflatten","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["data"],"properties":{"data":{"description":"The flat, delimiter-keyed object to expand."},"delimiter":{"type":"string","maxLength":8,"minLength":1,"description":"Path delimiter. Default `.`."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VxnObZxzPaXclRkIIkInl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Expands a flat, delimiter-keyed object into a deeply nested object structure","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Restore nested config from flat storage","prompt":"I have a flattened config object from our database with keys like \"server.host\", \"server.port\", and \"db.name\" — can you expand it back into a nested JSON config using the dot delimiter?"},{"title":"Reconstruct nested API payload from form data","prompt":"Our form submission gives us flat keys separated by underscores, like \"order_items_0_sku\" and \"order_items_0_qty\" — please unflatten this into a proper nested object using underscore as the delimiter."},{"title":"Convert flat CSV-derived object to nested document","prompt":"I've parsed a CSV row into a flat object with dot-separated keys representing nested fields — can you unflatten it into a structured JSON document so I can store it in MongoDB?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:22.451Z","isFirstParty":false}