API — General Structure and Principles
Conventions across the Core Inspection API: response casing, status codes, IDs in URLs, PUT and PATCH behaviour, paging, and change tracking with modifiedDt.
Last updated
These conventions apply across the Core Inspection API. Paths are relative to https://api4.coreinspection.com. Endpoint-by-endpoint detail is on Specific Methods.
Requests
- Request bodies are JSON. Property names in bodies are case-insensitive.
- Send dates in ISO 8601 format, such as
2025-06-01or2025-06-01T00:00:00. - Dates that Core sets, such as
ModifiedDt, are UTC but come back without aZor offset. Treat them as UTC.
Responses
Property names in responses are camelCase or PascalCase, depending on the endpoint:
| Casing | Content-Type | Endpoints |
|---|---|---|
| camelCase | application/json | The list calls GET /Clients, /Equipment, /Equipment/counts/byClientLocation, /Inspections, /ServiceRecords and /Jobs, plus /Jobs/{id}/inspections, /Jobs/{id}/parts and /Jobs/{id}/servicerecords |
| PascalCase | text/plain (the body is still JSON) | Everything else: every single-record GET, every PUT, PATCH and POST response, and the lists for Branches, Parts, EquipmentTypes, Users, UserGroups, InspectionIntervals and JobStatuses |
The other API pages show field names in PascalCase. To handle both forms:
- Parse the body as JSON whatever the
Content-Typeheader says. - Match property names case-insensitively.
- Leave the
Acceptheader off, or send*/*. WithAccept: application/json, thetext/plainresponses come back wrapped in an extra JSON string.
Most list calls include inactive records, so check IsActive.
Status codes
| Code | Meaning |
|---|---|
| 200 | Success. A single-record GET with an ID that doesn't exist also returns 200, with the body null. |
| 400 | The request was rejected: missing or invalid values, or a record that wasn't found on PATCH. The body is usually a plain-text message saying what's wrong. Malformed JSON or a wrong value type (text in a GUID field, for example) returns a JSON "problem details" body instead. |
| 401 | Missing or wrong credentials, or a login that is inactive, locked out, or can't use the API. Empty body. |
| 403 | The login is valid but can't use this endpoint. For example, a customer portal login calling an admin endpoint, or an admin login calling /CustomerEquipment. |
| 404 | Unknown route, a barcode search with no match, or a certificate that doesn't exist. |
| 409 | POST /Users with an email that already has a login. |
| 500 | Unexpected server error. |
| 502 / 503 | The certificate service failed or was busy. Retry later. |
IDs in URLs
| Endpoint | {id} can be |
|---|---|
| Clients, ClientLocations, Equipment, Parts, Branches, Jobs | The Core GUID or your Importuniqueid (GET and PATCH) |
| Inspections, ServiceRecords | GUID only |
| Users | GUID on GET. GUID or email on PATCH. |
| EquipmentTypes | The integer EquipmentTypeId |
GET
GET returns either one record or a collection. Some collections return a reduced set of fields to keep them fast (equipment types, for example). Object Definitions lists each reduced set.
GET /EquipmentTypes
GET /EquipmentTypes/999
There is no list call for client locations. They come inside GET /Clients/{id}.
PUT (create or update)
The PUT body is a single JSON object. Don't wrap it in an array.
If your Importuniqueid matches a record in your site, PUT updates that record. Otherwise it creates a new one. This works for Clients, ClientLocations, Equipment, Parts, Jobs and Inspections. On Equipment, if you leave Importuniqueid out on create, Core uses the SerialNumber.
An update replaces the whole record. Any field you leave out is cleared, including fields Core manages, such as a client's Xero link. To change a few fields, use PATCH. If you do update with PUT, start from a GET of the record and send every field back.
PUT always sets IsActive to true, so re-running an import reactivates records you'd deactivated.
Core sets record IDs, ModifiedDt and ModifiedBy itself and ignores what you send. The response is the saved record.
PUT /Clients
Request body example:
{
"Name": "client1",
"Importuniqueid": "CUST-0001",
"ContactFirstName": "site manager"
}
PATCH
PATCH changes specific fields on an existing record.
- The body is a JSON array of
{ "path": "...", "value": ... }objects.opis optional. Leave it out or use"replace".moveandcopyaren't supported and return400. Several changes can go in one call. pathis the field name with no leading slash."ContactFirstName"works, and"/ContactFirstName"returns400 Field /ContactFirstName cannot be located.Field names are case-insensitive.- Read-only fields return
400 Field X cannot be edited. - Fields that point at other records (a client, location, branch, equipment type or template) must point at records in your own site, otherwise you get a
400naming the field. - Some fields take arrays or have extra rules: Equipment
EquipmentDetails, InspectionInspectionComponentResults, JobJobWorkersandExtraFields, ClientShowActiveJobInspections, ClientLocationSalesPersonEmail, and UserUserGroupId/UserGroupName. Specific Methods covers each one. - The response is the updated record.
This example updates the contact first name on a client:
PATCH /Clients/{xxxx-xxxxxxx-xxxxxxxxx-xxxx}
Request body example:
[{
"path": "ContactFirstName",
"value": "new site manager"
}]
Pagination
GET /Jobs, /Equipment, /Inspections and /ServiceRecords take a pageNo parameter. Pages start at 1, and leaving pageNo out returns page 1. The page size is fixed at 200 records; there is no page-size parameter.
GET /Inspections?modifiedDt=2025-06-01T00:00:00&pageNo=2
Pagination response headers
GET /Equipment, /Inspections and /ServiceRecords return these headers. GET /Jobs doesn't.
| Header | Description |
|---|---|
X-Total-Count | The total number of matching records across all pages. |
X-Total-Pages | The total number of pages (at 200 records per page). |
The response body stays a plain JSON array, so the headers tell you how many pages to request without changing how you parse the data.
Getting every record
Keep requesting the next page until one returns fewer than 200 records, or stop at X-Total-Pages.
Equipment, Inspections and ServiceRecords are sorted by modified time, so a record that changes while you page through can move to a different page. For a full sync, note the UTC time you started, page through everything, then run one modifiedDt pull from that start time to catch anything that moved.
Reports
GET /Reports pages differently. It takes pageNumber (1 or more) and pageSize (1 to 1000), and they only apply when you send both. Without them the report returns all its rows.
GET /Reports?reportName=All Inspections by Month&month=9&year=2025&pageSize=50&pageNumber=1
Change tracking (modifiedDt)
modifiedDt returns records modified on or after the date you pass, compared in UTC. It's how you sync changes since your last poll.
Optional on Clients, Branches, EquipmentTypes, Parts, Equipment and Jobs, with two conditions:
GET /EquipmentneedslocationIdormodifiedDt, and returns400if neither is sent.GET /Jobsalways needsstatusId, so poll once for each status you care about.
Required on Inspections and ServiceRecords.
The Customer API's /CustomerEquipment uses ModifiedDate instead, and it's required there (see Customer API Calls).
Store the UTC time each poll started and pass that next time, rather than the time it finished. Records that change during a poll then turn up in the next one.
Delete
There is no delete method as all data is system retained, but using the PATCH command to set IsActive to false achieves the same result.
- This works on Clients, ClientLocations, Equipment, Parts, Jobs, Inspections, Branches and Users.
- EquipmentTypes, ServiceRecords, InspectionIntervals, JobStatuses and UserGroups have no PATCH, so they can't be deactivated through the API.
- A later PUT with the same
Importuniqueidreactivates the record.