Skip to main content
POST
/
v1
/
actions
/
pay
Execute x402 Micropayment
curl --request POST \
  --url https://api.aegisintent.xyz/v1/actions/pay \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --header 'X-Aegis-Email: <x-aegis-email>' \
  --header 'X-Aegis-Nonce: <x-aegis-nonce>' \
  --data '
{
  "serviceUrl": "https://api.circle.com/v2/x402/discovery/resources",
  "maxAmount": "1.50",
  "method": "GET",
  "data": {},
  "headers": [
    "Accept: application/json"
  ]
}
'
{
  "success": true,
  "result": {
    "status": "completed",
    "paymentProtocol": "x402",
    "chargedUsdc": "1.00"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.aegisintent.xyz/llms.txt

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

Headers

X-Aegis-Email
string
required

Agent email address

Idempotency-Key
string
required

Unique UUID for financial idempotency

X-Aegis-Nonce
integer
required

Current agent nonce

Body

application/json
serviceUrl
string
required
Example:

"https://api.circle.com/v2/x402/discovery/resources"

maxAmount
string
required
Example:

"1.50"

method
string
Example:

"GET"

data
object
headers
string[]

Response

200 - application/json

Payment successful or free service accessed

success
boolean
Example:

true

result
object