Notification
Your own in-app notifications in this workspace (an agent key is refused): list them, newest first, filtered by isRead, type, action, projectId, associationType + associationId or a createdAt range; count the unread ones with unreadCount; mark them read with markRead (some ids, or all).
List Notifications
List notifications. Returns a paginated envelope (data, total, limit, hasMore, nextCursor). Filterable by 7 fields. Ordered by -createdAt unless you pass sort.
Required scope: notifications:read
query Parameters
sortField to sort by. Prefix with - for descending (-createdAt); a createdAt:desc / createdAt:asc suffix works too, but never both markers at once. Default: -createdAt.
cursorOpaque cursor for the next page (the envelope nextCursor).
limitItems per page (1–200, default 50). A larger value is clamped to the cap rather than rejected, so always follow nextCursor instead of assuming one page held everything.
includeTotalWhen true, the response envelope includes the total number of matching rows. Omit it for cheaper pagination.
isRead[eq]Filter where isRead equals.
type[eq]Filter where type equals.
type[in]Filter where type is one of (comma-separated list).
action[eq]Filter where action equals.
action[in]Filter where action is one of (comma-separated list).
projectId[eq]Filter where projectId equals.
projectId[in]Filter where projectId is one of (comma-separated list).
associationType[eq]Filter where associationType equals.
associationId[eq]Filter where associationId equals.
associationId[in]Filter where associationId is one of (comma-separated list).
createdAt[gt]Filter where createdAt is greater than.
createdAt[gte]Filter where createdAt is greater than or equal to.
createdAt[lt]Filter where createdAt is less than.
createdAt[lte]Filter where createdAt is less than or equal to.
List Notifications › Responses
OK
The page of results.
totalTotal rows matching the query (across pages).
limithasMorenextCursorOpaque cursor for the next page; null on the last page.
Get Notification
Retrieve a single Notification by id.
Required scope: notifications:read
path Parameters
id^[0-9A-Za-z_!]+$ · requiredId of the Notification.
Get Notification › Responses
OK
idNotification id.
typeWhat the notification is about (task, message, project, …).
actionWhat happened (assign, comment, complete, …).
titleShort title.
messageNotification text.
urlWhere the notification leads in the Nifty app.
isReadWhether you have read it. Mark notifications read with POST /notifications/mark-read.
createdAtWhen it was sent.
projectIdThe project the notification is about, or null for a workspace-level one.
triggeredByIdWho caused the notification, or null. Usually a team member. It can also be orbit for Nifty itself (billing, check-ins, integrations), portal-contact-<id> for a client portal contact, an agent id, or the id of the automation that sent it; none of those is a member, so do not look them up as one. For a comment notification that merges several people, the latest one. For a team member: A member id — resolve it with GET /members/{id}.
associationTypeThe kind of thing the notification links to (task, message, document, …); with associationId, the record to open.
associationIdThe id of the record the notification links to; read it with associationType.
Unread count (Notification)
How many of your own notifications in this workspace are unread, optionally for one project. An agent key is refused.
Required scope: notifications:read
query Parameters
projectIdCount only the unread notifications about this project.
Unread count (Notification) › Responses
OK
countUnread notifications of the caller.
Mark read (Notification)
Mark your own notifications in this workspace read: up to 100 by ids, or all: true (optionally narrowed by projectId). Ids that are not yours or not in this workspace are ignored. count is how many changed from unread to read. An agent key is refused.
Required scope: notifications:write
Headers
Idempotency-KeyOptional replay key (see Idempotent requests above).
Mark read (Notification) › Request Body
idsIds of your notifications to mark read, 1 to 100. Ids that are not yours or not in this workspace are ignored. Send this or all, not both.
allMark all your unread notifications in this workspace read. Send this or ids, not both.
projectIdWith all: mark read only your notifications about this project.
Mark read (Notification) › Responses
OK
idempotentReplayTrue when this response was replayed from a previous call with the same Idempotency-Key (nothing was marked this time).
countHow many of your notifications this call changed from unread to read.
idsThe ids this call changed from unread to read. Returned for the ids form only; all can match thousands.