alertsPOST
List / enable / disable / add saved competitive-intel alerts.
CRUD over the caller's alert subscriptions. Pass an `action` field to choose the operation.
Endpoint
POST https://api.frontwind.ai/v1/agents/alertsExample
curl -X POST https://api.frontwind.ai/v1/agents/alerts \
-H "Authorization: Bearer fw_live_..." \
-H "Content-Type: application/json" \
-d '{ "action": "list" }'Request body
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | |
query_id | integer | No | Required for enable_from_query / remove. |
drug_name | string | No | Required for add_manual. |
signal_level | string | default "medium" |
Response data
| Field | Type | Description |
|---|---|---|
action | string | |
queries | array | |
quota | object |
Example response
{
"ok": true,
"agent": "alerts",
"data": {
"action": "list",
"queries": [
{
"id": 9421,
"query": "TROP2 ADC",
"alerts_enabled": true
}
],
"quota": {
"enabled_count": 3,
"max_enabled": 10,
"at_cap": false
}
},
"elapsed_s": 42
}