Tiered payment receipt (tier 2): pay once with x402 and get back a short-lived receipt tok
Tiered payment receipt (tier 2): pay once with x402 and get back a short-lived receipt token that /pay/verify checks for you. The tier is fixed by the path - you do not send it. Optional ?ref= carries your own opaque reference, such as a query hash, straight through to the receipt. This mints a receipt rather than returning data, so there is no lookup that can come back empty. $0.03 per call.
30000 (raw units)
price
18
calls / 30d
2
unique payers
2026-09-07
updated
Provider
api.truthbear.co · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x2d16a243ba9facc6ac85519d5efad2149dc4c6c3",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "30000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "8qEn3Y3GPXdQ28LHshPa4UYeD8V38Lq9b4jCRirQAY3n",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "30000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"discoverable": true,
"info": {
"input": {
"method": "GET",
"queryParams": {
"ref": "optional - opaque reference such as a query hash",
"tier": "optional - ignored; fixed to 2 by this path"
},
"type": "http"
},
"output": {
"type": "json"
}
},
"outputSchemaRef": "/manifest",
"priceUsd": "$0.03",
"priceUsdNumber": 0.03,
"routeTemplate": "/pay/tier2",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"ref": {
"description": "optional - opaque reference such as a query hash",
"type": "string"
},
"tier": {
"description": "optional - ignored; fixed to 2 by this path",
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"type": {
"const": "json"
}
},
"required": [
"type"
],
"type": "object"
}
}
}
}
}Use it
curl
curl "https://api.truthbear.co/pay/tier2" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.truthbear.co/pay/tier2");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.truthbear.co/pay/tier2")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/4407.json, and this resource appears in /discovery/resources and /discovery/search.