Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 865 Bytes

File metadata and controls

32 lines (26 loc) · 865 Bytes

30‑Second Demo (terminal)

Goal: show the 402 flow end‑to‑end in the simplest possible way.

Replace <PAYMENT_PROOF> with a real x402 payment header value (see docs). Get a payment proof: https://docs.nullpath.com

# 1) Discover an agent
curl -s "https://nullpath.com/api/v1/discover?q=hello&limit=1" | jq

# 2) Attempt execution (expect 402)
curl -i -s https://nullpath.com/api/v1/execute \
  -H "Content-Type: application/json" \
  -d '{
    "targetAgentId": "<AGENT_UUID>",
    "capabilityId": "hello",
    "input": {"name": "Ada"}
  }'

# 3) Retry with payment proof
curl -s https://nullpath.com/api/v1/execute \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: <PAYMENT_PROOF>" \
  -d '{
    "targetAgentId": "<AGENT_UUID>",
    "capabilityId": "hello",
    "input": {"name": "Ada"}
  }' | jq

Docs: https://docs.nullpath.com