Booking from your own website
Your own website or app can take bookings straight into Tellfox. They go through the same engine as the Tellfox booking page, so a time can never be booked twice, and the customer gets the usual confirmation, reminders and manage link. Make a key with customers:write and bookings:write. Your server calls the API; the page in the browser calls your server (never the API with the key).
-
The services:
GET /v1/serviceslists them with their price, length and branches. Table services (restaurants) are booked on the Tellfox booking page instead. -
Free times on a day:
GET /v1/availability?service_id=svc_…&date=2026-10-23answers each free start with who can do it and the price then. Addstaff_idfor one person,branch_idfor one branch,nightsfor a stay. -
The customer:
POST /v1/customerswith their name and email or phone answers the customer (the one the business has already, or a new one). -
Book:
Terminal window curl https://api.tellfox.app/v1/bookings -X POST \-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" -H "Idempotency-Key: web-order-5521" \-d '{"service_id": "svc_…", "start": "2026-10-23T07:00:00Z", "customer_id": "cus_…"}'201is the booking. A time someone took a moment ago answers409, and the message names the next free times: show them again. -
Move or cancel:
POST /v1/bookings/{id}/movewith a newstart, orPOST /v1/bookings/{id}/cancel. The customer is told.
Classes work the same way: GET /v1/sessions lists the sessions with the places left, and POST /v1/sessions/{id}/places with a customer_id gives one.