New Booking

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://bump.sh/bump-examples/doc/train-travel-api/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Train Travel API MCP server": {
  "url": "https://bump.sh/bump-examples/doc/train-travel-api/mcp"
}
Close
POST https://webhook.example.com

Subscribe to new bookings being created, to update integrations for your users. Related data is available via the links provided in the request.

application/json

Body Required

  • trip_id string(uuid)

    Identifier of the booked trip

  • passenger_name string

    Name of the passenger

  • has_bicycle boolean

    Indicates whether the passenger has a bicycle.

  • has_dog boolean

    Indicates whether the passenger has a dog.

Responses

  • 200

    Return a 200 status to indicate that the data was received successfully.

POST newBooking
Request example
{
  "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"
  }
}