{
  "info": {
    "_postman_id": "xeni-api-collection-v1",
    "name": "Xeni API Collection",
    "description": "Official Postman collection for the Xeni Travel API. Includes endpoints for authentication, hotels, flights, car rentals, activities, and bookings.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://sandbox.api.xeni.com",
      "type": "string"
    },
    {
      "key": "access_token",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Authentication",
      "item": [
        {
          "name": "Get Access Token",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Content-Type", "value": "application/json" }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/token",
              "host": ["{{base_url}}"],
              "path": ["v1", "auth", "token"]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_key\": \"YOUR_API_KEY\",\n  \"api_secret\": \"YOUR_API_SECRET\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Hotels",
      "item": [
        {
          "name": "Search Hotels",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Authorization", "value": "Bearer {{access_token}}" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "url": {
              "raw": "{{base_url}}/v1/hotels/search",
              "host": ["{{base_url}}"],
              "path": ["v1", "hotels", "search"]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"destination\": \"New York\",\n  \"check_in\": \"2026-09-01\",\n  \"check_out\": \"2026-09-05\",\n  \"guests\": 2,\n  \"rooms\": 1\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Flights",
      "item": [
        {
          "name": "Search Flights",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Authorization", "value": "Bearer {{access_token}}" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "url": {
              "raw": "{{base_url}}/v1/flights/search",
              "host": ["{{base_url}}"],
              "path": ["v1", "flights", "search"]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"origin\": \"JFK\",\n  \"destination\": \"LAX\",\n  \"departure_date\": \"2026-09-01\",\n  \"passengers\": 1,\n  \"cabin_class\": \"economy\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Car Rentals",
      "item": [
        {
          "name": "Search Cars",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Authorization", "value": "Bearer {{access_token}}" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "url": {
              "raw": "{{base_url}}/v1/cars/search",
              "host": ["{{base_url}}"],
              "path": ["v1", "cars", "search"]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"pickup_location\": \"LAX\",\n  \"pickup_date\": \"2026-09-01\",\n  \"dropoff_date\": \"2026-09-05\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Activities",
      "item": [
        {
          "name": "Search Activities",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Authorization", "value": "Bearer {{access_token}}" },
              { "key": "Content-Type", "value": "application/json" }
            ],
            "url": {
              "raw": "{{base_url}}/v1/activities/search",
              "host": ["{{base_url}}"],
              "path": ["v1", "activities", "search"]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"destination\": \"Paris\",\n  \"date\": \"2026-09-01\",\n  \"participants\": 2\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Bookings",
      "item": [
        {
          "name": "Get Booking Details",
          "request": {
            "method": "GET",
            "header": [
              { "key": "Authorization", "value": "Bearer {{access_token}}" }
            ],
            "url": {
              "raw": "{{base_url}}/v1/bookings/:booking_id",
              "host": ["{{base_url}}"],
              "path": ["v1", "bookings", ":booking_id"],
              "variable": [
                { "key": "booking_id", "value": "BOOKING_ID_HERE" }
              ]
            }
          }
        }
      ]
    }
  ]
}
