Appearance
REST API Scale
The REST API (v1) lets your own systems read your tours and live availability, price a booking and create, read or cancel bookings. It comes with the Public API plugin on the Scale plan. For changes as they happen, pair it with webhooks.
Authentication
Create an API key in your console under Settings › Developers and choose its scopes. Send it as a bearer token:
http
Authorization: Bearer YOUR_API_KEY| Scope | What it allows |
|---|---|
catalog:read | Read tours, a single tour, live availability, and price a booking (quotes) |
bookings:read | List bookings and read one by reference |
bookings:write | Create bookings and cancel them |
Endpoints
All paths are under https://app.tourtify.com/api/v1.
| Method | Path | Scope | What it does |
|---|---|---|---|
GET | /tours | catalog:read | Your published tours |
GET | /tours/{id} | catalog:read | One tour |
GET | /availability | catalog:read | Live departures and seats |
POST | /quotes | catalog:read | Price a booking before you create it |
GET | /bookings | bookings:read | Bookings, newest first; filter with updated_since and status |
GET | /bookings/{reference} | bookings:read | One booking |
POST | /bookings | bookings:write | Create a booking |
POST | /bookings/{reference}/cancel | bookings:write | Cancel a booking, with a reason |
The full, machine-readable description is the OpenAPI document at /api/v1/openapi.json: import it into Postman, Insomnia or a code generator.
Good to know
- Pagination: lists return 50 items a page by default and up to 100.
- Always send an
Idempotency-KeywithPOST /bookings(strongly advised): use a new unique value (a UUID) for each booking you create, and the same value when you retry it. A repeat with the same key and body within 7 days returns the first result (withIdempotent-Replayed: true) instead of creating a second booking; the same key with a different body is refused (422). Without a key, a retry after a timeout or a dropped connection creates a second booking, and the answer carries aWarning: 299 - "No Idempotency-Key…"header so it shows up in your logs. - Keeping another system in sync: poll
/bookings?updated_since=…for changes, or use webhooks to be told the moment something happens. - Errors use the
application/problem+jsonformat, with a clear message for each problem. Match on the stablecodemember (for examplebooking.invalid_transition):typeis a link to the error in these docs, orabout:blankfor a business using White label for its team. - Only what's live: unpublished tours are never returned, and no new bookings are taken while the business is paused.
Related
- Public API plugin: switching it on, keys and scopes
- Webhooks and verifying signatures
- Data model