{"uid":"cap_OgrjzhcI_Fof5SKfWvl7w","slug":"delx-commerce-dependency-order-api-98d8459e","name":"Delx Commerce Dependency Order API","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/dependency-order?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"edges":{"type":"array","description":"Directed edges as {from,to} objects among nodes."},"nodes":{"type":"array","description":"Workflow node identifiers for topological ordering."}}},"responseSchema":{"type":"json","example":{"order":["a","b","c"],"cyclic":false,"schema":"delx/util-dependency-order/v1","advisory":"Cycle detection is structural only.","unresolved":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Dn-gMIb8upOBWsDHVl3xK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs topological sorting on a directed graph of workflow nodes, returning execution order and cycle detection results.","exampleAgentPrompt":"I have a workflow with nodes A, B, C, D and edges B→A, C→B, D→C — can you give me the correct topological execution order and tell me if there are any cycles?","exampleUseCases":[{"title":"CI/CD pipeline step ordering","prompt":"I have a build pipeline with steps: lint, test, build, deploy, and notify. The edges are lint→test, test→build, build→deploy, deploy→notify. What order should these run in and are there any circular dependencies?"},{"title":"Agent task scheduling in a workflow","prompt":"I'm setting up an agent workflow where task B depends on A, task C depends on both A and B, and task D depends on C. Can you compute the dependency order so I know which tasks to run first?"},{"title":"Package dependency resolution","prompt":"I have packages X, Y, Z where X depends on Y and Y depends on Z. Sort them so I install them in the right order and tell me if there are any circular dependency issues."}],"resultDescription":"Returns a JSON object with an ordered array of node identifiers in safe topological execution order, a boolean 'cyclic' flag indicating whether a cycle was detected, a list of unresolved nodes, and an advisory note that cycle detection is structural only. Uses schema identifier 'delx/util-dependency-order/v1'.","failureModes":["Cyclic graph detected — returns cyclic:true with partial or empty order","Malformed edge objects missing 'from' or 'to' fields — likely validation error","Empty nodes array — may return empty order","Disconnected graph components — unresolved nodes listed in 'unresolved' field","Payment failure via x402 — 402 response before computation occurs"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call topological sort without standing up your own graph library or infrastructure. Ideal for AI agents orchestrating multi-step workflows that need to dynamically compute execution order at runtime. At $0.003 USDC per call with no signup required, it's well-suited for agentic pipelines that occasionally need dependency ordering without embedding a full graph algorithm library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:52.480Z","isFirstParty":false,"canonicalSlug":"delx-commerce-dependency-order-api-98d8459e"}