Skip to main content
POST
/
api
/
verify
Verify payment
curl --request POST \
  --url https://facilitator.agentokratia.com/api/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "paymentPayload": {
    "x402Version": 2,
    "accepted": {
      "scheme": "escrow",
      "network": "eip155:8453",
      "amount": "10000",
      "payTo": "0x1234567890123456789012345678901234567890"
    },
    "payload": {
      "signature": "<string>"
    }
  },
  "paymentRequirements": {
    "scheme": "escrow",
    "network": "eip155:8453",
    "amount": "10000",
    "payTo": "0x1234567890123456789012345678901234567890"
  }
}
'
{
  "isValid": true,
  "payer": "0xAbCdEf1234567890AbCdEf1234567890AbCdEf12"
}

Authorizations

Authorization
string
header
required

API key (x402_xxx) from the dashboard

Body

application/json
paymentPayload
object
required
paymentRequirements
object
required
Example:
{
"scheme": "escrow",
"network": "eip155:8453",
"amount": "10000",
"payTo": "0x1234567890123456789012345678901234567890"
}

Response

Payment verification result

isValid
boolean

Whether the payment is valid

invalidReason
string

Reason for invalid verification (only if isValid=false)

payer
string

The payer's wallet address