Skip to main content
GET
List project work orders

Authorizations

Authorization
string
header
required

Authenticate with an API access token in the Authorization header: Authorization: Bearer <token>. Create a token from the API Access Tokens page in Contractors Cloud, under Integrations.

Path Parameters

projectId
integer
required

The id of the project.

Query Parameters

page[number]
integer
default:1

The 1-indexed page number to retrieve.

Required range: x >= 1
page[size]
integer
default:30

The number of results per page (max 100).

Required range: 1 <= x <= 100
filter[id]
integer

Exact match on the work order's id.

filter[company_id]
integer

Exact match on the id of the company this work order belongs to.

filter[trade_id]
integer

Exact match on the id of the work order's trade.

filter[work_order_status_id]
integer

Exact match on the id of the work order's status, from the work-order-status reference data (see List available options).

filter[work_order_type_id]
integer

Exact match on the id of the work order's type.

filter[crew_id]
integer

Exact match on the id of the crew assigned to the work order.

filter[work_order_on_hold_id]
integer

Exact match on the id of the hold reason, for work orders on hold.

filter[contract_id]
integer

Exact match on the id of the contract the work order is associated with.

filter[created_by]
integer

Exact match on the id of the user who created the work order.

filter[completed_by]
integer

Exact match on the id of the user who completed the work order.

filter[managed_by]
integer

Exact match on the id of the user managing the work order.

filter[is_vendor_portal_inspected]
boolean

Limit to work orders that have (1) or haven't (0) been inspected through the vendor portal.

Matches work orders whose name or number contains the given text, or whose project's number, name, or address contains it.

filter[install_date_range]
string

Two comma-separated values, start,end. Matches work orders whose scheduled install window (install_starts_atโ€“install_ends_at) overlaps the given range.

filter[has_crew]
boolean

Limit to work orders that have (1) or don't have (0) a crew assigned.

filter[is_scheduled]
boolean

Limit to work orders that have (1) or don't have (0) both install_starts_at and install_ends_at set.

include
string

Comma-separated related resources to embed. Allowed: company, project, trade, crew, contract, manager, completer, creator, work_order_status, work_order_type, work_order_on_hold, current_status_interval.

sort
string

Field to sort by. Prefix with - for descending. Allowed: name, number, priority, created_at, install_starts_at, install_ends_at, status (by status name), trade, crew. When omitted, results are ordered by the work order's manual display position.

Response

A paginated list of project work orders.

data
object[]
current_page
integer

The 1-indexed page number of the current response.

Example:

1

first_page_url
string

The URL of the first page of results.

from
integer | null

The 1-indexed position of the first record in data for this page. Null when the page is empty.

Example:

1

last_page
integer

The number of the final page in the result set.

Example:

4

last_page_url
string

The URL of the last page of results.

Rendered pagination links (previous, numbered pages, next).

next_page_url
string | null

The URL of the next page, or null if this is the last page.

path
string

The endpoint URL without query parameters.

per_page
integer

The number of records requested per page.

Example:

30

prev_page_url
string | null

The URL of the previous page, or null if this is the first page.

to
integer | null

The 1-indexed position of the last record in data for this page. Null when the page is empty.

Example:

30

total
integer

The total number of records across all pages.

Example:

97