Workspace-wide alert rules are in Settings; these calls set your own notices.
GET/v1/me/notification_preferences
For each kind of event that concerns you, which channels it goes to: in the console, browser push, email, Slack, Microsoft Teams or your webhook. With what each channel still needs, your email timing and your quiet hours.
- Who may
- Every member, for themselves
- CLI
widar notifications get- MCP tool
get_my_notification_settings- Returns
- Every kind of event with its channels, each channel’s setup, the email timing and the quiet hours.
No parameters.
curl -X GET https://api.widar.com/v1/me/notification_preferences \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/me/notification_preferences
PATCH/v1/me/notification_preferences
Turn channels on or off for kinds of events, choose email at once or once a day, and set quiet hours. A channel that is not set up yet keeps your choice and starts once it is.
- Who may
- Every member, for themselves
- CLI
widar notifications set [--turn-on <kind:channel>,...] [--turn-off <kind:channel>,...] [--email-timing <at_once|daily>] [--quiet-hours <true|false>] [--quiet-from <HH:MM>] [--quiet-to <HH:MM>]- MCP tool
set_my_notification_settings- Returns
- Your notification settings, changed.
Parameters
turn_onThe turn on. At most 200 items.
turn_offThe turn off. At most 200 items.
email_timingThe email timing. One of
at_once,daily.quiet_hoursThe quiet hours.
quiet_fromThe quiet from.
quiet_toThe quiet to.
curl -X PATCH https://api.widar.com/v1/me/notification_preferences \
-H "Authorization: Bearer $WIDAR_API_KEY"PATCH /v1/me/notification_preferences
GET/v1/me/push_subscriptions
Each browser you turned browser push on in, when it was turned on and last used, and the key a new browser subscribes with.
- Who may
- Every member, for themselves
- CLI
widar push list- MCP tool
list_my_push_browsers- Returns
- Your browsers, the most recently used first, and widar’s application server key.
No parameters.
curl -X GET https://api.widar.com/v1/me/push_subscriptions \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/me/push_subscriptions
POST/v1/me/push_subscriptions
Keeps the subscription a browser made with widar’s key, so browser push reaches it. The same browser twice stays one.
- Who may
- Every member, for themselves
- CLI
widar push add --endpoint <https address> --keys <json> [--expiration-time <ms>] [--browser <browser on system>]- MCP tool
add_push_browser- Returns
- The browser, on.
Parameters
endpointRequiredThe endpoint. At most 2,048 characters.
keysRequiredThe keys.
expiration_timeThe expiration time.
nullclears it.browserThe browser. At most 60 characters.
curl -X POST https://api.widar.com/v1/me/push_subscriptions \
-H "Authorization: Bearer $WIDAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"endpoint": "<endpoint>",
"keys": "<keys>"
}'POST /v1/me/push_subscriptions
DELETE/v1/me/push_subscriptions/{subscription_id}
That browser no longer gets browser push from widar. Your other browsers stay on.
- Who may
- Every member, for themselves
- CLI
widar push remove <subscription_id>- MCP tool
remove_push_browser- Returns
- The browser gets no more notifications.
Parameters
subscription_idRequiredThe subscription’s id. In the path.
curl -X DELETE https://api.widar.com/v1/me/push_subscriptions/psb_7Kq2Xw9 \
-H "Authorization: Bearer $WIDAR_API_KEY"DELETE /v1/me/push_subscriptions/{subscription_id}
POST/v1/me/push_subscriptions/test
Sends a test to every browser you turned on, or to one. It shows as any notification does.
- Who may
- Every member, for themselves
- CLI
widar push test [--subscription-id <psb_id>]- MCP tool
test_push_notifications- Returns
- The browsers it was sent to, and the notification they were sent.
Parameters
subscription_idThe subscription’s id.
curl -X POST https://api.widar.com/v1/me/push_subscriptions/test \
-H "Authorization: Bearer $WIDAR_API_KEY"POST /v1/me/push_subscriptions/test
GET/v1/me/webhook
Your own https address that gets your notifications as signed POSTs, the signing secret’s last four characters and the last test.
- Who may
- Every member, for themselves
- CLI
widar me webhook get- MCP tool
get_my_webhook- Returns
- Your webhook address, its secret’s last four characters and the last test; the address is null when you have none.
No parameters.
curl -X GET https://api.widar.com/v1/me/webhook \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/me/webhook
PUT/v1/me/webhook
The https address your notifications are sent to, each signed with a secret of your own. A new address or a new secret answers the secret once: copy it then.
- Who may
- Every member, for themselves
- CLI
widar me webhook set --url <https address|null> [--roll-secret]- MCP tool
set_my_webhook- Returns
- Your webhook, with the whole secret when it is new.
Parameters
urlRequiredThe url. At most 2,048 characters.
nullclears it.roll_secretThe roll secret.
curl -X PUT https://api.widar.com/v1/me/webhook \
-H "Authorization: Bearer $WIDAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "<url>"
}'PUT /v1/me/webhook
POST/v1/me/webhook/test
Sends a signed test notification to your webhook and answers what came back.
- Who may
- Every member, for themselves
- CLI
widar me webhook test- MCP tool
test_my_webhook- Returns
- Whether it was delivered, the status and time, and the request exactly as sent.
No parameters.
curl -X POST https://api.widar.com/v1/me/webhook/test \
-H "Authorization: Bearer $WIDAR_API_KEY"POST /v1/me/webhook/test
GET/v1/me/chat_links
Whether the workspace has Slack and Microsoft Teams connected, and whether your own account there is linked, so notifications reach you as direct messages.
- Who may
- Every member, for themselves
- CLI
widar chat-links list- MCP tool
list_my_chat_links- Returns
- Slack and Microsoft Teams: the workspace’s connection and your own link.
No parameters.
curl -X GET https://api.widar.com/v1/me/chat_links \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/me/chat_links
POST/v1/me/chat_links
Links your own Slack or Microsoft Teams account through the workspace’s integration, so your notifications come as direct messages. You sign in there as yourself.
- Who may
- Every member, for themselves
- CLI
widar chat-links link <slack|teams>- MCP tool
link_my_chat_account- Returns
- The link, and where to sign in when it is not made at once.
Parameters
toolRequiredThe tool. One of
slack,teams.
curl -X POST https://api.widar.com/v1/me/chat_links \
-H "Authorization: Bearer $WIDAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool": "slack"
}'POST /v1/me/chat_links
DELETE/v1/me/chat_links/{tool}
Your notifications stop coming as direct messages there. The workspace’s integration stays as it is.
- Who may
- Every member, for themselves
- CLI
widar chat-links unlink <slack|teams>- MCP tool
unlink_my_chat_account- Returns
- The tool, no longer linked to you.
Parameters
toolRequiredThe tool. One of
slack,teams. In the path.
curl -X DELETE https://api.widar.com/v1/me/chat_links/slack \
-H "Authorization: Bearer $WIDAR_API_KEY"DELETE /v1/me/chat_links/{tool}