name: iblai-notifications description: Read and send ibl.ai platform notifications via the API — unread counts, the notifications list with filters, mark-as-read, and the two-step notification builder (preview then send/schedule). Use when reading an organization's notifications or sending one to recipients.
iblai-notifications
Read and send an organization's platform notifications via the API: the unread count, the notifications list with channel and status filters, mark-as-read, and the two-step notification builder (preview then send/schedule). Use when reading an organization's notifications or sending one to recipients.
Auth & conventions
- Base URL:
https://api.iblai.app - Header:
Authorization: Api-Token $IBLAI_API_KEYon every request. - Path vars:
{org}=$IBLAI_ORG,{username}=$IBLAI_USERNAME. - These are platform-level endpoints — the host is DM under
/api/notification/v1/…. - Not connected yet? Run
/iblai-loginfirst to populateIBLAI_ORG,IBLAI_USERNAME, andIBLAI_API_KEY.
Reads
- GET
https://api.iblai.app/dm/api/notification/v1/orgs/{org}/users/{username}/notifications-count/?status=UNREAD— unread count (alsochannel). - GET
https://api.iblai.app/dm/api/notification/v1/orgs/{org}/users/{username}/notifications/— notifications list (filters:channel,status,start_date,end_date,exclude_channel).
Writes
- POST
https://api.iblai.app/dm/api/notification/v1/orgs/{org}/mark-all-as-read— mark all (or specific) notifications as read:{ "notification_ids": "uuid[] (omit/empty = mark ALL unread)" } - POST
https://api.iblai.app/dm/api/notification/v1/orgs/{org}/notification-builder/preview/— builder step 1, preview (returnsbuild_id):{ "channels": "integer[] (required, e.g. [1])", "sources": "NotificationSource[] (required, from recipient emails)", "template_id": "uuid|null", "template_data": "object|null", "context": "object", "process_on": "ISO datetime|null (schedule)" } - POST
https://api.iblai.app/dm/api/notification/v1/orgs/{org}/notification-builder/send/— step 2, send/schedule:{ "build_id": "string (required)" }
Example
Check the unread notification count for the current user:
curl -s \
"https://api.iblai.app/dm/api/notification/v1/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/notifications-count/?status=UNREAD" \
-H "Authorization: Api-Token $IBLAI_API_KEY"
Notes
- Sending a notification is outward-facing — confirm the recipients with the user before the send step.
- The builder is two steps:
preview/returns abuild_id, thensend/takes thatbuild_idto actually send or schedule. mark-all-as-readwith an empty/omittednotification_idsmarks all unread notifications read; pass specific ids to mark just those.