Skip to main content
POST
/
api
/
x402
/
receive
Verify and accept an x402 payment
curl --request POST \
  --url https://mag3nt.com/api/x402/receive \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "payment_header": {},
  "resource_url": "<string>"
}
'
{
  "verified": true,
  "resource": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mag3nt.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Session token from POST /api/auth/verify

Body

application/json
payment_header
object
resource_url
string

Response

200 - application/json

Payment verified

verified
boolean
resource
string