🚀 Enuygun API Testing Console

Test all Enuygun MCP endpoints with an interactive interface

Account endpoints allow you to:

• Retrieve your user profile information

• View your travel history

• Access your wallet

GET /api/account/profile

Get your user profile information

Response:

GET /api/account/travels

Get your travel history

Response:

GET /api/account/wallet

Get your wallet information

Response:

Flight endpoints allow you to:

• Search for available flights

• View your flight reservations

• Check-in for flights

• Cancel flights

POST /api/flights/search

Response:

GET /api/flights/reservations

Get your flight reservations

Response:

Hotel endpoints allow you to:

• Search for available hotels

• View hotel details and pricing

POST /api/hotels/search

Response:

Bus endpoints allow you to:

• Search for available bus routes

• View your bus reservations

• Cancel bus tickets

POST /api/buses/search

Response:

GET /api/buses/reservations

Get your bus reservations

Response:

Car rental endpoints allow you to:

• Search for available rental cars

• View your car reservations

• Cancel car rentals

POST /api/cars/search

Response:

GET /api/cars/reservations

Get your car reservations

Response:

📚 API Documentation

Getting Started:

1. Use your API key in the Authorization header: Bearer your-api-key

2. All API endpoints are prefixed with /api

3. Responses are in JSON format

Available Endpoints

👤 Account

GET /api/account/profile - Get user profile

GET /api/account/travels - Get travel history

GET /api/account/wallet - Get wallet information

✈️ Flights

POST /api/flights/search - Search flights

POST /api/flights/allocate - Create booking link

GET /api/flights/reservations - Get reservations

POST /api/flights/checkin - Check-in online

POST /api/flights/cancel - Cancel flight

🏨 Hotels

POST /api/hotels/search - Search hotels

🚌 Buses

POST /api/buses/search - Search buses

GET /api/buses/reservations - Get reservations

POST /api/buses/cancel - Cancel bus ticket

🚗 Car Rental

POST /api/cars/search - Search rental cars

POST /api/cars/allocate - Create booking link

GET /api/cars/reservations - Get reservations

POST /api/cars/cancel - Cancel rental

Example cURL Request

curl -X GET "http://localhost:3000/api/account/profile" \ -H "Authorization: Bearer your-api-key"

Example JavaScript Request

const response = await fetch('http://localhost:3000/api/account/profile', { method: 'GET', headers: { 'Authorization': 'Bearer your-api-key', 'Content-Type': 'application/json' } }); const data = await response.json(); console.log(data);