> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.coperniq.io/api-reference/notes/create-work-order-note/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.coperniq.io/_mcp/server. # Create Work Order Note POST https://api.coperniq.io/v1/work-orders/{work_order_id}/notes Content-Type: application/json Add a note (comment) to a specific work order. Notes are stored as internal comments linked to the work order. They trigger the same notification and feed pipeline as comments created in the Coperniq UI. Reference: https://docs.coperniq.io/api-reference/notes/create-work-order-note ## Authentication - `x-api-key` header (required) — API Key authentication via header ## Request ### Path parameters - `work_order_id` (string, required) ### Body (application/json) This endpoint expects an object. - `body` (string, required) — Note text content (1–5000 characters). Mention (@) tokens are supported in the body string using the format `[Display Name|~id:USER_ID]` (users), `[Team Name|~team:TEAM_ID]` (teams, notifies all members), or `[Name|~agent:slug]` (AI agents). The display-name portion is cosmetic; the trailing token drives the mention. A valid mention creates a feed notification for the mentioned recipient(s). The author is excluded from their own mention notifications, so mention a different user than the one the API key authenticates as to test. - `fileIds` (list of integer, optional) — Optional array of file IDs (previously uploaded) to attach to the note. - `replyToId` (integer, optional) — ID of the note to reply to. Creates a threaded reply on the parent note. ## Response ### 201 Note created successfully - `id` (integer, required) — Note identifier - `note` (string, required) — Note text content - `createdAt` (string, required) — ISO 8601 creation timestamp - `updatedAt` (string, required) — ISO 8601 last-updated timestamp ## Errors ### 400 Bad Request Error Invalid request - `message` (string, optional) - `code` (enum, optional) - Allowed values: `RATE_LIMIT_EXCEEDED` - `field` (string, optional) — Field that caused the validation error (if applicable) ### 401 Unauthorized Error Authentication failed - `message` (string, optional) - `code` (enum, optional) - Allowed values: `RATE_LIMIT_EXCEEDED` ### 403 Forbidden Error API key valid but does not have access to this resource - `message` (string, optional) - `code` (enum, optional) - Allowed values: `RATE_LIMIT_EXCEEDED` ### 404 Not Found Error Resource not found - `message` (string, optional) - `code` (enum, optional) - Allowed values: `RATE_LIMIT_EXCEEDED` ### 429 Too Many Requests Error Rate limit exceeded - `message` (string, optional) - `code` (enum, optional) - Allowed values: `RATE_LIMIT_EXCEEDED` ## Examples **Request** ```json { "body": "Inspection completed. Panel alignment verified. [Nicolaus Copernicus|~id:99001]" } ``` **Response** ```json { "id": 12345, "note": "Inspection completed. Panel alignment verified.", "createdAt": "2026-04-15T12:00:00.000Z", "updatedAt": "2026-04-15T12:00:00.000Z" } ``` **SDK Code** ```python import requests url = "https://api.coperniq.io/v1/work-orders/work_order_id/notes" payload = { "body": "Inspection completed. Panel alignment verified. [Nicolaus Copernicus|~id:99001]" } headers = { "x-api-key": "", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.coperniq.io/v1/work-orders/work_order_id/notes'; const options = { method: 'POST', headers: {'x-api-key': '', 'Content-Type': 'application/json'}, body: '{"body":"Inspection completed. Panel alignment verified. [Nicolaus Copernicus|~id:99001]"}' }; 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" "strings" "net/http" "io" ) func main() { url := "https://api.coperniq.io/v1/work-orders/work_order_id/notes" payload := strings.NewReader("{\n \"body\": \"Inspection completed. Panel alignment verified. [Nicolaus Copernicus|~id:99001]\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("x-api-key", "") req.Header.Add("Content-Type", "application/json") 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/work_order_id/notes") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["x-api-key"] = '' request["Content-Type"] = 'application/json' request.body = "{\n \"body\": \"Inspection completed. Panel alignment verified. [Nicolaus Copernicus|~id:99001]\"\n}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.coperniq.io/v1/work-orders/work_order_id/notes") .header("x-api-key", "") .header("Content-Type", "application/json") .body("{\n \"body\": \"Inspection completed. Panel alignment verified. [Nicolaus Copernicus|~id:99001]\"\n}") .asString(); ``` ```php request('POST', 'https://api.coperniq.io/v1/work-orders/work_order_id/notes', [ 'body' => '{ "body": "Inspection completed. Panel alignment verified. [Nicolaus Copernicus|~id:99001]" }', 'headers' => [ 'Content-Type' => 'application/json', 'x-api-key' => '', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.coperniq.io/v1/work-orders/work_order_id/notes"); var request = new RestRequest(Method.POST); request.AddHeader("x-api-key", ""); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"body\": \"Inspection completed. Panel alignment verified. [Nicolaus Copernicus|~id:99001]\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "x-api-key": "", "Content-Type": "application/json" ] let parameters = ["body": "Inspection completed. Panel alignment verified. [Nicolaus Copernicus|~id:99001]"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.coperniq.io/v1/work-orders/work_order_id/notes")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data 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.