BagsBags Docs

Agentic proxy (PATCH)

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.

PATCH
/api/agent/link/{paymentLinkId}

Path Parameters

paymentLinkId*string

Payment link id. Prefer the canonical pl-{uuid} form (e.g. pl-a1b2c3d4-e5f6-7890-abcd-ef1234567890); bare UUIDs are accepted.

Header Parameters

PAYMENT-SIGNATURE?string

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

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