Retrieve Announcement
Beta/v1/messaging/announcements/{id}This endpoint is idempotent. Learn more
Retrieves a single announcement by ID, with the calling user's own read state.
Only announcements the caller can see are returned: one published to another account, one that has not reached its publish time, or one that has expired is reported as not found. An announcement the caller has dismissed stays retrievable even though it no longer appears in their feed.
idstringAnnouncement ID.
include[]optional arrayenumValues:resourceSub-objects to expand in the response. When omitted, sub-objects are returned as null.
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 Retrieve Announcement