Notifications

Notify crew members via various channels — push, email and SMS.

Notification Types

TypeUsage
briefingDaily briefing with flight information
check_in_reminderReminder to check in 2h before briefing time
schedule_changeRoster change — new flight, cancellation, swap
standby_callStandby activation — please report immediately
emergencyCritical operational message — immediate action required

POST /notifications/send

POSThttps://api.aeroselect.io/api/v1/crewops/notifications/send
FeldTypPflichtBeschreibung
crew_member_idsarrayPflichtArray of crew member IDs (recipients)
typeenumPflichtbriefing | check_in_reminder | schedule_change | standby_call | emergency
titlestringPflichtNotification title (max. 100 characters)
messagestringPflichtNotification text (max. 1,000 characters)
channelsarrayOptionalpush | email | sms (default: [push, email])
dataobjectOptionalOptional structured data (e.g. flight_id, duty_id)
cURLBash
curl -X POST "https://api.aeroselect.io/api/v1/crewops/notifications/send" \
  -H "X-API-Key: ak_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "crew_member_ids": [201, 215, 220],
    "type": "schedule_change",
    "title": "Schedule change LH1234",
    "message": "Your flight LH1234 (FRA→JFK) has been moved to 08:30 UTC. New briefing: 06:00 UTC Gate B42.",
    "channels": ["push", "email", "sms"],
    "data": {
      "flight_id": 5001,
      "duty_id": 1001
    }
  }'
Response 200JSON
{
  "status": "sent",
  "recipients": 3,
  "sent_via": {
    "push": 3,
    "email": 3,
    "sms": 3
  },
  "notification_id": "ntf_abc123xyz",
  "sent_at": "2026-05-22T03:30:00Z"
}
Node.js — Emergency broadcastJavaScript
// Send emergency notification to all active crew members
async function broadcastEmergency(message: string, crewIds: number[]) {
  const response = await fetch(
    "https://api.aeroselect.io/api/v1/crewops/notifications/send",
    {
      method: "POST",
      headers: {
        "X-API-Key": process.env.AEROSELECT_API_KEY!,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({
        crew_member_ids: crewIds,
        type: "emergency",
        title: "EMERGENCY ALERT",
        message,
        channels: ["push", "email", "sms"],
      }),
    }
  );
  return response.json();
}