{"uid":"cap__vI5kwZfARHQp5YZJw3vJ","slug":"x402-qr-api-request-headers-endpoint-3ec1f6dd","name":"x402 QR API - Request Headers Endpoint","description":"Generated by create next app","url":"https://x402-qr-api.vercel.app/api/headers?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_A534ugH7UFRDyCJ_c5D_R","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the HTTP request headers received by the server, accessible via x402 micropayment","exampleAgentPrompt":"Can you check what HTTP headers the x402 QR API server is seeing from my request right now?","exampleUseCases":[{"title":"Debug forwarded headers in proxy chain","prompt":"I'm routing requests through a proxy and want to confirm which headers are actually making it to the server — can you call the headers endpoint and show me everything the server received?"},{"title":"Verify x402 payment header presence","prompt":"I just set up x402 micropayment headers in my client — can you hit the headers endpoint and confirm that the payment header is showing up correctly on the server side?"},{"title":"Inspect user-agent and client metadata","prompt":"Can you fetch the headers endpoint and tell me what user-agent and other client metadata the server is receiving from this request?"}],"resultDescription":"Returns a JSON object or plain response containing all HTTP request headers as key-value pairs, including standard headers like Host, User-Agent, Accept, Authorization, and any custom headers such as x402 payment tokens that were sent with the request.","failureModes":["402 Payment Required if valid x402 payment is not included","400 Bad Request if the request is malformed","500 Internal Server Error if the Next.js function fails","Empty or partial headers if proxy strips certain fields before reaching the server"],"whenToPreferThis":"Choose this endpoint when you need to inspect or debug the raw HTTP headers arriving at the x402-qr-api server, particularly when troubleshooting x402 payment header propagation, verifying proxy forwarding behavior, or confirming what metadata a Next.js Vercel function receives. Not suitable for general header inspection of arbitrary servers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:31:40.793Z","isFirstParty":false,"canonicalSlug":"x402-qr-api-request-headers-endpoint-3ec1f6dd"}