Crew Profiles
List crew members, retrieve individual profiles and edit aviation-specific fields.
Crew Member Object
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| id | integer | Optional | Unique crew ID |
| employee_id | string | Optional | Employee numberz.B. EMP-12345 |
| first_name | string | Optional | First name |
| last_name | string | Optional | Last name |
string | Optional | Work email address | |
| role | enum | Optional | captain | first_officer | cabin_crew | ground_ops | dispatcher |
| base_airport | string | Optional | Home base (IATA)z.B. FRA |
| hire_date | date | Optional | Hire date |
| status | enum | Optional | active | on_leave | suspended | terminated |
| total_flight_hours | number | Optional | Total flight hours (PIC + co-pilot) |
| created_at | datetime | Optional | Profile created |
GET /crew — All Crew Members
GEThttps://api.aeroselect.io/api/v1/crew/crew
cURLBash
curl "https://api.aeroselect.io/api/v1/crew/crew?role=captain&status=active&base_airport=FRA" \
-H "X-API-Key: ak_live_YOUR_KEY"Response 200JSON
{
"data": [
{
"id": 201,
"employee_id": "EMP-12345",
"first_name": "Thomas",
"last_name": "Bauer",
"role": "captain",
"base_airport": "FRA",
"hire_date": "2018-03-01",
"status": "active",
"total_flight_hours": 8420
}
],
"meta": { "total": 87, "page": 1, "per_page": 25 }
}GET /crew/{id} — Single Profile
GEThttps://api.aeroselect.io/api/v1/crew/crew/{id}
Bash
curl "https://api.aeroselect.io/api/v1/crew/crew/201" \
-H "X-API-Key: ak_live_YOUR_KEY"PATCH /crew/{id} — Edit Profile
PATCHhttps://api.aeroselect.io/api/v1/crew/crew/{id}
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| base_airport | string | Optional | New home base (IATA) |
| status | enum | Optional | New status |
| total_flight_hours | number | Optional | Updated flight hours |
cURLBash
curl -X PATCH "https://api.aeroselect.io/api/v1/crew/crew/201" \
-H "X-API-Key: ak_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "base_airport": "MUC", "total_flight_hours": 8650 }'