Charter Boats API
Bookings

List Bookings

Get bookings for the authenticated user

GET/bookings

Retrieve all bookings for the currently authenticated user (as a guest).

This endpoint requires user authentication via Supabase Auth, not API key authentication.

Query Parameters

ParameterTypeDescription
statusstringFilter by status: pending, confirmed, cancelled, completed

Request

curl https://charter.boats/api/bookings \
  -H "Authorization: Bearer <supabase-auth-token>"
 
# Filter by status
curl "https://charter.boats/api/bookings?status=confirmed" \
  -H "Authorization: Bearer <supabase-auth-token>"

Response

[
  {
    "id": "booking-uuid-1",
    "boat_id": "boat-uuid",
    "user_id": "user-uuid",
    "status": "confirmed",
    "start_date": "2026-02-15",
    "end_date": "2026-02-15",
    "start_time": "09:00",
    "end_time": "17:00",
    "guests": 6,
    "total_price": 2800,
    "message": "Looking forward to the trip!",
    "created_at": "2026-01-27T10:30:00Z",
    "boat": {
      "id": "boat-uuid",
      "title": "Luxury Catamaran",
      "boat_type": "catamaran",
      "location_city": "Miami",
      "location_state": "Florida",
      "images": [
        {
          "url": "https://...",
          "is_primary": true
        }
      ]
    }
  }
]

Response Fields

FieldTypeDescription
idstringBooking ID (UUID)
boat_idstringID of the booked boat
user_idstringID of the guest
statusstringpending, confirmed, cancelled, completed
start_datestringStart date (ISO 8601)
end_datestringEnd date (ISO 8601)
start_timestringStart time (HH:MM)
end_timestringEnd time (HH:MM)
guestsintegerNumber of guests
total_pricenumberTotal price in USD
boatobjectBoat details with images

On this page