{"uid":"cap_mqUKoLJBRYvKqb85zNki1","slug":"delx-flatten1-9ec2faf5","name":"Delx Flatten1","description":"Flatten one level of nested lists. Call when you normalize agent-held nested arrays before mapping. Returns flattened items and count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/flatten1?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","description":"Input field: items."}}},"responseSchema":{"type":"json","example":{"count":4,"items":[1,2,3,4],"schema":"delx/util-flatten1/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_01FPT7S6el9soO1qgAdZ9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Flattens one level of nesting from a JSON array of nested lists, returning the flattened items and a count.","exampleAgentPrompt":"I have this nested array [[1,2],[3,4],[5]] — can you flatten it by one level so it becomes a single flat list?","exampleUseCases":[{"title":"Normalize nested API response arrays","prompt":"I got back a JSON response where results are grouped in nested arrays like [[a,b],[c,d]] — can you flatten it one level so I can map over a single list?"},{"title":"Prepare batched agent task queue","prompt":"My agent queued tasks in nested groups like [[task1,task2],[task3]] — flatten it one level so I can process them in order."},{"title":"Flatten grouped tag lists before dedup","prompt":"I have tags organized in nested lists by category like [[python,js],[react,node]] — flatten them one level so I can deduplicate across all of them."}],"resultDescription":"Returns the flattened array (one nesting level removed) and an integer count of the resulting items. No data is retained server-side.","failureModes":["Input 'items' field is missing or not an array — likely 400 error","Items contains non-array elements at the top level — behavior may skip or error on non-list entries","Payment not provided or invalid — 402 Payment Required response","Deeply nested arrays are only partially flattened (only one level removed by design)"],"whenToPreferThis":"Use this endpoint when you need a quick, stateless, single-level array flatten without writing custom logic — especially in agent pipelines where you want a reliable micro-utility for normalizing nested JSON arrays before downstream mapping, deduplication, or iteration. Not suited for deep/recursive flattening.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:54:21.941Z","isFirstParty":false,"canonicalSlug":"delx-flatten1-9ec2faf5"}