Payment Header Check API
Payment Header Check API: reads an x402 PAYMENT-SIGNATURE header before you send it - base64/UTF-8/JSON, version, authorization fields, clock window, who signed (lane a or b) and, with the seller PAYMENT-REQUIRED, payTo/amount/network/asset. Nothing is sent anywhere. $0.005 USDC per check. POST JSON {payment_signature, payment_required?}; free example at https://api.aiskills402.com/v1/run/payment-header-check/example
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.aiskills402.com/v1/run/payment-header-check
| Category | Everything else |
|---|---|
| Provider host | api.aiskills402.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"payment_required": null,
"payment_signature": "eyJ4NDAyVmVyc2lvbiI6MiwiYWNjZXB0ZWQiOnsic2NoZW1lIjoiZXhhY3QiLCJuZXR3b3JrIjoiZWlwMTU1Ojg0NTMiLCJhbW91bnQiOiIxIiwiYXNzZXQiOiIweDgzMzU4OWZDRDZlRGI2RTA4ZjRjN0MzMkQ0ZjcxYjU0YmRBMDI5MTMiLCJwYXlUbyI6IjB4MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsIm1heFRpbWVvdXRTZWNvbmRzIjo2MCwiZXh0cmEiOnsibmFtZSI6IlVTRCBDb2luIiwidmVyc2lvbiI6IjIifX0sInBheWxvYWQiOnsiYXV0aG9yaXphdGlvbiI6eyJmcm9tIjoiMHhhNjk2NTY1Y0ZlM2Y2NWNkRDAxMzJhMDJlNDA4QzM5NDE4RDhjRTQ3IiwidG8iOiIweDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJ2YWx1ZSI6IjEiLCJ2YWxpZEFmdGVyIjoiMCIsInZhbGlkQmVmb3JlIjoiMTc5ODc2MTYwMCIsIm5vbmNlIjoiMHg1ZTVlNWU1ZTVlNWU1ZTVlNWU1ZTVlNWU1ZTVlNWU1ZTVlNWU1ZTVlNWU1ZTVlNWU1ZTVlNWU1ZTVlNWU1ZTVlIn0sInNpZ25hdHVyZSI6IjB4NzJkN2RiZWI4ZDNiMmQxOWRlOWJlNTkzOWM2YzM1NWI0ZDEwN2JmOTBiZTA4YTRkZDhhYjI4MjE0ZWVhNzA3YTQxMzdkZTM5NTQzMDhjNWNlYWE0OWE0YTNkNTE3MDBkMzUyYzMxNzc4MTU2MGQ5Nzk0YjE0MmQwMTkzMDJkYWYxYiJ9fQ=="
},
"bodyType": "json",
"headers": {
"content-type": "application/json"
},
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"payment_required": {
"description": "Optional: the seller PAYMENT-REQUIRED header value, for a cross-check of payTo, amount, network and asset.",
"maxLength": 16384,
"type": [
"string",
"null"
]
},
"payment_signature": {
"description": "The value of the PAYMENT-SIGNATURE (or X-PAYMENT) header you are about to send. It is only read here, never sent anywhere.",
"maxLength": 16384,
"minLength": 1,
"type": "string"
}
},
"required": [
"payment_signature"
],
"type": "object"
},
"bodyType": {
"enum": [
"json"
],
"type": "string"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}