Skip to main content
POST
/
proxy
/
sim
Simulate proxy payment request
curl --request POST \
  --url https://api.httpayer.com/proxy/sim \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "api_url": "https://www.x402.org/protected",
  "method": "GET",
  "payload": {},
  "data": {},
  "params": {},
  "headers": {}
}
'
{
  "scheme": "exact",
  "network": "base",
  "payTo": "<string>",
  "asset": "<string>",
  "maxAmountRequired": "<string>",
  "resource": "<string>",
  "description": "<string>",
  "mimeType": "application/json",
  "maxTimeoutSeconds": 180
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
api_url
string
required

Target API URL to simulate payment for

Example:

"https://www.x402.org/protected"

method
enum<string>
required

HTTP method

Available options:
GET,
POST,
PUT,
DELETE,
PATCH
Example:

"GET"

payload
object

Request body data

data
object

Alternative request body data

params
object

Query parameters

headers
object

Custom headers to send to target API (e.g., API keys, authorization tokens)

Response

Payment requirements returned successfully

scheme
string
Example:

"exact"

network
string
Example:

"base"

payTo
string

Recipient address

asset
string

Token contract address

maxAmountRequired
string

Amount in microUSDC

resource
string

Resource URL

description
string
mimeType
string
Example:

"application/json"

maxTimeoutSeconds
number
Example:

180