Train Travel API
Show Menu
Search…
Ctrl+K
ESC
Example searches: “title”, “Mock Server”, “limit”, “search”, “coordinates”
Toggle dark mode
API Changelog
Download source
JSON OpenAPI specification
YAML OpenAPI specification
Submit Feedback
Topics
Introduction
Servers
Authentication
Getting started
Endpoints
Stations
Get a list of train stations
GET
Trips
Get available train trips
GET
Bookings
List existing bookings
GET
Create a booking
POST
Get a booking
GET
Delete a booking
DELETE
Payments
Pay for a Booking
POST
Webhooks
Bookings
New Booking
POST
Dismiss highlight
Show more
Servers
Base URL
Description
https://api.example.com
Production
https://mocks.example.com/rest
Mock Server