GET /api/monitors
Requires Bearer token.
| Field | Type | Description |
|---|---|---|
monitors | array | Array of monitored location objects. |
monitors[].id | uuid | Unique monitor identifier. |
monitors[].name | string | User-provided location name. |
monitors[].lat | float | Latitude. |
monitors[].lng | float | Longitude. |
POST /api/monitors
Requires Bearer token.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | ✓ | A name for this monitored location. | |
lat | float | ✓ | Latitude. | |
lng | float | ✓ | Longitude. |
| Field | Type | Description |
|---|---|---|
monitor | object | The newly created monitor object. |
DELETE /api/monitors
Requires Bearer token.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | uuid | ✓ | The monitor ID to delete. |
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the deletion succeeded. |
GET /api/alerts/history
Requires Bearer token.
| Field | Type | Description |
|---|---|---|
alerts | array | Array of alert history objects. |
alerts[].type | string | Alert type (score_change, source_change, etc.). |
alerts[].message | string | Human-readable alert description. |