{"openapi":"3.1.0","info":{"title":"Walkboard API","version":"1.0.0","description":"Street advertising as an API: a person holding an A1 QR-code sign at the place and time your customers are there. Flow: POST /plans with a product URL, poll GET /plans/{id} until status is \"ready\", POST /campaigns with chosen design and placements, send the human to checkout_url, then read GET /campaigns/{id}. No account needed: creating a campaign returns a token that authorises later calls. An MCP server with the same operations is at https://walkboard.media/mcp."},"servers":[{"url":"https://walkboard.media/api/v1"}],"components":{"securitySchemes":{"campaignToken":{"type":"http","scheme":"bearer","description":"The token returned by POST /campaigns"}}},"paths":{"/pricing":{"get":{"operationId":"getPricing","summary":"Prices, minimum budget, lead time, cities","responses":{"200":{"description":"Pricing"}}}},"/use-cases":{"get":{"operationId":"listUseCases","summary":"Example campaigns by industry","responses":{"200":{"description":"Use cases"}}}},"/plans":{"post":{"operationId":"createPlan","summary":"Generate poster designs and locations from a product URL","description":"Returns 202 with status \"generating\" (or a cached ready plan). Poll GET /plans/{id} every 2-3 seconds; generation takes 20-60 seconds.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Product or service URL"},"city":{"type":"string","description":"Target city, default Sydney"},"notes":{"type":"string","description":"Optional audience, offer or goals"}},"required":["url"]}}}},"responses":{"202":{"description":"Plan accepted"},"400":{"description":"Invalid URL"},"429":{"description":"Rate limited"}}}},"/plans/{id}":{"get":{"operationId":"getPlan","summary":"Fetch a plan","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"status is generating, ready or failed. When ready: product, designs[3], locations[8]."}}}},"/quote":{"post":{"operationId":"getQuote","summary":"Price placements and validate a budget","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"placements":{"type":"array","items":{"type":"object","properties":{"hours":{"type":"number"}},"required":[]}},"budget_aud":{"type":"number"}},"required":["placements"]}}}},"responses":{"200":{"description":"Quote"}}}},"/posters/preview":{"post":{"operationId":"previewPoster","summary":"Render a poster design as SVG","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"design":{"type":"object","properties":{"layout":{"type":"string","enum":["bold","question","offer"]},"headline":{"type":"string","description":""},"subline":{"type":"string","description":""},"cta":{"type":"string","description":""},"brand":{"type":"string","description":""},"palette":{"type":"object","properties":{"bg":{"type":"string","description":"#RRGGBB"},"fg":{"type":"string","description":"#RRGGBB"},"accent":{"type":"string","description":"#RRGGBB"}},"required":[]}},"required":[]},"url":{"type":"string","description":"URL to encode in the sample QR"}},"required":[]}}}},"responses":{"200":{"description":"SVG","content":{"image/svg+xml":{}}}}}},"/uploads":{"post":{"operationId":"uploadArtwork","summary":"Upload finished artwork (PDF, PNG, JPEG, SVG; max 5 MB) as the raw request body","responses":{"201":{"description":"{ upload_id }"}}}},"/campaigns":{"post":{"operationId":"createCampaign","summary":"Book a campaign","description":"Returns id, token and checkout_url. A human opens checkout_url to authorise the card; it is charged only once a walker is confirmed. Budget above the quote minimum goes to walker performance bonuses.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan_id":{"type":"string","description":"Plan to book from"},"url":{"type":"string","description":"QR destination; defaults to the plan URL"},"email":{"type":"string","description":"Advertiser contact email"},"design":{"description":"{index} for a plan design (optionally override headline/subline/cta), or your own {headline, subline, cta, layout, palette}, or {image_url} / {upload_id} for finished artwork","type":"object"},"placements":{"type":"array","items":{"type":"object","properties":{"location_id":{"type":"string","description":"Location id from the plan, e.g. loc_1. Or give location_name and city."},"location_name":{"type":"string","description":"Specific place to stand"},"address":{"type":"string","description":"Street address"},"city":{"type":"string","description":"City"},"lat":{"type":"number"},"lng":{"type":"number"},"date":{"type":"string","description":"YYYY-MM-DD, at least 4 days ahead"},"start_time":{"type":"string","description":"HH:MM 24h, local to the city"},"hours":{"type":"number","description":"2 to 8, half-hour steps. Default 2."}},"required":["date","start_time"]}},"budget_aud":{"type":"number"},"notes":{"type":"string","description":"For the organiser"}},"required":["email","design","placements"]}}}},"responses":{"201":{"description":"Campaign created"},"400":{"description":"Validation error, with details"}}}},"/campaigns/{id}":{"get":{"operationId":"getCampaign","summary":"Status, placements, scans, sign-ups, timeline","security":[{"campaignToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Campaign"},"404":{"description":"Unknown id or wrong token"}}}},"/campaigns/{id}/cancel":{"post":{"operationId":"cancelCampaign","summary":"Cancel and release the card authorisation","security":[{"campaignToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cancelled"}}}},"/campaigns/{id}/conversions":{"post":{"operationId":"recordConversion","summary":"Report a sign-up or sale from a scan","description":"Every scan redirects to your URL with a wb_click parameter. When that visitor signs up, send the click id here from your server. Sign-ups earn the walker a larger bonus than scans, so reporting them rewards walkers for real customers.","security":[{"campaignToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"click_id":{"type":"string","description":"Value of wb_click"},"event":{"type":"string","description":"signup, purchase, ..."},"value_aud":{"type":"number"}},"required":["click_id"]}}}},"responses":{"201":{"description":"Recorded"}}}},"/placements/{id}/poster.svg":{"get":{"operationId":"getPoster","summary":"Print-ready poster for a placement, with its tracked QR code","security":[{"campaignToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"SVG","content":{"image/svg+xml":{}}}}}},"/placements/{id}/qr.svg":{"get":{"operationId":"getQr","summary":"The tracked QR code for a placement, for custom artwork","security":[{"campaignToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"SVG","content":{"image/svg+xml":{}}}}}}}}