Translation pending — read in English.

Voir la référence API →

Translation pending — read in English.

Translation pending — read in English.

Translation pending — read in English.

Translation pending — read in English.

Translation pending — read in English.Translation pending — read in English.Translation pending — read in English.
public.maintenance:readRead the due-items table and work-order list for the consumer org.None — required.
public.fleet:readJoin alerts to the aircraft registration and current airworthiness state.Drop if you store the fleet map externally; relies only on registration in the payload.

Translation pending — read in English.

bash
┌────────────────────┐     ┌─────────────────┐
│ webhook delivery   │ ──▶ │ verify HMAC sig │
│ maintenance.alert  │     └────────┬────────┘
└────────────────────┘              │
                                    ▼
                       ┌────────────────────────┐
                       │ dedupe on Delivery-UUID│
                       └───────────┬────────────┘
                                   │
                                   ▼
                       ┌────────────────────────┐
                       │ create work-order in   │
                       │ your shop system       │
                       └───────────┬────────────┘
                                   │
                                   ▼
                       ┌────────────────────────┐
                       │ store link in your DB  │
                       └────────────────────────┘

Translation pending — read in English.

Translation pending — read in English.

js
// Pseudo-code — webhook handler creates a work order on alert.
app.post("/webhooks/gaflight", verifyHmac, async (req, res) => {
  const delivery = req.header("X-GA-Webhook-Delivery");
  if (await alreadyProcessed(delivery)) return res.status(204).end();

  const { type, data } = req.body.event;
  if (type === "maintenance.alert") {
    const wo = await shop.createWorkOrder({
      externalId: `gaflight:${data.alertId}`,
      aircraft: data.registration,
      reason: data.dueItemDescription,
      severity: data.severity,        // "warning" | "overdue"
    });
    await markProcessed(delivery, wo.id);
  }
  res.status(204).end();
});

Translation pending — read in English.

bash
# Periodically reconcile against the platform — catches missed deliveries.
curl "https://api.gaflight.io/api/v1/public/maintenance/due?status=open&limit=100" \
  -H "Authorization: Bearer gaf_pk_<token>" \
  -H "X-Org-Id: <consumer-org-uuid>"

Translation pending — read in English.

js
// When a work order is completed in your shop, write back the link via
// a future write scope. v2.1 is read-only — for now, hold the closure
// reference in your shop system and rely on the partner to mark the
// due-item resolved manually inside the GA Flight console.

Translation pending — read in English.

  • Duplicate alerts: dedupe on the X-GA-Webhook-Delivery header before you create a work order.
  • Multi-org consumers: the installation_id (header on every delivery) tells you which consumer org fired the alert; key your shop accounts by it.
  • Retry storms after your downtime: the platform retries up to 5 times with exponential backoff; your handler must remain idempotent during the burst.
  • Status divergence: alerts may be acknowledged in the console before your shop completes the work order; do NOT auto-close on a follow-up compliance.updated.
  • Severity escalation: an open alert can flip warning→overdue between deliveries; bump the priority on your existing work order rather than creating a second.
  • Aircraft retirement: fleet:read returns retired aircraft too; filter status='active' before opening shop accounts.
  • Time zones: due-item timestamps are UTC; render in the consumer's local tz where it matters operationally.

Translation pending — read in English.

  1. Declare the two scopes above on your developer app with ≥40-char justifications each.
  2. Stand up the webhook receiver with HMAC verification and X-GA-Webhook-Delivery dedupe BEFORE submitting your listing.
  3. Submit your listing for review (see /developers/review-policy).
  4. Publish under your org and share the install URL with shop customer organizations.
  5. Document the alert-to-work-order mapping policy in your customer-facing runbook.

Translation pending — read in English.

Translation pending — read in English.