Skip to main content

Quickstart Guide

Get started with HTTPayer in under 5 minutes.

Proxy Endpoint

Prerequisites

  • A HTTPayer API key (contact the team to get one)

Step 1: Get Your API Key and Set Up Your Environment

Contact the HTTPayer team to receive your API key. You’ll use this in the X-API-KEY header for all requests.

Step 2: Make a Simulation Request

Test the payment flow without executing a transaction. Typescript:
Python:
Response:

Step 3: Make a Payment-Gated Request

Execute the full payment + request flow using the /proxy endpoint. Typescript:
Python:

Relay Endpoint

Prerequisites

  • USDC on Base, Base Sepolia, SKALE Base, SKALE Base Sepolia, Solana, or Solana Devnet
  • A HTTP client configured with x402 payment abilities (x402-fetch on Typescript, x402 on Python)

Step 1: Create a Wallet Client

Typescript:
Python:

Step 2: Make a Simulation Request

Test the payment flow without executing a transaction. Typescript:
Python:
Response:

Step 3: Make a Payment-Gated Request

Execute the full payment + request flow using the /relay endpoint. Typescript:
Python:

Forwarding Request Data

Both /proxy and /relay support forwarding arbitrary request data to the target API. The following fields can be included alongside api_url and method: Example POST with JSON body and custom headers:
Example POST with Basic auth:

Next Steps

API Reference

Explore all available endpoints

Payment Relay

Learn about the relay endpoint

Check Balance

View your account balance

Support

Need help? Reach out to the HTTPayer team or check out our GitHub repository.