# AeroAPI Webhook

**URL:** <https://discussions.flightaware.com/t/aeroapi-webhook/100786>\
**Category:** AeroAPI\
**Created:** [September 25, 2026, 10:50am UTC](https://discussions.flightaware.com/t/aeroapi-webhook/100786 "2026-09-25T10:50:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crapufish](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/crapufish/32/132397_2.png) [@crapufish](https://discussions.flightaware.com/u/crapufish)\
**Post date:** [September 25, 2026, 10:50am UTC](https://discussions.flightaware.com/t/aeroapi-webhook/100786/1 "2026-09-25T10:50:18Z")

</div>

Hello

What is the method (POST?), content type (XML or JSON) and the payload structure which should be accepted by the webhook endpoint?

Thank you!

Dorian

---

<div class="post-metadata">

**Author:** ![apitts29](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/apitts29/32/137119_2.png) [@apitts29](https://discussions.flightaware.com/u/apitts29)\
**Post date:** [October 2, 2026, 10:12pm UTC](https://discussions.flightaware.com/t/aeroapi-webhook/100786/2 "2026-10-02T22:12:43Z")

</div>

Hi **[crapufish](https://discussions.flightaware.com/u/crapufish),**

Both formats may be used for the webhook endpoint.

Below is an example XML payload:

```auto
<alert>
  <faFlightID>UAL1234-1706918400-airline-0123</faFlightID>
  <ident>UAL1234</ident>
  <aircrafttype>B738</aircrafttype>
  <origin>
    <code>KORD</code>
    <city>Chicago, IL</city>
    <airport_name>O'Hare Intl</airport_name>
  </origin>
  <destination>
    <code>KDEN</code>
    <city>Denver, CO</city>
    <airport_name>Denver Intl</airport_name>
  </destination>
  <eventcode>departure</eventcode>
  <timestamp>2026-02-01T15:02:10Z</timestamp>
  <departure_time>
    <scheduled>2026-02-01T15:00:00Z</scheduled>
    <actual>2026-02-01T15:02:06Z</actual>
  </departure_time>
  <status>En Route</status>
</alert>

```

When creating a JSON payload, you’d pass `format=xml` when creating the rule:

```auto
https://aeroapi.flightaware.com/aeroapi/alerts/create?format=xml

```

With a POST body like:

```auto
{
  "alert_name": "UAL Departures",
  "type": "webhook",
  "url": "https://yourserver.com/aeroapi/webhook",
  "channels": ["webhook"],
  "ident": "UAL1234"
}

```
