> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.coperniq.io/api-reference/work-orders/list-work-orders/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.coperniq.io/_mcp/server. # List Work Orders GET https://api.coperniq.io/v1/work-orders Retrieve a paginated list of work orders across all projects. Supports: - Pagination (`page_size`, `page`) - Date filtering (`updated_after`, `updated_before`) - Sorting (`order_by`) Reference: https://docs.coperniq.io/api-reference/work-orders/list-work-orders ## Authentication - `x-api-key` header (required) — API Key authentication via header ## Request ### Query parameters - `page_size` (integer, optional, default: 20) — Number of items per page (max 100) - `page` (integer, optional, default: 1) — Page number (1-based) - `updated_after` (WorkOrdersGetParametersUpdatedAfter, optional) — Filter items updated after this timestamp (ISO 8601). Also matches records whose custom property values changed within the window. - `updated_before` (WorkOrdersGetParametersUpdatedBefore, optional) — Filter items updated before this timestamp (ISO 8601). Also matches records whose custom property values changed within the window. - `order_by` (enum, optional, default: asc) — Sort order for results - Allowed values: `asc`, `desc` ## Response ### 200 List of work orders - `list of WorkOrder` ## Errors ### 401 Unauthorized Error Authentication failed - `message` (string, optional) - `code` (enum, optional) - Allowed values: `UNAUTHORIZED` ## Types ### WorkOrdersGetParametersUpdatedAfter ### WorkOrdersGetParametersUpdatedBefore ### WorkOrder - `id` (integer, optional) — Work order identifier - `uid` (integer, optional) — Unique work order number within the project - `templateId` (integer, optional) — Template identifier for the work order - `createdAt` (string, optional) — Creation timestamp - `updatedAt` (string, optional) — Last update timestamp - `title` (string, optional) — Work order title - `description` (string, optional) — Work order description - `priority` (integer, optional) — Priority level - `startDate` (string, optional, nullable) — Scheduled start date - `startDateAllDay` (boolean, optional) — Whether the start date is an all-day event - `endDate` (string, optional, nullable) — Scheduled end date - `endDateAllDay` (boolean, optional) — Whether the end date is an all-day event - `completedAt` (string, optional, nullable) — Timestamp when the work order was completed - `isActive` (boolean, optional) — Whether the work order is active (not archived) - `isCompleted` (boolean, optional) — Whether the work order is completed - `isField` (boolean, optional) — Whether the work order is a field task - `labels` (list of WorkOrderLabelsItems, optional) — Labels associated with the work order - `project` (WorkOrderProject, optional) — Project associated with the work order - `assignee` (WorkOrderAssignee, optional, nullable) — User assigned to the work order - `collaborators` (list of UserSummary, optional) — Additional users collaborating on the work order - `visits` (WorkOrderVisits, optional) — Site visits associated with the work order (legacy shape) - `statuses` (list of WorkOrderStatusesItems, optional) — History of status changes and time spent in each status - `status` (WorkOrderStatus, optional, nullable) — Current status of the work order - `checklist` (list of ChecklistItem, optional) — Checklist items for the work order - `workItems` (list of WorkOrderWorkItem, optional) — Work items linked to this work order via Blueprint workflow. Includes forms (`FORM`) and file requests (`FILE_REQUEST`). Returns [] when none are linked. - `lineItems` (list of WorkOrderLineItem, optional) — Present only for service work orders on an **account** (parent project type `ACCOUNT`), and only when at least one line item exists. Amounts are in dollars with cent precision. Replace via `PUT /work-orders/{work_order_id}/line-items`. Omitted from the response when not applicable or when there are no line items. - `isArchived` (boolean, optional, deprecated) — Deprecated: use `isActive` instead. Kept for backward compatibility. ### WorkOrderLabelsItems - `label` (WorkOrderLabelsItemsLabel, optional) ### WorkOrderProject Project associated with the work order - `id` (integer, optional) — Project identifier - `uid` (integer, optional) — Project number - `title` (string, optional) — Project title - `address` (list of string, optional) — Project address - `stage` (string, optional, nullable) — Project stage (if available) ### WorkOrderAssignee User assigned to the work order - `id` (integer, optional) — User identifier - `firstName` (string, optional) — User's first name - `lastName` (string, optional) — User's last name - `email` (string, optional) — User's email address ### UserSummary Minimal user representation used in responses - `id` (integer, optional) - `firstName` (string, optional, nullable) - `lastName` (string, optional, nullable) - `email` (string, optional, nullable) - `avatarUrl` (string, optional, nullable) ### WorkOrderVisits Site visits associated with the work order (legacy shape) - `visits` (list of Visit, optional) — List of visits ### WorkOrderStatusesItems - `count` (string, optional) — Number of times this status was entered - `endedAt` (string, optional) — When the status ended - `spentTime` (double, optional) — Time spent in this status in seconds - `startedAt` (string, optional) — When the status started - `status` (string, optional) — Status identifier ### WorkOrderStatus Current status of the work order - `id` (string, optional, nullable) — Status identifier - `label` (string, optional, nullable) — Human readable status label ### ChecklistItem - `id` (integer, optional) — Checklist item identifier - `detail` (string, optional) — Checklist task detail - `isCompleted` (boolean, optional) — Whether the checklist item is completed - `completedAt` (string, optional, nullable) — Completion timestamp, if completed ### WorkOrderWorkItem - `type`: `FORM` (FORM) - `id` (integer, required) — Form instance ID - `completedAt` (string, optional, nullable) - `dueDate` (string, optional, nullable) — Due date ISO string - `isCompleted` (boolean, optional) - `name` (string, optional, nullable) — Form name - `status` (string, optional, nullable) — Form status (e.g. OPEN, IN_PROGRESS, COMPLETED) - `templateId` (integer, optional, nullable) — Template the form was created from - `type`: `FILE_REQUEST` (FILE_REQUEST) - `id` (integer, required) — Action instance ID - `name` (string, optional, nullable) — File request title - `status` (string, optional, nullable) — Element instance status (e.g. OPEN, IN_PROGRESS, COMPLETED) ### WorkOrderLineItem - `id` (integer, optional) - `quantity` (integer, optional) - `description` (string, optional, nullable) - `unitCost` (double, optional) - `totalCost` (double, optional, nullable) - `unitPrice` (double, optional) - `totalPrice` (double, optional, nullable) - `sectionName` (string, optional, nullable) - `catalogItem` (WorkOrderLineItemCatalogItem, optional, nullable) ### WorkOrderLabelsItemsLabel - `id` (integer, optional) — Label identifier - `label` (string, optional) — Label name - `color` (string, optional) — Label color (hex code) ### Visit Only applicable on field work orders. - `id` (integer, optional) — Visit identifier - `description` (string, optional, nullable) - `startDate` (string, optional, nullable) - `endDate` (string, optional, nullable) - `startDateAllDay` (boolean, optional, default: false) - `endDateAllDay` (boolean, optional, default: false) - `isCompleted` (boolean, optional) ### WorkOrderLineItemCatalogItem - `id` (integer, optional) - `name` (string, optional) - `sku` (string, optional, nullable) - `type` (string, optional, nullable) - `manufacturer` (string, optional, nullable) ## Examples **Response** ```json [ { "id": 1, "uid": 1, "templateId": 1, "createdAt": "2024-01-15T09:30:00Z", "updatedAt": "2024-01-15T09:30:00Z", "title": "string", "description": "string", "priority": 1, "startDate": "2024-01-15T09:30:00Z", "startDateAllDay": true, "endDate": "2024-01-15T09:30:00Z", "endDateAllDay": true, "completedAt": "2024-01-15T09:30:00Z", "isActive": true, "isCompleted": true, "isField": true, "labels": [ { "label": { "id": 1, "label": "string", "color": "string" } } ], "project": { "id": 1, "uid": 1, "title": "string", "address": [ "string" ], "stage": "string" }, "assignee": { "id": 1, "firstName": "string", "lastName": "string", "email": "string" }, "collaborators": [ { "id": 1, "firstName": "string", "lastName": "string", "email": "string", "avatarUrl": "string" } ], "visits": { "visits": [ { "id": 1, "description": "string", "startDate": "2024-01-15T09:30:00Z", "endDate": "2024-01-15T09:30:00Z", "startDateAllDay": false, "endDateAllDay": false, "isCompleted": true } ] }, "statuses": [ { "count": "string", "endedAt": "2024-01-15T09:30:00Z", "spentTime": 1.1, "startedAt": "2024-01-15T09:30:00Z", "status": "string" } ], "status": { "id": "string", "label": "string" }, "checklist": [ { "id": 1, "detail": "string", "isCompleted": true, "completedAt": "2024-01-15T09:30:00Z" } ], "workItems": [ { "type": "FILE_REQUEST", "id": 2556, "name": "Shade Report", "status": "IN_PROGRESS" } ], "lineItems": [ { "id": 1, "quantity": 1, "description": "string", "unitCost": 1.1, "totalCost": 1.1, "unitPrice": 1.1, "totalPrice": 1.1, "sectionName": "string", "catalogItem": { "id": 1, "name": "string", "sku": "string", "type": "string", "manufacturer": "string" } } ], "isArchived": true } ] ``` **SDK Code** ```python import requests url = "https://api.coperniq.io/v1/work-orders" headers = {"x-api-key": ""} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.coperniq.io/v1/work-orders'; const options = {method: 'GET', headers: {'x-api-key': ''}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.coperniq.io/v1/work-orders" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-api-key", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.coperniq.io/v1/work-orders") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["x-api-key"] = '' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.coperniq.io/v1/work-orders") .header("x-api-key", "") .asString(); ``` ```php request('GET', 'https://api.coperniq.io/v1/work-orders', [ 'headers' => [ 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.coperniq.io/v1/work-orders"); var request = new RestRequest(Method.GET); request.AddHeader("x-api-key", ""); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["x-api-key": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api.coperniq.io/v1/work-orders")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` > Official Coperniq API documentation. Build integrations for solar and construction project management — projects, opportunities, work orders, invoices, webhooks, and more.