BagsBags Docs

Agentic proxy alias (GET)

x402 agentic payment proxy. Returns 402 with USDC payment requirements when unpaid; proxies to the merchant targetUrl after settlement. No buyer details collected — flat per-call pricing from the payment link.

GET
/api/agent/{id}

Path Parameters

id*string

Payment link UUID (legacy alias path).

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Header Parameters

PAYMENT-SIGNATURE?string

x402 payment payload (base64). Required to settle a 402 challenge. v1 clients may send x-payment instead.

curl -X GET "https://www.getbags.app/api/agent/a1b2c3d4-e5f6-7890-abcd-ef1234567890"
{
  "ok": true,
  "property1": null,
  "property2": null
}
Empty
Empty