{"uid":"cap_wne1QM-hUf6FPBhGgQQv7","slug":"api-strale-io-99b02560","name":"API Mock Response Generator","description":"Generate a realistic mock API response with proper headers, status codes, and schema-matching body data.","url":"https://api.strale.io/x402/api-mock-response","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","required":["url"],"properties":{"url":{"type":"string"},"method":{"type":"string"},"status_code":{"type":"integer"},"response_schema":{"type":"object"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"url":"https://api.example.com/users/123","method":"GET","status_code":200,"response_schema":{"type":"object","required":["id","name","email"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"}}}},"response":{"url":"https://api.example.com/users/123","body":{"id":123,"name":"John Doe","email":"john.doe@example.com"},"_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0xb0296caabd18cfc68130a2eb294f49ad9c391438fccbe00d38a8877dc1064d78"},"capability":"api-mock-response","latency_ms":1700,"provenance":{"source":"claude-haiku","fetched_at":"2026-06-16T01:20:20.061Z"}},"method":"GET","headers":{"Date":"Mon, 23 Jan 2024 14:32:15 GMT","ETag":"W/\"a3c5f2d8e1b9c4a6\"","Server":"nginx/1.24.0","Connection":"keep-alive","Content-Type":"application/json","X-Request-Id":"550e8400-e29b-41d4-a716-446655440000","Cache-Control":"max-age=3600","X-RateLimit-Limit":"5000","X-RateLimit-Reset":"1672531200","X-RateLimit-Remaining":"4999"},"status_code":200,"content_type":"application/json"}},"exampleRequest":{"url":"https://api.example.com/users/123","method":"GET","status_code":200,"response_schema":{"type":"object","required":["id","name","email"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"}}}},"tags":["x402"],"displayCostAmount":"0.054001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.054001/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_Pcj9Bao9gHv0dHCrZ8dPc","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":"Generates a realistic mock API response with proper headers, status codes, and schema-matching body data for a given URL and method.","exampleAgentPrompt":"Can you generate a realistic mock GET response for https://api.example.com/users/123 with a 200 status code and a response schema that includes id, name, and email fields?","exampleUseCases":null,"resultDescription":"Returns a realistic mock HTTP response including properly structured body data matching any provided JSON schema, appropriate headers, and the requested status code — suitable for use in tests, stubs, or development environments.","failureModes":["Invalid or missing URL in queryParams returns a 400 error","Unsupported HTTP method (e.g. POST, PUT) returns a validation error since only GET, HEAD, DELETE are allowed","Malformed response_schema object may result in a generic or empty body","Network or service unavailability returns a 5xx error","Payment not provided or invalid returns a 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a realistic, schema-matching mock API response for a specific URL and HTTP method during development or testing, especially when you want body data that conforms to a given JSON schema. Prefer this over hand-crafting mock data when you need plausible, varied fake responses quickly without setting up a full mock server.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-05-27T18:43:19.731Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:00:15.565Z","isFirstParty":false}