AviMiles / Docs
Documentation / Developer API
Developer API

Flight and attendance API

Retrieve flights and record check-in or presence.

Check-in workflow

  1. GET /checkin/open to find the currently open flight.
  2. POST /flights/{flight_id}/checkin with the passenger Roblox ID as a string.
  3. For batches, POST /flights/{flight_id}/checkin/batch with up to 300 IDs.
  4. GET /flights/{flight_id}/attendance to verify recorded attendance.
  5. During boarding, send presence events only for checked-in passengers.
{"roblox_id":"123456789"}
{"roblox_ids":["123456789","987654321"]}
{"roblox_id":"123456789","event":"joined"}

Presence events are joined, left or rejoined. A 409 can indicate check-in is closed or the passenger has not checked in. Use the airline dashboard to complete flights.

Read flight details before check-in

Call GET /flights?status=boarding or GET /checkin/open, use the returned numeric id, then call GET /flights/{flight_id} for cabin capacities and flight details. Send check-in only when the passenger actually checks in. Use attendance to verify the result. See the API reference for full request and response examples.