{"uid":"cap_OQ2EmVxqvEmfpXj30yFbW","slug":"strale-schema-infer-25043dbc","name":"Strale Schema Infer","description":"The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.","url":"https://api.strale.io/x402/v2/schema-infer?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.054","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.054/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kVKI0JAKqh8UKBVuAJon7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Infers a JSON schema from a given object structure, detecting required fields and property types","exampleAgentPrompt":"Can you infer the JSON schema from this object — it has fields like 'name' (string), 'age' (number), and 'email' (string), and 'name' and 'email' are required?","exampleUseCases":[{"title":"Auto-generate API input schema","prompt":"I have an API that accepts user objects with fields 'userId', 'email', 'createdAt', and 'isActive' — 'userId' and 'email' are required. Can you infer a proper JSON schema definition for this?"},{"title":"Validate data contract from sample","prompt":"I've got a sample JSON object with properties 'orderId', 'amount', 'currency', and 'items' — orderId and amount are required. Infer the schema so I can use it for data contract validation."},{"title":"Reverse-engineer schema from unknown payload","prompt":"I received this payload from an external API and need to understand its structure — can you infer the JSON schema from these properties: 'productId', 'title', 'price', 'inStock', where 'productId' and 'title' are required?"}],"resultDescription":"Returns an inferred JSON schema object describing the structure of the input, including detected property types, required field lists, and a formal schema definition suitable for validation or documentation use.","failureModes":["Missing or malformed 'properties' input returns a 400 error","Empty properties object yields a minimal or trivial schema","Ambiguous type hints may produce overly broad inferred types","Network timeout on cold start may return 504","Unsupported property structures may not be fully represented in output schema"],"whenToPreferThis":"Choose this endpoint when you need to automatically derive a formal JSON schema from a known set of properties and required fields, especially in data pipeline setup, API contract generation, or validation rule creation — without manually authoring schema definitions. It pairs well with other Strale validation endpoints and returns a cryptographically auditable result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:39:31.588Z","isFirstParty":false,"canonicalSlug":"strale-schema-infer-25043dbc"}