Mark an inbox entry read
const url = 'https://example.com/api/v1/auth/me/notifications/example:markRead';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/auth/me/notifications/example:markReadMarks one of the caller’s own inbox entries read (one already read keeps its first read time). An entry that is not the caller’s, or about a component outside their component read scope, is a non-disclosing 404. Audited. Gated by notification:read.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The notification’s uuid
The notification’s uuid
Responses
Section titled “ Responses ”OK
One message about an alarm sent on one channel, such as a webhook, an email or the inbox.
object
A URL to the JSON Schema for this object.
The action rule that queued it, by name (kept after the rule is deleted)
The alarm it is about, by uuid
Attempts made; the 8th failure is final
How it travels: a webhook post, a person’s console inbox (delivered by its own commit), or email
The alarm’s component, by name
The component’s uuid
When it was queued: the transition’s own moment
The notification’s uuid, the Idempotency-Key its receiver sees
Why the last attempt failed, or why a suppressed one was held back; never the URL or a credential
The receiver’s HTTP status on the last attempt
When the tick next tries it, while queued
The notification type that rendered it, by name
When its recipient read it, for an inbox entry
The person it is addressed to, by username: shown to that person and to holders of user:read:admin, withheld from everyone else (see recipient_withheld)
True when the row is addressed to a person whose name the caller may not see
Queued: on its way (its next attempt at next_attempt_at); sent: the receiver answered 2xx; failed: its last attempt failed, or it was refused before one; suppressed: written but never sent, because its alarm was snoozed (the reason in last_error)
The rendered subject
The target it goes to, by name: a webhook, or the group or person target it reached its recipient through
The rendered text
The alarm edge it is about
Example
{ "$schema": "/api/v1/schemas/NotificationBody.json", "channel": "webhook", "status": "queued", "transition": "raised"}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{ "$schema": "/api/v1/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "about:blank"}