# Train Travel API

> This is version `1.0.0` of this API documentation. Last update on Jun 12, 2025.
> API for finding and booking train trips across Europe.
> 
> This API was created by [Bump.sh](https://bump.sh/) for the entire OpenAPI
> community, for educational and demonstrative purposes.

OpenAPI file: https://demo.bump.sh/doc/trainbook.yaml

## Servers

- Mock Server: https://try.microcks.io/rest/Train+Travel+API/1.0.0 (Mock Server)

- Production: https://api.example.com (Production)


## Topics

### [Getting started](https://demo.bump.sh/doc/trainbook/topic/topic-getting-started.md)

### [Authentication](https://demo.bump.sh/doc/trainbook/authentication.md)


## Endpoints

### [Stations](https://demo.bump.sh/doc/trainbook/group/endpoint-stations.md)

- [Get a list of train stations](https://demo.bump.sh/doc/trainbook/operation/operation-get-stations.md)


### [Trips](https://demo.bump.sh/doc/trainbook/group/endpoint-trips.md)

- [Get available train trips](https://demo.bump.sh/doc/trainbook/operation/operation-get-trips.md)


### [Bookings](https://demo.bump.sh/doc/trainbook/group/endpoint-bookings.md)

- [List existing bookings](https://demo.bump.sh/doc/trainbook/operation/operation-get-bookings.md)

- [Create a booking](https://demo.bump.sh/doc/trainbook/operation/operation-create-booking.md)

- [Get a booking](https://demo.bump.sh/doc/trainbook/operation/operation-get-booking.md)

- [Delete a booking](https://demo.bump.sh/doc/trainbook/operation/operation-delete-booking.md)


### [Payments](https://demo.bump.sh/doc/trainbook/group/endpoint-payments.md)

- [Pay for a Booking](https://demo.bump.sh/doc/trainbook/operation/operation-create-booking-payment.md)



## Webhooks

### [Bookings](https://demo.bump.sh/doc/trainbook/group/webhook-bookings.md)

- [New Booking](https://demo.bump.sh/doc/trainbook/operation/operation-new-booking.md)




[Powered by Bump.sh](https://bump.sh)
