Emails

List a vendor's emails

Returns a page of the emails your company has sent to a vendor, newest first.

GET
https://api.portal.magicdoor.com/company-app/emails/vendors/{vendorId}

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

vendorIdstringrequired

The vendor whose emails you want.

example: 1825337204880932864

Query parameters

pageinteger

Which page to return. The first page is 1.

default: 1example: 1
pageSizeinteger

How many items to return per page. Between 1 and 100.

default: 50example: 25

Response

200 · One page of emails.

itemsEmailSummary[]

The emails, newest page first.

currentPageinteger

The page number that was returned.

totalPagesinteger

How many pages exist at this page size.

pageSizeinteger

How many items a page holds.

totalCountinteger

How many items match in total, across every page.

tenantsTenant[]

The tenants referenced by items[].targets.

leasesLease[]

The leases referenced by items[].targets.

ownersOwner[]

The owners referenced by items[].targets.

vendorsVendor[]

The vendors referenced by items[].targets.

propertyManagersPropertyManager[]

The property managers referenced by items[].propertyManagerId.

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

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