Notifications API
Reference for the 6 Notifications operations in the Intuidy API.
Responses are JSON. A successful response is { "success": true, "data": …, "meta": … }, and each operation below documents its data. Errors use the error envelope described in Errors, pagination and limits.
| Operation | Method and path | Authorization |
|---|---|---|
| List the caller's own notifications | GET /notifications | Any credential |
| Mark the caller's notifications read or dismissed | PATCH /notifications | Any credential |
| Read the caller's own notification preferences | GET /notifications/preferences | Any credential |
| Replace the caller's own notification preferences | PUT /notifications/preferences | Any credential |
| Read one of the caller's notifications | GET /notifications/{id} | Any credential |
| Follow the caller's own inbox as server-sent events | GET /notifications/events | Any credential |
List the caller's own notifications
GET /notifications
The inbox of the credential's own user, newest first. Dismissed
notifications are left out unless status=dismissed is asked for.
unread_count is the number to show on an unread badge. No scope, but the credential must be the person: an OAuth sign-in or a
user-scope key. A company key, or a connection bound to another
person's key, gets 403 PERSON_CREDENTIAL_REQUIRED.
Authorization: any valid API key or OAuth token; no scope needed. Needs a person’s own key or OAuth sign-in, not an admin key.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
status | "unread" or "read" or "dismissed" | No | — |
type | string | No | A notification type, e.g. approval_required |
limit | integer (≤ 100) | No | — |
offset | integer | No | — |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
notifications | array of Notification | — |
total | integer | — |
unread_count | integer | — |
limit | integer | — |
offset | integer | — |
Errors 401. See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/notifications" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Mark the caller's notifications read or dismissed
PATCH /notifications
Marks the listed ids, or every unread notification with all: true.
Only the caller's own notifications change; other ids are ignored.
Answers the new unread count, so a client can update its badge.
Authorization: any valid API key or OAuth token; no scope needed. Needs a person’s own key or OAuth sign-in, not an admin key.
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
ids | array of integer | No | — |
all | boolean | No | — |
status | "read" or "dismissed" | No | Default "read" |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
updated | integer | — |
unread_count | integer | — |
Errors 400, 401. See Errors, pagination and limits.
Example request
curl -X PATCH "https://vantage.intuidy.com/api/v1/notifications" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":"<ids>"}'Read the caller's own notification preferences
GET /notifications/preferences
Which notification types the caller turned off (disabledTypes) and
which data rules' "blocked" notices the caller muted (mutedRuleIds).
They apply before a notification is written, so a type turned off
here does not reach GET /notifications or any other access method. No scope, but the credential must
be the person: an OAuth sign-in or a user-scope key. A company key,
or a connection bound to another person's key, gets
403 PERSON_CREDENTIAL_REQUIRED.
Authorization: any valid API key or OAuth token; no scope needed. Needs a person’s own key or OAuth sign-in, not an admin key.
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
preferences | NotificationPreferences | — |
types | array of object | Every notification type the caller can receive, one entry each. A locked type cannot be turned off. |
types[].type | string | — |
types[].label | string | — |
types[].group | "action" or "update" | — |
types[].locked | boolean | — |
rules | array of object | The company's data rules, for an admin of them only; an empty list for everyone else. |
rules[].id | string | — |
rules[].name | string | — |
rules[].enabled | boolean | — |
Errors 401, 403 (PERSON_CREDENTIAL_REQUIRED). See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/notifications/preferences" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Replace the caller's own notification preferences
PUT /notifications/preferences
Replaces both lists. The answer is what was stored: an unknown type, or a type that cannot be turned off (an approval waiting on the caller, security, billing), is dropped.
Authorization: any valid API key or OAuth token; no scope needed. Needs a person’s own key or OAuth sign-in, not an admin key.
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
disabledTypes | array of string | No | Notification types turned off, e.g. agent_complete. A type that cannot be turned off is never stored. |
mutedRuleIds | array of string | No | Data rule ids whose "blocked" notices are muted. The first 500 ids of up to 120 characters are kept. |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
preferences | NotificationPreferences | — |
Errors 400, 401, 403 (PERSON_CREDENTIAL_REQUIRED). See Errors, pagination and limits.
Example request
curl -X PUT "https://vantage.intuidy.com/api/v1/notifications/preferences" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"disabledTypes":"<disabledTypes>"}'Read one of the caller's notifications
GET /notifications/{id}
The title, message and metadata of one notification. Another person's id is a 404.
Authorization: any valid API key or OAuth token; no scope needed. Needs a person’s own key or OAuth sign-in, not an admin key.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | — |
Response 200 OK
data is Notification:
| Field | Type | Description |
|---|---|---|
id | integer | — |
user_id | integer | — |
organization_id | integer | — |
type | string | The notification type, e.g. approval_required, agent_complete |
title | string | — |
message | string | — |
severity | "info" or "warning" or "critical" | — |
status | "unread" or "read" or "dismissed" | — |
metadata | object | Writer-specific keys; link is the same-origin path the notification opens |
created | string (date-time) | — |
Errors 401, 404. See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/notifications/<id>" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Follow the caller's own inbox as server-sent events
GET /notifications/events
The streaming twin of GET /notifications: hold this open and the
badge and list stay current without polling.
Frames (event: names): unread — { unread_count }, sent on open
and whenever the badge changes without a new notification (mark read,
dismiss, or a change made on another client); notification —
{ notification, unread_count } for each new notification, shaped as
GET /notifications lists it; ping every 15 seconds; reconnect
after four minutes; error with a code (TOO_MANY_STREAMS past four
streams per person on one server).
There is no replay: refresh the list once on open. The server
re-counts unread on every ping and sends unread if it moved, so a
missed change corrects itself within 15 seconds.
No scope, but the credential must be the person: an OAuth sign-in or
a user-scope key. A company key, or a connection bound to another
person's key, gets 403 PERSON_CREDENTIAL_REQUIRED.
Authorization: any valid API key or OAuth token; no scope needed. Needs a person’s own key or OAuth sign-in, not an admin key.
Response 200 OK
Errors 401, 403. See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/notifications/events" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Objects
Notification
| Field | Type | Description |
|---|---|---|
id | integer | — |
user_id | integer | — |
organization_id | integer | — |
type | string | The notification type, e.g. approval_required, agent_complete |
title | string | — |
message | string | — |
severity | "info" or "warning" or "critical" | — |
status | "unread" or "read" or "dismissed" | — |
metadata | object | Writer-specific keys; link is the same-origin path the notification opens |
created | string (date-time) | — |
NotificationPreferences
What one person chose not to be notified about.
| Field | Type | Description |
|---|---|---|
disabledTypes | array of string | Notification types turned off, e.g. agent_complete. A type that cannot be turned off is never stored. |
mutedRuleIds | array of string | Data rule ids whose "blocked" notices are muted. The first 500 ids of up to 120 characters are kept. |