اعلانها
مرکز اعلانها و تنظیمات اعلان هر شخص.
/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.
- دسترسی
- بدون اعتبارنامه
پارامترها
tstringکوئریالزامیthe token from the email
پاسخ
200stringtext/htmlThe page with the button
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | The token does not check out (an HTML page) |
نمونه
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.
- دسترسی
- بدون اعتبارنامه
پارامترها
tstringکوئریالزامیthe token from the email
بدنهٔ درخواستapplication/x-www-form-urlencoded
string
پاسخ
200stringtext/htmlDone (an HTML page)
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | The token does not check out (an HTML page) |
نمونه
curl -X POST "https://api.ibel.ai/v1/unsubscribe?t=t" \
--data-binary @file/v1/notificationsYour notifications, newest first#
- دسترسی
- فقط نشست داشبورد (کلید API پذیرفته نمیشود)
- نقشها
- همهٔ نقشها
پارامترها
limitintegerکوئری1-100, default 20
beforeintegerکوئریan id: the next page
unreadstringکوئری1: unread only
one of
1
پاسخ
200object
itemsNotification[]الزامیidintegerالزامیtypestringالزامیone of
deploy_failed,build_failed,alert_fired,budget_80,budget_100,wallet_low,invoice_issued,member_invited,member_joined,support_replytitle_keystringالزامیnotify.<type>: the words, with params
paramsobjectالزامیparams ending in _rials are rials
linkstring | nulla path in the dashboard
teamobject | nullidstring (uuid)namestring
textobjectالزامیfastringالزامیenstringالزامی
created_atstring (date-time)الزامیreadbooleanالزامی
unreadintegerالزامیnext_beforeinteger | nullالزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Bad request: bad_param |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: session_only |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/notifications" \
-H "Authorization: Bearer $SESSION"/v1/notifications/readMark notifications read#
- دسترسی
- فقط نشست داشبورد (کلید API پذیرفته نمیشود)
- نقشها
- همهٔ نقشها
بدنهٔ درخواستapplication/json
idsinteger[]1-500 ids
allbooleanevery unread one
پاسخ
200object
markedintegerالزامیunreadintegerالزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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#
- دسترسی
- فقط نشست داشبورد (کلید API پذیرفته نمیشود)
- نقشها
- همهٔ نقشها
پاسخ
200object
has_phonebooleanالزامیeventsNotificationSetting[]الزامیtypestringالزامیgroupstringone of
deploys,alerts,billing,team,supportchannelsstring[]الزامیthe channels this event can use
title_keystringcentrebooleanالزامیemailbooleanالزامیsmsbooleanالزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: session_only |
| 500 | internal: an unexpected failure |
نمونه
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.
- دسترسی
- فقط نشست داشبورد (کلید API پذیرفته نمیشود)
- نقشها
- همهٔ نقشها
بدنهٔ درخواستapplication/json
eventsobject[]الزامیtypestringالزامیcentrebooleanemailbooleansmsboolean
پاسخ
200object
has_phonebooleanالزامیeventsNotificationSetting[]الزامیtypestringالزامیgroupstringone of
deploys,alerts,billing,team,supportchannelsstring[]الزامیthe channels this event can use
title_keystringcentrebooleanالزامیemailbooleanالزامیsmsbooleanالزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
curl -X PUT "https://api.ibel.ai/v1/me/notification-settings" \
-H "Authorization: Bearer $SESSION" \
-d '{"events":[{"type":"…","centre":true,"email":true,"sms":true}]}'