Skip to main content
POST
/api/v1/x402/top-up

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-402-Payment
string

Signed x402 payment payload used to top up the wallet balance on a supported rail such as Base or Solana.

Example:

"eyJ4NDAyVmVyc2lvbiI6MiwicGF5bG9hZCI6Ii4uLiJ9"

Body

application/json

No JSON body required. Payment is sent via the X-402-Payment header. Send an empty POST to discover payment requirements.

The body is of type object.

Response

Top-up completed successfully.

success
enum<boolean>
required
Available options:
true
data
object
required