Gateway API
What: The raw payment gateway surface for HTTP 402 payment challenges, x402 proofs, connect-token execution, request logs, and settlement state.
When: Use this when you own the backend or agent runtime and want the most explicit control over headers, retries, policies, and ledger events.
Why: It is the lowest-level path. You keep your app and product flow while Apiosk handles payment verification and money movement.
- 1Call your protected route through the gateway.
- 2Handle the HTTP 402 response when payment is required.
- 3Attach an x402 payment proof, connect token, or other supported payment authorization.
- 4Retry the request and inspect the response headers and ledger logs.
https://gateway.apiosk.com