Notifications
The notification centre and each person's notification settings.
/v1/unsubscribeThe unsubscribe link in a notification email#
No auth: the signed token names one person and one event. Answers an HTML page with one button that posts back.
- Credential
- None
Parameters
tstringqueryrequiredthe token from the email
Response
200stringtext/htmlThe page with the button
Errors
| Status | Description |
|---|---|
| 400 | The token does not check out (an HTML page) |
Example
curl "https://api.ibel.ai/v1/unsubscribe?t=t"/v1/unsubscribeTurn one event's email off (the button, or one-click unsubscribe, RFC 8058)#
No auth: the signed token names one person and one event. The dashboard notification and SMS stay as they were.
- Credential
- None
Parameters
tstringqueryrequiredthe token from the email
Request bodyapplication/x-www-form-urlencoded
string
Response
200stringtext/htmlDone (an HTML page)
Errors
| Status | Description |
|---|---|
| 400 | The token does not check out (an HTML page) |
Example
curl -X POST "https://api.ibel.ai/v1/unsubscribe?t=t" \
--data-binary @file/v1/notificationsYour notifications, newest first#
- Credential
- A dashboard session only (API keys are refused)
- Roles
- Any role
Parameters
limitintegerquery1-100, default 20
beforeintegerqueryan id: the next page
unreadstringquery1: unread only
one of
1
Response
200object
itemsNotification[]requiredidintegerrequiredtypestringrequiredone of
deploy_failed,build_failed,alert_fired,budget_80,budget_100,wallet_low,invoice_issued,member_invited,member_joined,support_replytitle_keystringrequirednotify.<type>: the words, with params
paramsobjectrequiredparams ending in _rials are rials
linkstring | nulla path in the dashboard
teamobject | nullidstring (uuid)namestring
textobjectrequiredfastringrequiredenstringrequired
created_atstring (date-time)requiredreadbooleanrequired
unreadintegerrequirednext_beforeinteger | nullrequired
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_param |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: session_only |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/notifications" \
-H "Authorization: Bearer $SESSION"/v1/notifications/readMark notifications read#
- Credential
- A dashboard session only (API keys are refused)
- Roles
- Any role
Request bodyapplication/json
idsinteger[]1-500 ids
allbooleanevery unread one
Response
200object
markedintegerrequiredunreadintegerrequired
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_request, bad_json |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: session_only |
| 500 | internal: an unexpected failure |
Example
curl -X POST "https://api.ibel.ai/v1/notifications/read" \
-H "Authorization: Bearer $SESSION" \
-d '{"ids":[1],"all":true}'/v1/me/notification-settingsWhich events go to the centre, email or SMS#
- Credential
- A dashboard session only (API keys are refused)
- Roles
- Any role
Response
200object
has_phonebooleanrequiredeventsNotificationSetting[]requiredtypestringrequiredgroupstringone of
deploys,alerts,billing,team,supportchannelsstring[]requiredthe channels this event can use
title_keystringcentrebooleanrequiredemailbooleanrequiredsmsbooleanrequired
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: session_only |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/me/notification-settings" \
-H "Authorization: Bearer $SESSION"/v1/me/notification-settingsChange them#
A channel left out keeps its value; a channel the event does not use is refused.
- Credential
- A dashboard session only (API keys are refused)
- Roles
- Any role
Request bodyapplication/json
eventsobject[]requiredtypestringrequiredcentrebooleanemailbooleansmsboolean
Response
200object
has_phonebooleanrequiredeventsNotificationSetting[]requiredtypestringrequiredgroupstringone of
deploys,alerts,billing,team,supportchannelsstring[]requiredthe channels this event can use
title_keystringcentrebooleanrequiredemailbooleanrequiredsmsbooleanrequired
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_request, bad_json |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: session_only |
| 500 | internal: an unexpected failure |
Example
curl -X PUT "https://api.ibel.ai/v1/me/notification-settings" \
-H "Authorization: Bearer $SESSION" \
-d '{"events":[{"type":"…","centre":true,"email":true,"sms":true}]}'