Work orders

List work orders

Returns a page of the company's work orders — the scheduled jobs, as opposed to the maintenance requests that ask for them. Every filter below is optional and they combine. Requires the work_orders:read permission.

GET
https://services.magicdoor.com/maintenance/company-portal/work-orders

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.

Query parameters

pageinteger

Which page to return. Counting starts at 1.

default: 1
pageSizeinteger

How many work orders to return per page. Between 1 and 100.

default: 50
portfolioIdsstring[]

Only work orders in these portfolios. Repeat the parameter for more than one.

propertyIdsstring[]

Only work orders on these properties.

unitIdsstring[]

Only work orders on these units.

leaseIdsstring[]

Only work orders tied to these leases.

vendorIdsstring[]

Only work orders assigned to these vendors.

maintenanceRequestIdsstring[]

Only work orders raised from these maintenance requests.

recurringWorkOrderIdsstring[]

Only work orders raised by these recurring work orders.

statusenum<string>[]

Only work orders in these states. Repeat the parameter for more than one.

closedpendinginProgresscompletedcancelled
referencestring

Only the work order with this reference number.

searchTextstring

Free-text search across the work order.

activeboolean

true returns only live work orders; false only deactivated ones.

hasGroupChatboolean

true returns only work orders that already have a group chat.

hasVendorboolean

true returns only work orders with a vendor assigned; false only those still unassigned.

isScheduledboolean

true returns only work orders with at least one visit booked; false only those with none.

closedAfterstring · date-time

Only work orders closed on or after this moment.

scheduledTime.startstring · date-time

Only work orders with a visit booked on or after this moment.

scheduledTime.endstring · date-time

Only work orders with a visit booked on or before this moment.

Response

200 · One page of work orders. This is the short row shape — call [Get a work order](api-reference/work-orders/get-work-order) for the description, the files and the bills.

itemsobject[]required

The work orders on this page.

totalCountintegerrequired

How many work orders match in total.

totalPagesintegerrequired

How many pages there are at this page size.

pageintegerrequired

The page that was returned. Counting starts at 1.

pageSizeintegerrequired

How many work orders were asked for per page.

401 · The request carried no valid access token.

403 · The token is not a property manager token, or it lacks the `work_orders:read` permission.