Skip to content

Mark an inbox entry read

POST
/auth/me/notifications/{id}:markRead
curl --request POST \
--url https://example.com/api/v1/auth/me/notifications/example:markRead

Marks 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.

id
required

The notification’s uuid

string

The notification’s uuid

OK

Media type application/json

One message about an alarm sent on one channel, such as a webhook, an email or the inbox.

object
$schema

A URL to the JSON Schema for this object.

string format: uri
action_rule
required

The action rule that queued it, by name (kept after the rule is deleted)

string
alarm
required

The alarm it is about, by uuid

string
attempts
required

Attempts made; the 8th failure is final

integer format: int64
channel
required

How it travels: a webhook post, a person’s console inbox (delivered by its own commit), or email

string
Allowed values: webhook inbox email
component
required

The alarm’s component, by name

string
component_id
required

The component’s uuid

string
created_at
required

When it was queued: the transition’s own moment

string format: date-time
id
required

The notification’s uuid, the Idempotency-Key its receiver sees

string
last_error

Why the last attempt failed, or why a suppressed one was held back; never the URL or a credential

string
last_status

The receiver’s HTTP status on the last attempt

integer format: int64
next_attempt_at

When the tick next tries it, while queued

string format: date-time
notification_type
required

The notification type that rendered it, by name

string
read_at

When its recipient read it, for an inbox entry

string format: date-time
recipient

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)

string
recipient_withheld

True when the row is addressed to a person whose name the caller may not see

boolean
sent_at
string format: date-time
status
required

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)

string
Allowed values: queued sent failed suppressed
subject
required

The rendered subject

string
target
required

The target it goes to, by name: a webhook, or the group or person target it reached its recipient through

string
text
required

The rendered text

string
transition
required

The alarm edge it is about

string
Allowed values: raised cleared

Example

{
"$schema": "/api/v1/schemas/NotificationBody.json",
"channel": "webhook",
"status": "queued",
"transition": "raised"
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

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"
}