Skip to content

Alerts

List Alerts

Page the org’s alert feed, newest occurrence first.

Private alerts (raised on a chat that is not shared) are visible only to their owner, mirroring the rule the recent-chats list already applies.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes
pagequeryintegerno
per_pagequeryintegerno
statusquery"open" | "all"noopen (default) or all

Responses

StatusDescriptionBody
200Successful ResponseAlertListResponse
422Validation ErrorHTTPValidationError

POST /api/orgs/{org_id}/alerts/{alert_id}/read

Section titled “POST /api/orgs/{org_id}/alerts/{alert_id}/read”

Mark Alert Read

Mark one alert read for the calling user only.

Does not resolve it: the alert stays in every member’s list, this one included, until somebody actually deals with it.

Parameters

NameInTypeRequiredDescription
alert_idpathstring (uuid)yes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAlertMutationResponse
422Validation ErrorHTTPValidationError

POST /api/orgs/{org_id}/alerts/{alert_id}/resolve

Section titled “POST /api/orgs/{org_id}/alerts/{alert_id}/resolve”

Resolve Alert

Close one alert for the whole org.

This is the affordance the old surface never had: an errored chat could only leave the list by being revived, so the count only ever climbed. Resolving is shared on purpose — the thing has been dealt with, so it should not still be demanding attention from four other people.

Idempotent: resolving an already-resolved alert keeps the original resolution and attribution rather than rewriting who dealt with it.

Parameters

NameInTypeRequiredDescription
alert_idpathstring (uuid)yes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAlertMutationResponse
422Validation ErrorHTTPValidationError

POST /api/orgs/{org_id}/alerts/{alert_id}/unread

Section titled “POST /api/orgs/{org_id}/alerts/{alert_id}/unread”

Mark Alert Unread

Undo :func:mark_alert_read for the calling user.

Parameters

NameInTypeRequiredDescription
alert_idpathstring (uuid)yes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAlertMutationResponse
422Validation ErrorHTTPValidationError

Mark All Alerts Read

Clear the calling user’s unread emphasis across the whole open feed.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAlertMutationResponse
422Validation ErrorHTTPValidationError

POST /api/orgs/{org_id}/alerts/resolve-all

Section titled “POST /api/orgs/{org_id}/alerts/resolve-all”

Resolve All Alerts

Close every open alert the caller can see, for the whole org.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAlertMutationResponse
422Validation ErrorHTTPValidationError