Find and filter train stations across Europe, including their location and local timezone.
Inspironix APIs///
- Create a booking
List existing bookings
Get a booking
Delete a booking
New Booking
Create a booking
Train Travel API (1.0.0)
API for finding and booking train trips across Europe. This API was created by Bump.sh for the entire OpenAPI community, for educational and demonstrative purposes.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi
Production
https://api.example.com
- Mock serverhttps://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/bookings
- Productionhttps://api.example.com/bookings
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/bookings \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
- application/json
- application/xml
{ "data": [ { … }, { … } ], "links": { "self": "https://api.example.com/bookings", "next": "https://api.example.com/bookings?page=2" } }
- Mock serverhttps://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/bookings
- Productionhttps://api.example.com/bookings
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json
- application/xml
curl -i -X POST \
https://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/bookings \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"trip_id": "4f4e4e1-c824-4d63-b37a-d8d698862f1d",
"passenger_name": "John Doe",
"has_bicycle": true,
"has_dog": true
}'Response
- application/json
- application/xml
{ "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "passenger_name": "John Doe", "has_bicycle": true, "has_dog": true, "links": { "self": "https://api.example.com/bookings/efdbb9d1-02c2-4bc3-afb7-6788d8782b1e" } }
- Mock serverhttps://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/bookings/{bookingId}
- Productionhttps://api.example.com/bookings/{bookingId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
- application/json
- application/xml
{ "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "passenger_name": "John Doe", "has_bicycle": true, "has_dog": true, "links": { "self": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" } }
- Mock serverhttps://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/bookings/{bookingId}
- Productionhttps://api.example.com/bookings/{bookingId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Request
Subscribe to new bookings being created, to update integrations for your users. Related data is available via the links provided in the request.
Security
OAuth2(Required scopes:
read
)- Mock serverhttps://phronesis-inspironix.redocly.app/_mock/apis/train-travel-api/openapi/newBooking
- Productionhttps://api.example.com/newBooking
application/json
{ "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "passenger_name": "John Doe", "has_bicycle": true, "has_dog": true, "links": { "self": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" } }