---
title: "Register Eclipse-Alert Webhook"
method: POST
path: "/webhooks/eclipse-alert"
tags: ["Webhooks"]
---

# Register Eclipse-Alert Webhook

`POST /webhooks/eclipse-alert`

Subscribe to upcoming eclipse alerts (default 7 days before).

## Request body

- Register
  - `url` string, uri, required

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `id` number, nullable
    - `event` string, nullable

## Other responses

- `400` — Validation error
- `401` — Missing or invalid API key

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/6828e5609564/schema)
