Skip to main content
GET
/
x402
/
payment-requirements
/
{agentSlug}
Quote Somnia payment requirements
curl --request GET \
  --url https://x402.20.208.46.195.nip.io/x402/payment-requirements/{agentSlug}
{
  "ok": true,
  "x402Version": "<string>",
  "arcpayScheme": "<string>",
  "protocol": "x402",
  "network": "<string>",
  "caip2Network": "eip155:50312",
  "chainId": 123,
  "currency": "<string>",
  "resource": "<string>",
  "agent": {
    "slug": "<string>",
    "agentId": "<string>",
    "owner": "<string>",
    "name": "<string>",
    "endpoint": "<string>",
    "capabilities": "<string>"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:50312",
      "chainId": 50312,
      "asset": "native",
      "currency": "STT",
      "maxAmountRequired": "<string>",
      "amountWei": "<string>",
      "amountStt": "<string>",
      "payTo": "<string>",
      "recipient": "<string>",
      "description": "<string>",
      "resource": "<string>",
      "mimeType": "<string>",
      "contract": "<string>",
      "action": "<string>",
      "calldata": "<string>",
      "args": {
        "agentId": "<string>",
        "requestUri": "<string>"
      },
      "unlockUrl": "<string>",
      "verificationUrl": "<string>",
      "paymentProof": {
        "type": "somnia-order-id",
        "header": "X-Payment",
        "acceptedFormats": [
          "<string>"
        ]
      }
    }
  ]
}

Path Parameters

agentSlug
string
required
Example:

"research-agent"

Response

Payment requirements for the agent.

ok
boolean
x402Version
string
arcpayScheme
string
protocol
string
Example:

"x402"

network
string
caip2Network
string
Example:

"eip155:50312"

chainId
integer
currency
string
resource
string
agent
object
accepts
object[]