{"openapi":"3.1.0","info":{"title":"OpenClawPro Agent API","version":"1.0.0","summary":"Read the offer catalog and create a checkout link for a human to complete.","description":"Public, unauthenticated, read-only catalog for AI agents, plus checkout-link creation. Payment is always completed by a human on Stripe-hosted pages: this API never charges a card and never receives card data. Amounts are USD (the amount actually charged); Stripe Adaptive Pricing presents the buyer's local currency at checkout.","contact":{"name":"OpenClawPro","url":"https://www.openclawpro.ai/en/contact"},"license":{"name":"Proprietary service; terms apply","url":"https://www.openclawpro.ai/en/terms"}},"servers":[{"url":"https://www.openclawpro.ai"}],"paths":{"/agent/v1/catalog":{"get":{"operationId":"listOffers","summary":"List every purchasable offer","description":"Returns the merchant identity, the purchase contract and every offer with its canonical purchase slug. Each slug is validated against the checkout resolver at build time.","responses":{"200":{"description":"The catalog","content":{"application/json":{"schema":{"type":"object","properties":{"merchant":{"type":"object"},"currency":{"type":"object"},"purchase":{"type":"object"},"products":{"type":"array","items":{"$ref":"#/components/schemas/Offer"}}}}}}}}}},"/agent/v1/plans/{slug}":{"get":{"operationId":"getOffer","summary":"Get one offer and the exact checkout body for it","parameters":[{"name":"slug","in":"path","required":true,"description":"Canonical purchase slug from the catalog.","schema":{"type":"string","examples":["managed-essential","managed-pro","managed-business"]}}],"responses":{"200":{"description":"The offer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offer"}}}},"404":{"description":"Unknown slug (RFC 9457 problem document)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/checkout/stripe":{"post":{"operationId":"createCheckoutLink","summary":"Create a Stripe Checkout link for a cart","description":"Returns a Stripe-hosted URL. Hand that URL to the human owner: they review the order and pay on Stripe. Nothing is charged by calling this endpoint. Max 10 line items.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","required":["slug"],"properties":{"slug":{"type":"string","description":"Canonical slug from the catalog."},"quantity":{"type":"integer","minimum":1,"default":1}}}},"locale":{"type":"string","enum":["en","fr","de","es","it","ja","pt","ru","zh"],"default":"en"}}},"examples":{"managedPro":{"summary":"One Managed Pro subscription","value":{"items":[{"slug":"managed-pro","quantity":1}],"locale":"en"}}}}}},"responses":{"200":{"description":"Checkout session created","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}}}}}},"400":{"description":"Empty cart, unknown slug, or malformed body"}}}}},"components":{"schemas":{"Offer":{"type":"object","required":["slug","name","category","billing","price_usd","url"],"properties":{"slug":{"type":"string","description":"Pass this to createCheckoutLink."},"name":{"type":"string"},"category":{"type":"string","enum":["managed","self-hosted","maintenance","skill","agent-install","agent-hosted","trading-infra","migration","saas"]},"billing":{"type":"string","enum":["one-time","monthly"]},"price_usd":{"type":"number","description":"Amount charged, in USD."},"annual_usd":{"type":"number","description":"Yearly billing where offered."},"url":{"type":"string","format":"uri","description":"Human-readable page."}}},"Problem":{"type":"object","description":"RFC 9457 problem document.","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}}}}}}