{"uid":"cap_sA8LIh7Q8Tq3QF_dM76Vw","slug":"ddg-schema-infer-721749a0","name":"DDG Schema Infer","description":"DDG agent-payable service request","url":"https://agents.daedalusdevelopmentgroup.com/v1/schema-infer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":true},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string"},"example":{"ok":true}},"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1zcT-0Tl7BDzabjCebfTm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Infers and returns a structured schema for a given HTTP request/response example pair","exampleAgentPrompt":"I have a POST endpoint that accepts a JSON body like {\"name\":\"Alice\",\"age\":30} and returns {\"ok\":true} — can you infer the JSON schema for that request and response?","exampleUseCases":[{"title":"Schema from undocumented internal API","prompt":"We have an internal API that accepts form-data POSTs with fields like username and file, and returns {\"ok\":true,\"id\":\"abc123\"} — can you infer a proper JSON schema for it so we can document it?"},{"title":"Auto-document a third-party webhook","prompt":"I'm receiving JSON webhooks via POST from a payment provider with a body like {\"event\":\"payment.completed\",\"amount\":100,\"currency\":\"USD\"} and the response is just {\"ok\":true} — please infer the schema so I can validate future payloads."},{"title":"Validate API contract before integration","prompt":"Before I wire up my agent to call a new JSON API, can you infer the schema from this example POST body: {\"query\":\"weather in NYC\",\"lang\":\"en\"} with response {\"ok\":true,\"result\":\"Sunny, 72F\"}, so I know what fields are required?"}],"resultDescription":"Returns a JSON object with ok:true and an inferred schema definition derived from the provided HTTP request body and response example, including field types and required field lists.","failureModes":["Missing required fields (input or output) returns a validation error","Malformed or non-JSON body type mismatch causes inference failure","Unsupported HTTP method (e.g. GET) is rejected by the const/enum constraint","Empty or null example body may produce a minimal or incomplete schema","Payment failure via x402 will return a 402 response before processing occurs"],"whenToPreferThis":"Choose this endpoint when you need to automatically derive a structured JSON schema from example HTTP request/response pairs without manually writing schema definitions. Particularly useful for documenting undocumented APIs, validating webhook payloads, or bootstrapping OpenAPI specs. Prefer this over manual schema authoring or general-purpose LLM prompting when you want a machine-payable, deterministic schema extraction with a defined cost of $0.002 USDC per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T18:37:49.153Z","isFirstParty":false,"canonicalSlug":"ddg-schema-infer-721749a0"}