# Tery > Online booking for 1:1 appointments, workshops and webinars (Switzerland, CHF). Operated by MF1 GmbH. Each customer (tenant) has a short slug. Assistants can read public offerings, free slots and upcoming events, and hand the user a booking via the REST API. - MCP server: https://tery.ch/mcp (tools: list_offerings, get_free_slots, list_events, get_integration_guide) - Human docs: https://tery.ch/api-doku - Sign up: https://tery.ch/registrieren # Tery Headless API (v1) Base: https://tery.ch/api/public/v1/ CORS open (`*`), JSON only. Build native UI in the host site's design; no iframe needed. ## Read - GET /offerings → { offerings: [{ slug, title, description, duration, price, location }] } - GET /slots?offering= → { offering, slots: [{ start (epoch ms), iso }] } - GET /events → { events: [{ id, kind, title, date, time, place, price, full, ... }] } - GET /events.rss → RSS 2.0 feed of upcoming events (feed readers, newsletter tools, Zapier/Make) ## Write (bot-protected) 1. GET /challenge?purpose=call|registration → { challenge } 2. Find integer n ≥ 0 with sha256(`${challenge}:${n}`) hex starting with "000" (Web Crypto, a few ms). Submit ≥ 2 s after fetching; each challenge works once. 3. Send `proof: { challenge, solution: n }`, `website: ""` (honeypot, keep empty and hidden), `consent: true`. - POST /book { offering, start, name, email, phone?, note?, consent, website, proof } → 201 { ok, status, checkoutUrl } - POST /events//register { name, email, phone?, note?, consent, website, proof } → 201 { ok, status, checkoutUrl } If checkoutUrl is set, redirect there for payment. Errors: { error } with 400/404/422. ## React recipe ```ts const API = "https://tery.ch/api/public/v1/"; async function solve(challenge: string) { for (let n = 0; ; n++) { const h = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(`${challenge}:${n}`)); const hex = [...new Uint8Array(h)].map((b) => b.toString(16).padStart(2, "0")).join(""); if (hex.startsWith("000")) return n; } } export async function book(offering: string, start: number, person: { name: string; email: string; phone?: string; note?: string }) { const { challenge } = await (await fetch(`${API}/challenge?purpose=call`)).json(); const solution = await solve(challenge); const r = await fetch(`${API}/book`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ offering, start, ...person, consent: true, website: "", proof: { challenge, solution } }) }); const data = await r.json(); if (!r.ok) throw new Error(data.error); return data; } ``` Fetch the challenge when the form opens (so 2 s have passed at submit). Show times in Europe/Zurich, prices in CHF, a required consent checkbox linking the host's privacy policy.