Snappy Agents

Let any AI agent buy from the Snappy Marketplace. Snappy Agents is the connector platform behind agents.snappy.com: an OAuth 2.1 server, a REST API with an OpenAPI 3.1 contract, an MCP endpoint, a hosted Stripe checkout and an operations portal. Meta Muse is the first agent platform it is registered with; Claude, ChatGPT or a partner agent connect the same way. It also speaks the open agentic commerce protocols, so ChatGPT Instant Checkout (ACP), Google AI Mode and Gemini, Shopify's agents and other UCP platforms can sell the marketplace without a per-user connection. See Agentic commerce.

What a user can do through their agent

How it fits together

 Agent platform (Muse, Claude, ...)        agents.snappy.com (Cloud Run, this repo)              Snappy / providers
 ─────────────────────────────────         ─────────────────────────────────────────            ─────────────────────
 OAuth 2.1 + PKCE  ───────────────▶  /oauth/*  authorize · token · register · revoke
 REST  /v1/*  or  MCP  /mcp  ─────▶  Catalog ─▶ CatalogService ────────────────────────────▶  Snappy Public API v3
                                     Quote  ─▶ availability + fee ─▶ 15 min price lock       (products, variants,
                                     Checkout (cart) ─▶ Stripe Checkout Session ─▶ paymentUrl  availability, orders)
 user pays on Stripe  ────────────▶  /webhooks/stripe ─▶ one order per item (idempotent) ───▶  POST /v3/orders
 SSE / poll / callback ◀──────────  order.confirmed ─▶ email (SendGrid) · SMS (Twilio)
                                     /webhooks/snappy ◀────────────────────────────────────  order status / delivery
 ChatGPT · Google · Shop (platform key) ▶  /acp · /ucp/v1 (ACP, UCP checkout sessions) ─▶ token charge ─▶ orders ──▶  POST /v3/orders
 /feeds/*  ◀────────────────────────  product feeds for ChatGPT, Merchant Center, Shopify Catalog
 Operators ───────────────────────▶  /admin  (Identity-Aware Proxy, @snappy.com)  users · orders · support · protocols · integrations · settings · audit
flowchart LR
  agent["Agent platform: Muse, Claude, ChatGPT"] -->|"OAuth 2.1 + PKCE, REST /v1 or MCP /mcp"| api["agents.snappy.com on Cloud Run"]
  platforms["ChatGPT Instant Checkout, Google AI Mode, Shopify agents"] -->|"ACP and UCP checkout sessions with a platform key, product feeds"| api
  shopper["Shopper"] -->|"sign-in, consent, pays on the Stripe page"| api
  ops["Operators"] -->|"/admin behind Identity-Aware Proxy"| api
  api --> snappy["Snappy Public API v3: catalog, availability, orders"]
  api --> stripe["Stripe Checkout"]
  api --> msg["SendGrid email, Twilio SMS"]
  api --> ai["Anthropic, price negotiation"]
  stripe -->|"signed webhooks"| api
  snappy -->|"order status webhooks"| api
  api --- infra[("Cloud SQL, Cloud Tasks, Secret Manager")]

Everything runs as one Cloud Run service per environment (sandbox, prod) in its own GCP project, with Cloud SQL (Postgres, private IP only) inside a VPC, Cloud Tasks for durable background work and Secret Manager for credentials. Provider credentials (Snappy, Stripe, SendGrid, Twilio) are entered once in the admin portal's Integrations page and stored in Secret Manager; nothing is baked into a deploy. See Architecture.

Start here

If you are… Read
An agent developer connecting to Snappy Quickstart → OAuth → Checkout flow → API reference
Building on MCP MCP endpoint
Integrating ChatGPT, Google or Shopify commerce (ACP, UCP, feeds) Agentic commerce → Error codes
Reviewing the connector (Meta) Tool classification, Testing & sandbox, Security & data
Operating the platform at Snappy Operations runbook, Admin portal

Design principles

  1. The agent never touches money or cards. Payment is a hosted Stripe link the shopper completes, or, under ACP and UCP, a scoped token (Stripe Shared Payment Token, Google Pay) that only Snappy's payment provider can redeem for that amount; the platform only learns the outcome.
  2. Every write is idempotent. Quotes lock prices, each cart item keys its Snappy order by checkout id + item index, webhooks dedupe by provider event id, tasks dedupe by name.
  3. Read vs act is enforced at the token. orders:write is a separate scope; users can choose read-only on the consent screen (a Meta Muse requirement).
  4. Errors are a contract. Stable code values and machine-usable extra fields (allowedCountries, suggestions, supportUrl) so the agent can recover gracefully.
  5. Nothing silent. Every transition is an event (timeline, SSE, admin), every message is recorded, every admin action is audited.
Snappy Agents · agents.snappy.com · support@snappy.com