Wink Demos · x402
Agent-driven HTTP 402 settlement, with delegated agent authority bound to a Wink identity. Restaurant booking is the first vertical (/x402/bookings); flights, hotels, and others slot in alongside.
How this demo works
The merchant gates high-end restaurant reservations behind 402 Payment Required. An agent connected to Wink MCP authenticates the human once, gets them to authorize a spending cap, then settles the deposit and any in-session modifications without further human prompting until the cap is exceeded or the 1-hour window closes.
The full playbook is at agents.md. See the "Try it" section below for setup.
Endpoints
| Method | Path | Purpose |
|---|---|---|
| GET | /x402/bookings/restaurants | list catalog |
| POST | /x402/bookings/reservations | create booking · 402 if deposit owed |
| GET | /x402/bookings/reservations/:id | read (owner only) |
| PATCH | /x402/bookings/reservations/:id | modify (owner only) · 402 if delta owed |
| POST | /x402/bookings/reservations/:id/confirm | submit settlement proof |
All reservation endpoints require three headers: X-Wink-Tag, X-Wink-Agent-Id, X-Wink-Auth-Request.
Catalog
| Restaurant | City | Deposit |
|---|---|---|
| Acme Bistro | San Francisco | $50/guest |
| Blue Fin Omakase | New York | $125/guest |
| Corner Cafe | San Francisco | none |
Try it with your own agent
This demo requires an agent client with raw HTTP access to call the merchant (POST/PATCH with custom auth headers). Today that means Claude Code, Cursor, Codex, or any other terminal-based agent with bash/curl. Plain claude.ai web and Claude mobile can't drive it directly — they have no general HTTP tool — and would need a merchant-side MCP wrapper that doesn't exist yet.
With Wink MCP already connected, save the playbook as AGENTS.md in any folder:
curl https://winkdemos.com/agents.md > AGENTS.md
claude # or: cursor, codex, etc.Then ask the agent to book a table — for example:
Book me a table at Acme Bistro tomorrow at 7 for 4.Auto-discovery picks up the playbook; session state persists in ./session.json in the same folder, so the 1-hour warm window carries across conversations.
Just try the catalog
curl https://winkdemos.com/x402/bookings/restaurantsCreating reservations and settling charges requires the auth headers — the easiest way is to drive it with an agent following the playbook above.