API Reference v2.0

Routri API Documentation

Complete API reference for the Routri travel booking platform. Build custom integrations and extend your OTA capabilities.

RESTful API

Standard HTTP methods with JSON responses

Secure Auth

Supabase JWT tokens with RLS policies

Real-time

Live updates via Supabase subscriptions

TypeScript SDK

Full TypeScript support with types

GET
/api/tours
Tours

List tours with filtering, pagination, and search

GET
/api/tours/{slug}
Tours

Get detailed tour information by slug

POST
/api/tours/{slug}/book
Tours

Create a booking for a specific tour

GET
/api/bookings
Bookings

Retrieve user bookings with filters

GET
/api/bookings/{id}
Bookings

Get specific booking details

PUT
/api/bookings/{id}
Bookings

Update booking status or details

POST
/api/paypal/create-order
Payments

Initialize PayPal payment order

POST
/api/paypal/capture-order
Payments

Capture and complete PayPal payment

GET
/api/destinations
Content

List all available destinations

GET
/api/categories
Content

Get tour categories with translations

POST
/api/reviews
Reviews

Submit a tour review

GET
/api/reviews/{tourId}
Reviews

Get reviews for a specific tour

POST
/api/auth/register
Authentication

Register new user account

POST
/api/auth/login
Authentication

Authenticate user credentials

GET
/api/search
Search

Advanced tour search with filters

POST
/api/translate
Localization

Translate content to supported languages