List Announcements
Beta/v1/messaging/announcementsThis endpoint is idempotent. Learn more
Lists the announcements currently active for the caller, newest first.
The feed covers announcements broadcast to the account being acted in together with platform-wide announcements from OpenMRP. Announcements the caller has dismissed are left out, as are any that are scheduled for later or have already expired.
cursoroptional stringOpaque cursor token identifying where the page of results starts.
Use the cursor value embedded in a previous response's next_page_url or previous_page_url to fetch the adjacent page. Omit to start from the first page.
limitoptional integerMaximum number of results to return in a single page.
qoptional stringFree-text search term used to filter results.
Which fields are matched against the term varies by endpoint.
include[]optional arrayenumValues:resourceSub-objects to expand in the response. When omitted, sub-objects are returned as null.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of announcementResources in this page.
idstringAnnouncement ID.
objectstringenumValues:announcementResource type identifier.
scopestringenumValues:accountplatformWho the announcement reaches.
account: published to a single account and shown only to that account's users.platform: published by OpenMRP and shown to every user across all accounts.
categorystringenumValues:chat.messagechat.mentionchat.addedThe kind of event the announcement is about.
Announcements draw on the same categories as notifications, such as system.broadcast or order.updated, and the category is chosen by whoever publishes the announcement. The set is open-ended and may grow over time, so clients should tolerate values they do not recognize.
titlestringShort headline shown in the feed.
bodystringnullableSupporting detail shown beneath the title.
statusstringenumValues:unseenseenreadWhere the announcement is in its lifecycle for the calling user.
unseen: not yet surfaced to the caller.seen: surfaced in the caller's feed but not opened.read: explicitly opened by the caller.dismissed: removed from the caller's feed.
The status is derived from the caller's own seen, read, and dismissed timestamps and only ever moves forward, so the same announcement can show a different status for each user in the account.
prioritystringenumValues:lownormalhighHow prominently the announcement should be surfaced, from low through urgent.
resourceentityExpandablenullableThe resource the announcement is about, which the client can link to.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
publish_atstring (date-time)When the announcement becomes visible in the feed.
An announcement scheduled for the future is not returned by the announcement endpoints until this time passes.
expires_atstring (date-time)nullableWhen the announcement stops being shown.
Once it expires the announcement leaves every user's feed and can no longer be retrieved; an announcement with no expiry stays until each user dismisses it.
seen_atstring (date-time)nullableWhen the calling user first saw the announcement.
read_atstring (date-time)nullableWhen the calling user opened the announcement.
dismissed_atstring (date-time)nullableWhen the calling user dismissed the announcement.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last update timestamp.
Responses
Successful response for List Announcements