# Trying to create flight alert

**URL:** <https://discussions.flightaware.com/t/trying-to-create-flight-alert/86428>\
**Category:** AeroAPI\
**Created:** [January 28, 2023, 9:46am UTC](https://discussions.flightaware.com/t/trying-to-create-flight-alert/86428 "2023-01-28T09:46:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anirudhjpatel](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/anirudhjpatel/32/109432_2.png) [@anirudhjpatel](https://discussions.flightaware.com/u/anirudhjpatel)\
**Post date:** [January 28, 2023, 9:46am UTC](https://discussions.flightaware.com/t/trying-to-create-flight-alert/86428/1 "2023-01-28T09:46:31Z")

</div>

i m trying to create flight alert using [https://aeroapi.flightaware.com/aeroapi/alerts](https://aeroapi.flightaware.com/aeroapi/alerts)  
but i m getting following error.  
{  
“title”: “Unconnected”,  
“reason”: “UNCONNECTED”,  
“detail”: “channel\_id is not connected: 21”,  
“status”: 400  
}

---

<div class="post-metadata">

**Author:** ![nayleung](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/nayleung/32/122210_2.png) [@nayleung](https://discussions.flightaware.com/u/nayleung)\
**Post date:** [January 28, 2023, 5:45pm UTC](https://discussions.flightaware.com/t/trying-to-create-flight-alert/86428/2 "2023-01-28T17:45:40Z")

</div>

Hello Anirudh,

Thank you for contacting FlightAware. Usually this error occurs when an endpoint through PUT /alerts/endpoint has not been set. Please let me know if you have any additional questions.

Regards,

Nathan Leung  
Support Specialist

–

Learn about FlightAware Global and Premium Accounts: [http://flightaware.com/commercial/](http://flightaware.com/commercial/)

---

<div class="post-metadata">

**Author:** ![anirudhjpatel](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/anirudhjpatel/32/109432_2.png) [@anirudhjpatel](https://discussions.flightaware.com/u/anirudhjpatel)\
**Post date:** [January 29, 2023, 1:32pm UTC](https://discussions.flightaware.com/t/trying-to-create-flight-alert/86428/3 "2023-01-29T13:32:23Z")

</div>

Hi nayleung,  
Thanks for the information,  
Could you please help me How to create alert & how to set endpoints.

Regards,  
Anirudh

---

<div class="post-metadata">

**Author:** ![bovineone](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bovineone/32/117631_2.png) [@bovineone](https://discussions.flightaware.com/u/bovineone)\
**Post date:** [January 30, 2023, 2:46am UTC](https://discussions.flightaware.com/t/trying-to-create-flight-alert/86428/4 "2023-01-30T02:46:08Z")

</div>

You need to be sure that you have registered an endpoint for your account at least once, before you attempt to set an alert. This allows us to know what URL on your server to deliver the alert to. See the following method to register the endpoint:

> **[AeroAPI Developer Portal - FlightAware](https://flightaware.com/aeroapi/portal/documentation#put-/alerts/endpoint)**
>
> Best Flight Tracker: Live Tracking Maps, Flight Status, and Airport Delays for airline flights, private/GA flights, and airports.

---

<div class="post-metadata">

**Author:** ![anirudhjpatel](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/anirudhjpatel/32/109432_2.png) [@anirudhjpatel](https://discussions.flightaware.com/u/anirudhjpatel)\
**Post date:** [January 30, 2023, 8:26am UTC](https://discussions.flightaware.com/t/trying-to-create-flight-alert/86428/5 "2023-01-30T08:26:46Z")

</div>

while creating alert now i m getting following error.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/flightaware/original/3X/d/f/dfcdbf0529acfcb9bcd7c7d4530da0291702b3d2.png)

---

<div class="post-metadata">

**Author:** ![send2gl](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/send2gl/32/113341_2.png) [@send2gl](https://discussions.flightaware.com/u/send2gl)\
**Post date:** [January 30, 2023, 1:42pm UTC](https://discussions.flightaware.com/t/trying-to-create-flight-alert/86428/6 "2023-01-30T13:42:28Z")

</div>

Might be a bit naive here but the flight alerts are easy via the web page, what is the advantage of setting an alert via the aeroapi system?

Geoff

---

<div class="post-metadata">

**Author:** ![bovineone](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bovineone/32/117631_2.png) [@bovineone](https://discussions.flightaware.com/u/bovineone)\
**Post date:** [January 30, 2023, 5:12pm UTC](https://discussions.flightaware.com/t/trying-to-create-flight-alert/86428/7 "2023-01-30T17:12:31Z")

</div>

Your Set Alert request has a “max\_weekly” that will be exceeded. You need to increase max\_weekly, or make your other flight matching criteria more specific so that it matches fewer flights.

@send2gl AeroAPI alerts can be programmatically created and destroyed, such as in response to other user activity. The maximum alert count limit is significantly higher using AeroAPI than the website–sometimes users have hundreds or thousands of AeroAPI flight alerts. Additionally, alerts are delivered in a JSON push format directly to your web server for programatic processing by your code.

---

<div class="post-metadata">

**Author:** ![anirudhjpatel](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/anirudhjpatel/32/109432_2.png) [@anirudhjpatel](https://discussions.flightaware.com/u/anirudhjpatel)\
**Post date:** [January 30, 2023, 5:37pm UTC](https://discussions.flightaware.com/t/trying-to-create-flight-alert/86428/8 "2023-01-30T17:37:42Z")

</div>

Thank you for solution , now its working .
