{"uid":"cap_DUZUm8GbObbKes8qcsjQK","slug":"x-pay-http-request-classifier-3370ae76","name":"X Pay HTTP Request Classifier","description":"AI topic classification of text","url":"https://www.api-xpay.com/x402/classify?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"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"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"asset":"USDC","network":"base","success":true,"category":"finance","confidence":0.33}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"20","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":"$20/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"20","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"20","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6xQRIQ0qdFICpj0a3x3gq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"20","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies an HTTP request body into a category (e.g. finance) with a confidence score, paid per-call via x402 USDC on Base.","exampleAgentPrompt":"Classify this HTTP POST request body as JSON — it's a payment transaction payload — and tell me what category it falls into and how confident you are.","exampleUseCases":[{"title":"Routing API traffic by category","prompt":"I have a JSON body from an incoming POST request and I need to know what category it belongs to — like finance or commerce — along with a confidence score so I can route it to the right handler."},{"title":"Auditing unknown request payloads","prompt":"Can you classify this unknown JSON payload that came in as an HTTP POST and tell me what domain it seems to belong to and how confident the classification is?"},{"title":"Labeling requests for analytics pipeline","prompt":"I'm building an analytics dashboard and need to automatically tag each incoming API request body with a category — run this JSON through the classifier and give me the label and confidence."}],"resultDescription":"Returns a JSON object containing: 'success' (boolean), 'category' (string label such as 'finance'), 'confidence' (float 0–1), 'asset' (e.g. 'USDC'), and 'network' (e.g. 'base').","failureModes":["Missing required 'input' object causes schema validation error","Unsupported HTTP method (not POST/PUT/PATCH) causes enum rejection","Malformed body or wrong bodyType causes parsing failure","Low confidence score (e.g. 0.33) indicates ambiguous or unrecognizable request","Payment failure via x402 results in 402 response before classification occurs"],"whenToPreferThis":"Choose this endpoint when you need to programmatically determine the domain category (e.g. finance, commerce) of an HTTP request body with a confidence score, especially in a pay-per-use context where you don't want subscription overhead. Prefer it over bespoke classifiers when you need a lightweight, on-demand classification without managing ML infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T02:21:07.003Z","isFirstParty":false,"canonicalSlug":"x-pay-http-request-classifier-3370ae76"}