{"uid":"cap_qaeM30lgPFmzjRpCQbvrP","slug":"delx-commerce-batch-dependency-levels-46dc6ca4","name":"Delx Commerce Batch Dependency Levels","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/batch-dependency-levels?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"jobs":{"type":"array","items":{"type":"object","maxProperties":128,"additionalProperties":true},"maxItems":256,"description":"Jobs supplied to Batch Dependency Levels; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"levels":[["a"],["b","c"]],"cycle_or_missing":[]},"schema":"delx/util-batch-dependency-levels/v1","status":"pass","evidence":{"retained":false,"input_sha256":"cec84ec4f047849cfa3ecf3ed56401549860d2fc882012e6aa7b29aa2b2dbc19","external_calls":0},"operation":"data_batch:batch_dependency_levels"}},"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_FD2IwK2ApPMWxE3FIfR5f","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":"Computes topological dependency levels (execution order tiers) for a batch of jobs, detecting cycles or missing dependencies.","exampleAgentPrompt":"I have a list of jobs with dependencies — can you figure out which ones can run in parallel and group them into execution tiers, and also flag any circular dependencies?","exampleUseCases":[{"title":"CI pipeline stage ordering","prompt":"I have a bunch of build steps with dependencies on each other — can you work out what order they should run in and which ones can be parallelized, and let me know if there are any circular dependencies?"},{"title":"Data pipeline task scheduling","prompt":"Here are my ETL tasks with their upstream dependencies. Can you group them into execution levels so I know which ones can run at the same time and which have to wait?"},{"title":"Package install order resolution","prompt":"I have a list of packages that depend on each other — can you figure out the correct install order by tier and flag anything that's missing or circular?"}],"resultDescription":"Returns a 'levels' array where each sub-array is a set of jobs that can execute in parallel at that tier, plus a 'cycle_or_missing' array listing any jobs involved in cycles or with unresolvable dependencies. Also includes an evidence object with input hash and a flag confirming no data retention.","failureModes":["Jobs array exceeds 256 items — request rejected","Individual job object exceeds 128 properties — item rejected","Malformed JSON body — 400 error","Cycles detected — reported in cycle_or_missing field rather than erroring","Missing dependency references — reported in cycle_or_missing field","Payment failure via x402 — 402 response before processing"],"whenToPreferThis":"Use this endpoint when you need to compute execution tiers for a batch of interdependent jobs in a single call, especially when cycle detection and verifiable in-memory-only processing (no data retention) are important. Prefer it over custom graph logic when you want a pay-per-call, no-signup, cryptographically verifiable result delivered via x402 on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:53:00.740Z","isFirstParty":false,"canonicalSlug":"delx-commerce-batch-dependency-levels-46dc6ca4"}