---
title: "Set alert callback URL"
method: PUT
path: "/alerts/endpoint"
tags: ["alerts"]
---

# Set alert callback URL

`PUT /alerts/endpoint`

## Request

- Base URL: `https://aeroapi.flightaware.com/aeroapi`
- URL: `https://aeroapi.flightaware.com/aeroapi/alerts/endpoint`
- Auth: API key in header `x-apikey`
- TypeScript: <https://skmtc.dev/flightaware/apis/aeroapi/docs/alerts/endpoint/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the default URL that will be POSTed to for alerts that are delivered via AeroAPI.
This sets the account-wide default URL that all alerts will be delivered to unless
the specific alert has a different delivery address configured for it.

## Request body

- object: Configuration for a URL to which AeroAPI alerts should be delivered via HTTP POST. This is the default account-wide URL that all AeroAPI alerts will be delivered to if the alert does not have a specific alert URL configured for it.
  - `url` string, uri, nullable, required: Default account-wide URL that will be POSTed to for flight alerts.

## Response `204`

Endpoint updated successfully, empty response.

## Other responses

- `400`: Bad address, missing hostname, or unsupported address protocol.

---

[API](https://skmtc.dev/flightaware/apis/aeroapi.md) - [All operations](https://skmtc.dev/flightaware/apis/aeroapi/llms.txt) - [OpenAPI document](https://skmtc.dev/flightaware/apis/aeroapi/revisions/3023e7a0c54c?raw)
