Announcements

Get an announcement

Returns one announcement with its full text, its attachments, and every recipient it was addressed to.

GET
https://api.portal.magicdoor.com/company-app/announcements/{announcementId}

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

announcementIdstringrequired

The announcement to fetch.

example: 1831291846747709440

Response

200 · The announcement.

idstring

The announcement.

companyIdstring

The company that sent it.

subjectstring

The subject line used for the email. Up to 250 characters.

chatMessagestring

The text posted into each recipient's chat and sent as an SMS.

emailMessagestring

The body of the email that was sent.

sendTextboolean

Whether the chat message was also sent as an SMS.

sentAtstring · date-time

When the announcement went out, or is due to go out if it is still scheduled.

statusenum<string>

pending means it is scheduled and has not gone out yet. partiallyFailed means some recipients got it and some did not.

pendingsentpartiallyFailedfailed
failureReasonstring

How many recipients failed, when any did. Absent on a clean send.

chatAttachmentsFile[]

Files attached to the chat message and the SMS.

emailAttachmentsFile[]

Files attached to the email.

targetsobject

Who it went to.

401 · The access token is missing, expired, or not valid.

404 · No announcement with that id belongs to your company.

targets groups the recipients: leases and their tenants hang under portfolio, then property, then unit; owners, vendors, and tenants addressed directly sit at the top level.

canDeliver and blockReasons on each recipient are evaluated when you preview a send. On an announcement that has already gone out they are not re-evaluated, so canDeliver reads true with no reasons.