Test a route's x402 payment behavior
test_x402_routeVerify x402 payment behavior by sending an unpaid test request to a route's paid URL, expecting a 402 Payment Required with a valid accepts[] offer.
Instructions
Send an unpaid test request to a route's paid URL and verify x402 behavior: expects 402 Payment Required with a valid accepts[] payment offer. Requires an Apiosk provider token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"route_id": "<route_id>"
},
"name": "test_x402_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route_id | Yes | ||
| test_payload | No | Sent as query params for GET, JSON body otherwise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||