Email a vendor with attached files
Sends an email to a vendor and uploads its attachments in the same request, as multipart/form-data.
Authorization
AuthorizationstringrequiredPath parameters
vendorIdstringrequiredThe vendor to email.
Body
multipart/form-data
Form parts. attachments may repeat, once per file.
subjectstringrequiredThe subject line.
bodystringrequiredThe body of the email.
attachmentsfile[]The files to attach. Repeat the part once per file.
Response
200 · The email that was sent.
idstringThe email.
subjectstringThe subject line.
bodystringThe body as it was sent.
sentstring · date-timeWhen it was sent.
templateenum<string>Which MagicDoor template wrapped the body. Emails sent through this API use companyGeneric.
targetsobject[]Everyone it went to, with the record behind each address.
filesFile[]The attachments that were sent with it.
propertyManagerobjectThe property manager who sent it. Absent when MagicDoor sent it automatically.
metadataobjectFree-form key/value data MagicDoor stored with the email.
401 · The access token is missing, expired, or not valid.
404 · No vendor with that id belongs to your company.
422 · The vendor record is deactivated, the vendor has no usable email address, or the company has all outbound communications switched off.
The email leaves immediately, to the vendor's email address. There is no draft step and no way to recall it.
This endpoint and the JSON one share a URL. MagicDoor picks between them on the request's Content-Type.