βοΈ GraphQL API: User Travel Experience
This API enables client applications to request personalized user travel data. Using the me query, clients can access user profile, flight bookings, and associated travel details. Authentication is handled via Authorization headers and returns scoped data for the current user.
All requests must include a valid authorization token in the Authorization header:
Authorization: Bearer <token>
Retrieves information about the currently authenticated user, including profile data, bookings, and account settings.
| Field | Type | Description |
|---|
name | String! | Full name of the user |
username | String! | Unique username |
bookings | [Booking!]! | List of booked flights |
information | MyInfo! | Contact and payment information |
| Field | Type | Description |
|---|
ticket_number | String! | Unique ticket number |
flight | Flight! | Associated flight details |
seat | String! | Seat assignment on the flight |
| Field | Type | Description |
|---|
number | String! | Flight number |
route_id | String! | ID of the associated route |
route | Route! | Details of the route |
scheduled_departure | String! | ISO date-time for departure |
scheduled_arrival | String! | ISO date-time for arrival |
details | FlightDetails! | Additional flight information |
| Field | Type | Description |
|---|
id | String! | Unique identifier for the route |
origin | String! | Airport of departure |
destination | String! | Airport of arrival |
avg_duration | Int! | Average flight duration in minutes |
| Field | Type | Description |
|---|
aircraft_type | String! | Aircraft model/type |
flight_number | String! | Flight number (repeated) |
in_flight_entertainment | Boolean! | Whether entertainment is available |
meal_options | [String!]! | List of available meals |
| Field | Type | Description |
|---|
address | String! | Mailing address |
phone_number | String! | User's phone number |
email | String! | Email address |
frequent_flier_number | String | Optional FF number |
payment_methods | [PaymentMethod!]! | Stored payment methods |
| Field | Type | Description |
|---|
id | ID! | Unique ID of payment method |
redacted_card_number | String! | Masked card number (e.g., ****1234) |
card_holder_name | String! | Name on the card |
expiration_date | String! | Expiry date in MM/YY or ISO format |