{"uid":"cap_9kstbTGF8aT0-q6wEtPe1","slug":"x402-tools-purposelen-diagnostics-endpoint-e93e7b70","name":"x402-tools PurposeLen Diagnostics Endpoint","description":"Paid x402 diagnostics. Unpaid paid-SKU requests return HTTP 402 with eip3009 extras. Facilitator: OpenX402 only.","url":"https://openclawproductions.com/api/v1/purposelen?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"origin":{"type":"string","description":"Public origin URL. Defaults to https://openclawproductions.com."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}},"inputSchema":{"type":"object","required":["type","properties"],"properties":{"type":{"type":"string","const":"object"},"required":{"type":"array","items":{"type":"string"}},"properties":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"sku":"purposelen","note":"Example paid JSON shape. Not a live settle.","price":"$0.02","title":"Purpose Len"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rCkhlPBohWFTZD_AGejCV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a paid JSON diagnostic payload for the 'purposelen' SKU via the x402 HTTP payment protocol, gated by a $0.02 USDC micropayment.","exampleAgentPrompt":"Run a paid x402 diagnostic probe against the purposelen SKU at openclawproductions.com using a GET request and show me what the paid JSON response looks like.","exampleUseCases":[{"title":"Validate x402 payment gate behavior","prompt":"I want to confirm that the purposelen endpoint correctly blocks unpaid requests with HTTP 402 and eip3009 extras — can you probe it with a GET and show me what comes back before and after payment?"},{"title":"Check paid SKU diagnostic response shape","prompt":"Fetch the paid diagnostic JSON for the purposelen SKU from openclawproductions.com via GET so I can verify the response shape and price field are correct."},{"title":"Test OpenX402 facilitator integration","prompt":"I need to test whether my OpenX402 facilitator is wired up correctly — can you call the purposelen diagnostic endpoint with a GET and confirm it returns the expected SKU, title, and price fields?"}],"resultDescription":"A JSON object containing the SKU identifier ('purposelen'), a human-readable title ('Purpose Len'), the price ('$0.02'), and a diagnostic note confirming it is a paid JSON shape. Unpaid requests receive HTTP 402 with EIP-3009 payment extras instead.","failureModes":["HTTP 402 returned if payment is not provided or facilitator is not OpenX402","Invalid method (POST, PUT, etc.) will be rejected — only GET, HEAD, DELETE are accepted","Missing required 'input.type' or 'input.method' fields cause validation errors","Non-OpenX402 facilitators are not accepted, causing payment rejection","Malformed origin URL query parameter may cause unexpected behavior"],"whenToPreferThis":"Use this endpoint when you need to test, diagnose, or validate x402 HTTP micropayment flows specifically for the 'purposelen' SKU via the OpenX402 facilitator. It is useful for developers integrating x402 payment gating into their own APIs, verifying eip3009 extras on 402 responses, or confirming that a paid endpoint returns the correct JSON shape after settlement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:46:07.865Z","isFirstParty":false,"canonicalSlug":"x402-tools-purposelen-diagnostics-endpoint-e93e7b70"}