LabDesk

LabDesk API guide

LabDesk turns the API on for each organization individually. Until an administrator asks LabDesk support to enable it, every call answers 403 feature_disabled.

Quick start
  1. Create a token under Account → Integration Tokens. The entry appears once LabDesk has enabled the API for your organization, for people holding your organization's Administrator role. Choose Read only or Read & write and an expiry -- the token is shown once.
  2. Save it in your shell: export TOKEN="ldk_YOUR_TOKEN" (replace with your own token). Never put a token in a URL -- a URL-exposed token must be treated as leaked, and revoked.
  3. Make your first call:
    curl \
      -H "Authorization: Bearer $TOKEN" \
      "https://labdeskinc.com/api/v1/equipment?barcode=EQ-1042"

Machine-readable description: OpenAPI description (JSON)

Endpoints

Every id, barcode, name and date in these examples is made up -- replace them with your own. Change the booking dates too: a booking dated inside a real service contract's period uses up one of that contract's visits, even when the date is in the past.

Equipment

List equipment

GET /api/v1/equipment

Token scope needed: Read only

Lists your organization's equipment, in id order. The barcode filter finds one asset; every filter narrows the list, and several filters together all apply.

FilterExampleMeaning
barcode EQ-1042 Exact match, case-insensitive.
serial_number SN-1042 Exact match, case-sensitive.
status Active Status name, exact match, case-insensitive.
status_id 9001 Status id, exact match.
department_id 8001 Department id, exact match.
location_id 7001 Location id, exact match.
updated_since 2026-01-01T00:00:00Z Only assets updated at or after this instant.
q Docs example Assistant keys only: a case-insensitive partial match on nickname, barcode or serial number, up to 200 characters; % and _ match literally. Other tokens ignore it.
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment?barcode=EQ-1042"

200 response (trimmed to the most useful fields -- see the OpenAPI description for every field) :

{
  "data": [
    {
      "id": 1042,
      "barcode": "EQ-1042",
      "serial_number": "SN-1042",
      "nickname": "Docs example asset",
      "status": {
        "id": 9001,
        "name": "Active"
      },
      "department": {
        "id": 8001,
        "name": "Docs Department"
      },
      "location": {
        "id": 7001,
        "name": "Docs Lab"
      },
      "next_service_date": "2026-01-01",
      "next_calibration_due": "2026-01-10",
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Get one piece of equipment

GET /api/v1/equipment/{id}

Token scope needed: Read only

Returns one asset of your organization by the id GET /api/v1/equipment returned for it.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment/1042"

200 response (trimmed to the most useful fields -- see the OpenAPI description for every field) :

{
  "data": {
    "id": 1042,
    "barcode": "EQ-1042",
    "serial_number": "SN-1042",
    "nickname": "Docs example asset",
    "status": {
      "id": 9001,
      "name": "Active"
    },
    "department": {
      "id": 8001,
      "name": "Docs Department"
    },
    "location": {
      "id": 7001,
      "name": "Docs Lab"
    },
    "next_service_date": "2026-01-01",
    "next_calibration_due": "2026-01-10",
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

List equipment due for service

GET /api/v1/equipment/due_for_service

Token scope needed: Read only

Lists your organization's equipment whose next scheduled service falls within the given window, in id order; meta.window names the window applied.

FilterExampleMeaning
window overdue overdue (default), due_soon (the next 30 days), or upcoming (31-90 days out).
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment/due_for_service?window=overdue"

200 response :

{
  "data": [
    {
      "id": 1042,
      "barcode": "EQ-1042",
      "serial_number": "SN-1042",
      "nickname": "Docs example asset",
      "status": {
        "id": 9001,
        "name": "Active"
      },
      "department": {
        "id": 8001,
        "name": "Docs Department"
      },
      "location": {
        "id": 7001,
        "name": "Docs Lab"
      },
      "next_service_date": "2026-01-01",
      "next_calibration_due": "2026-01-10",
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1,
    "window": "overdue"
  }
}

List equipment due for calibration

GET /api/v1/equipment/due_for_calibration

Token scope needed: Read only

Lists your organization's equipment whose next scheduled calibration falls within the given window, in id order; meta.window names the window applied.

FilterExampleMeaning
window overdue overdue (default), due_soon (the next 30 days), or upcoming (31-90 days out).
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment/due_for_calibration?window=overdue"

200 response :

{
  "data": [
    {
      "id": 1042,
      "barcode": "EQ-1042",
      "serial_number": "SN-1042",
      "nickname": "Docs example asset",
      "status": {
        "id": 9001,
        "name": "Active"
      },
      "department": {
        "id": 8001,
        "name": "Docs Department"
      },
      "location": {
        "id": 7001,
        "name": "Docs Lab"
      },
      "next_service_date": "2026-01-01",
      "next_calibration_due": "2026-01-10",
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1,
    "window": "overdue"
  }
}

Change one asset's owner, location, status or service schedule

PATCH /api/v1/equipment/{id}

Token scope needed: Assistant keys only

Changes one asset of your organization: its owner, location, department, status, nickname, next service date and service and calibration intervals, and nothing else. Only the fields sent change, and null clears an optional field. Every id names a record of your organization; an id that names none, or a record of another organization, is refused with 422 on that field. Calibration and compliance fields, such as the next calibration due date, the reference-standard flag and certificates, are not writable here: they and any other field not listed are refused with 422 unknown_field. An asset that has been disposed of is refused with 422. A change of owner is recorded in the asset's audit trail and, when your organization syncs calendars, moves the asset's future service appointments to the new owner's calendar, as editing the asset in LabDesk does; every change is audited with the key that made it. The answer is the asset after the write. Available to assistant keys only; any other token receives 404 not_found. An Idempotency-Key header is required: a retry with the same key and body returns the first answer instead of changing the asset again. With dry_run=true the request is checked and the answer it would give is returned with meta.dry_run true, and nothing is changed.

FilterExampleMeaning
dry_run true true checks the request and returns the result it would have, and changes nothing. Assistant keys only.
Body fieldRequiredRules
assigned_user_id No The id of the person responsible for the asset, who receives its reminders: an active person of your organization, as GET /api/v1/users lists them. LabDesk staff and people who have left are refused. null leaves the asset with no owner.
location_id No The id of an active location of your organization, or of the asset's current location even if it has since been retired. null clears the location.
department_id No The id of a department of your organization. null clears the department.
status_id No The id of an equipment status, as GET /api/v1/equipment_statuses lists them. A status can never be cleared, so null is refused. Sold and For Discard are refused: they are set when an asset is disposed of.
nickname No A string of up to 255 characters with no NUL character, not used by another asset of your organization. null clears the nickname.
next_service_date No A date in the form YYYY-MM-DD. null clears it; an asset with a last service date and a service interval then gets a next service date counted from them, as in LabDesk.
service_interval_days No An integer from 1 to 3,650: the days between services. null clears it, and the interval of the asset's category applies.
calibration_interval_days No An integer from 1 to 3,650: the days between calibrations. null clears it.
curl \
  -X PATCH \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-150-move-asset" \
  -d '{"location_id":7001,"service_interval_days":90}' \
  "https://labdeskinc.com/api/v1/equipment/1042"

200 response :

{
  "data": {
    "id": 1042,
    "barcode": "EQ-1042",
    "serial_number": "SN-1042",
    "nickname": "Docs example asset",
    "status": {
      "id": 9001,
      "name": "Active"
    },
    "department": {
      "id": 8001,
      "name": "Docs Department"
    },
    "location": {
      "id": 7001,
      "name": "Docs Lab"
    },
    "next_service_date": "2026-01-01",
    "service_interval_days": 90,
    "next_calibration_due": "2026-01-10",
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Notes

List an asset's notes

GET /api/v1/equipment/{equipment_id}/notes

Token scope needed: Assistant keys only

Lists the notes on one asset, newest first, 50 at most per page. Available to assistant keys only; any other token receives 404 not_found. Note text is returned as people wrote it, after invisible characters are removed and values longer than 2,000 characters are shortened; meta.untrusted_fields lists the fields that hold such text.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment/1042/notes"

200 response :

{
  "data": [
    {
      "id": 5001,
      "note": "Replaced the HVAC filter during the service visit.",
      "equipment": {
        "id": 1042,
        "barcode": "EQ-1042",
        "name": "Docs example asset"
      },
      "posted_by": {
        "type": "integration",
        "id": 9101,
        "name": "Jira integration"
      },
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Add a note to an equipment item

POST /api/v1/equipment/{equipment_id}/notes

Token scope needed: Read & write

Posts a note on one asset, attributed to the token that sent it: an integration's note appears in LabDesk as "via integration <name>". For assistant keys an Idempotency-Key header is required, a body field other than note is refused with 422 unknown_field, a disposed asset is refused with 422, and dry_run=true checks the request and returns the note it would post, with id null, without posting it.

FilterExampleMeaning
dry_run true true checks the request and returns the result it would have, and changes nothing. Assistant keys only.
Body fieldRequiredRules
note Yes A non-empty string of up to 10,000 characters with no NUL character: the note's text.
curl \
  -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-100-note" \
  -d '{"note":"Replaced the HVAC filter during the service visit."}' \
  "https://labdeskinc.com/api/v1/equipment/1042/notes"

201 response :

{
  "data": {
    "id": 5001,
    "note": "Replaced the HVAC filter during the service visit.",
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "posted_by": {
      "type": "integration",
      "id": 9101,
      "name": "Jira integration"
    },
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Get one equipment note

GET /api/v1/equipment/{equipment_id}/notes/{id}

Token scope needed: Read only

Returns one note on one asset by its id.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment/1042/notes/5001"

200 response :

{
  "data": {
    "id": 5001,
    "note": "Replaced the HVAC filter during the service visit.",
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "posted_by": {
      "type": "integration",
      "id": 9101,
      "name": "Jira integration"
    },
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Service appointments

List service appointments

GET /api/v1/service_appointments

Token scope needed: Read only

Lists booked service appointments, most recent start date first. For assistant keys each appointment also carries outcome (completed, failed or null) and outcome_note.

FilterExampleMeaning
equipment_id 1042 Only appointments for this equipment id.
vendor_id 2001 Only appointments with this vendor id.
start_from 2026-01-01T00:00:00Z Only appointments starting at or after this instant.
start_to 2026-01-31T00:00:00Z Only appointments starting at or before this instant (a date-only value covers the whole day).
updated_since 2026-01-01T00:00:00Z Only appointments updated at or after this instant.
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/service_appointments?equipment_id=1042"

200 response :

{
  "data": [
    {
      "id": 3001,
      "appointment_type": "preventive",
      "start_date": "2026-01-10T15:00:00Z",
      "end_date": "2026-01-10T17:00:00Z",
      "cost": "150.00",
      "notes": "Docs example appointment",
      "equipment": {
        "id": 1042,
        "barcode": "EQ-1042",
        "name": "Docs example asset"
      },
      "vendor": {
        "id": 2001,
        "name": "Docs Vendor Co"
      },
      "posted_by": {
        "type": "integration",
        "id": 9101,
        "name": "Jira integration"
      },
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Get one service appointment

GET /api/v1/service_appointments/{id}

Token scope needed: Read only

Returns one service appointment by its id. For assistant keys it also carries outcome (completed, failed or null) and outcome_note.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/service_appointments/3001"

200 response :

{
  "data": {
    "id": 3001,
    "appointment_type": "preventive",
    "start_date": "2026-01-10T15:00:00Z",
    "end_date": "2026-01-10T17:00:00Z",
    "cost": "150.00",
    "notes": "Docs example appointment",
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "vendor": {
      "id": 2001,
      "name": "Docs Vendor Co"
    },
    "posted_by": {
      "type": "integration",
      "id": 9101,
      "name": "Jira integration"
    },
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Book a service appointment

POST /api/v1/service_appointments

Token scope needed: Read & write

Books a service visit for one asset with one vendor, attributed to the token that sent it. For assistant keys the created appointment also carries outcome and outcome_note (both null). For assistant keys an Idempotency-Key header is required, a body field not listed here is refused with 422 unknown_field, a disposed asset is refused with 422, and dry_run=true checks the request and returns the appointment it would book, with id null, without booking it.

FilterExampleMeaning
dry_run true true checks the request and returns the result it would have, and changes nothing. Assistant keys only.
Body fieldRequiredRules
equipment_id Yes The positive integer id of a live asset of your organization that has not been disposed of, as GET /api/v1/equipment returns it.
vendor_id Yes The positive integer id of an active vendor of your organization, as GET /api/v1/vendors returns it.
start_date Yes A full ISO-8601 timestamp with an explicit UTC offset: when the visit starts. A bare date is read as midnight Pacific.
end_date Yes A full ISO-8601 timestamp with an explicit UTC offset: when the visit ends. It may not be before start_date.
appointment_type No One of: preventive, corrective. Absent or null leaves the appointment unclassified.
cost No A number with up to 2 decimal places, sent as a string, e.g. "150.00". Absent or null records no cost.
notes No Up to 10,000 characters of text with no NUL character: the appointment's notes. Absent or null records none.
curl \
  -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-100-booking" \
  -d '{"equipment_id":1042,"vendor_id":2001,"start_date":"2026-01-20T09:00:00-06:00","end_date":"2026-01-20T11:00:00-06:00","appointment_type":"preventive","cost":"150.00","notes":"Preventive maintenance -- HVAC filter replacement."}' \
  "https://labdeskinc.com/api/v1/service_appointments"

201 response :

{
  "data": {
    "id": 3002,
    "appointment_type": "preventive",
    "start_date": "2026-01-20T15:00:00Z",
    "end_date": "2026-01-20T17:00:00Z",
    "cost": "150.00",
    "notes": "Preventive maintenance -- HVAC filter replacement.",
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "vendor": {
      "id": 2001,
      "name": "Docs Vendor Co"
    },
    "posted_by": {
      "type": "integration",
      "id": 9101,
      "name": "Jira integration"
    },
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Change a service appointment

PATCH /api/v1/service_appointments/{id}

Token scope needed: Assistant keys only

Moves or changes one service appointment of your organization, as editing it in LabDesk does: only the fields sent change, and null clears an optional field. When the visit falls within a service contract for its asset and vendor, the contract must have a visit left, except for a change of the outcome or the outcome note alone, which never counts against it. One audit entry records each changed field, and the text of the notes is never copied into it. The answer is the appointment after the change. Available to assistant keys only; any other token receives 404 not_found. An Idempotency-Key header is required: a retry with the same key and body returns the first answer instead of changing the appointment again. With dry_run=true the request is checked and the answer it would give is returned with meta.dry_run true, and nothing is changed. A body field not listed here is refused with 422 unknown_field.

FilterExampleMeaning
dry_run true true checks the request and returns the result it would have, and changes nothing. Assistant keys only.
Body fieldRequiredRules
start_date No An ISO-8601 date-time; one without an offset is read in your organization's time zone, and a bare date is midnight Pacific. It may not be null.
end_date No An ISO-8601 date-time, read as start_date is. It must not be before start_date (the stored one when start_date is not sent). It may not be null.
vendor_id No Positive integer id of an active vendor in your organization. It may not be null.
notes No A string of up to 10,000 characters with no NUL character. Null clears the notes.
appointment_type No One of: preventive, corrective. Null leaves the appointment unclassified.
cost No A number of zero or more with up to 2 decimal places, sent as a string, e.g. "175.00". Null clears the cost.
outcome No "completed" or "failed": whether the visit passed. Null clears it (not recorded).
outcome_note No A string of up to 1000 characters explaining the outcome. Null clears it.
curl \
  -X PATCH \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-150-move" \
  -d '{"start_date":"2026-01-12T07:00:00-08:00","end_date":"2026-01-12T09:30:00-08:00","vendor_id":2001,"notes":"The vendor came on the 12th; moved from the 10th.","appointment_type":"preventive","cost":"175.00","outcome":"completed","outcome_note":"Passed the airflow check."}' \
  "https://labdeskinc.com/api/v1/service_appointments/3001"

200 response :

{
  "data": {
    "id": 3001,
    "appointment_type": "preventive",
    "start_date": "2026-01-12T15:00:00Z",
    "end_date": "2026-01-12T17:30:00Z",
    "cost": "175.00",
    "notes": "The vendor came on the 12th; moved from the 10th.",
    "outcome": "completed",
    "outcome_note": "Passed the airflow check.",
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "vendor": {
      "id": 2001,
      "name": "Docs Vendor Co"
    },
    "posted_by": {
      "type": "integration",
      "id": 9101,
      "name": "Jira integration"
    },
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Calibration records

List calibration records

GET /api/v1/calibration_records

Token scope needed: Read only

Lists your organization's calibration records, in id order. Read-only: the API has no write operation for calibration records.

FilterExampleMeaning
equipment_id 1042 Only records for this equipment id.
result pass One of: pass, fail, limited.
updated_since 2026-01-01T00:00:00Z Only records updated at or after this instant.
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/calibration_records?equipment_id=1042"

200 response :

{
  "data": [
    {
      "id": 4001,
      "equipment": {
        "id": 1042,
        "barcode": "EQ-1042",
        "name": "Docs example asset"
      },
      "performed_on": "2025-07-15",
      "performed_by": "Docs Technician",
      "result": "pass",
      "as_found": null,
      "as_left": null,
      "out_of_tolerance": false,
      "next_calibration_due": "2026-01-10",
      "traceability_reference": null,
      "note": null,
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Get one calibration record

GET /api/v1/calibration_records/{id}

Token scope needed: Read only

Returns one calibration record by its id.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/calibration_records/4001"

200 response :

{
  "data": {
    "id": 4001,
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "performed_on": "2025-07-15",
    "performed_by": "Docs Technician",
    "result": "pass",
    "as_found": null,
    "as_left": null,
    "out_of_tolerance": false,
    "next_calibration_due": "2026-01-10",
    "traceability_reference": null,
    "note": null,
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Service contracts

List service contracts

GET /api/v1/service_contracts

Token scope needed: Read only

Lists your organization's service contracts, in id order. Read-only: the API has no write operation for service contracts.

FilterExampleMeaning
equipment_id 1042 Only contracts for this equipment id.
vendor_id 2001 Only contracts with this vendor id.
active true true for a contract covering today (both its start and expiration bound); false otherwise.
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/service_contracts?equipment_id=1042"

200 response :

{
  "data": [
    {
      "id": 6001,
      "equipment": {
        "id": 1042,
        "barcode": "EQ-1042",
        "name": "Docs example asset"
      },
      "vendor": {
        "id": 2001,
        "name": "Docs Vendor Co"
      },
      "start_date": "2025-01-01",
      "expiration_date": "2026-12-31",
      "number_of_service_appointments": 10,
      "number_of_days_between_appointments": null,
      "active": true,
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Get one service contract

GET /api/v1/service_contracts/{id}

Token scope needed: Read only

Returns one service contract by its id. It is not filtered by active, so an expired or not-yet-started contract still resolves.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/service_contracts/6001"

200 response :

{
  "data": {
    "id": 6001,
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "vendor": {
      "id": 2001,
      "name": "Docs Vendor Co"
    },
    "start_date": "2025-01-01",
    "expiration_date": "2026-12-31",
    "number_of_service_appointments": 10,
    "number_of_days_between_appointments": null,
    "active": true,
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Vendors

List vendors

GET /api/v1/vendors

Token scope needed: Read only

Lists your organization's vendors, in id order, with the vendor id a booking takes. For assistant keys holding contacts:read each vendor also carries a contact object (name, email, phone).

FilterExampleMeaning
include_retired true Include retired vendors (excluded by default).
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/vendors?include_retired=true"

200 response :

{
  "data": [
    {
      "id": 2001,
      "name": "Docs Vendor Co",
      "retired_at": null,
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Get one vendor

GET /api/v1/vendors/{id}

Token scope needed: Read only

Returns one vendor by its id. It is not filtered by retired, so a retired vendor's id still resolves. For assistant keys holding contacts:read it also carries a contact object (name, email, phone).

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/vendors/2001"

200 response :

{
  "data": {
    "id": 2001,
    "name": "Docs Vendor Co",
    "retired_at": null,
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Locations

List locations

GET /api/v1/locations

Token scope needed: Read only

Lists your organization's locations, in id order, with the location id the equipment list's location_id filter takes.

FilterExampleMeaning
include_retired true Include retired locations (excluded by default).
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/locations?include_retired=true"

200 response :

{
  "data": [
    {
      "id": 7001,
      "name": "Docs Lab",
      "barcode": "LOC-0100-DEMO",
      "parent_location_id": null,
      "retired_at": null,
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Get one location

GET /api/v1/locations/{id}

Token scope needed: Read only

Returns one location by its id. It is not filtered by retired, so a retired location's id still resolves.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/locations/7001"

200 response :

{
  "data": {
    "id": 7001,
    "name": "Docs Lab",
    "barcode": "LOC-0100-DEMO",
    "parent_location_id": null,
    "retired_at": null,
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Departments

List departments

GET /api/v1/departments

Token scope needed: Read only

Lists your organization's departments, in id order.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/departments"

200 response :

{
  "data": [
    {
      "id": 8001,
      "name": "Docs Department",
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Get one department

GET /api/v1/departments/{id}

Token scope needed: Read only

Returns one department by its id.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/departments/8001"

200 response :

{
  "data": {
    "id": 8001,
    "name": "Docs Department",
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Webhook subscriptions

Register a webhook

POST /api/v1/webhook_subscriptions

Token scope needed: Read & write

Registers a URL to receive signed event deliveries. Needs an integration token -- a personal API token is refused. The signing secret is returned once, in this response only; an integration keeps it to verify each delivery's signature. A replay with the same Idempotency-Key returns the same subscription with "secret": null, so an integration that lost its secret deletes the subscription and registers again. An organization's registrations are checked one at a time: a second one sent while the first is still being checked answers 429 registration_in_progress with a Retry-After header.

Body fieldRequiredRules
url Yes An https URL on port 443, with no user name or password, that resolves only to public internet addresses (checked at registration and again before every delivery). Up to 2,048 characters.
event_types Yes A non-empty list of distinct event type names, no wildcards. Each one of: service_appointment.created, service_appointment.updated, equipment.service_due_soon, equipment.service_overdue, equipment.calibration_due_soon, equipment.calibration_overdue, calibration_record.created, document.attached.
curl \
  -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-100-webhook" \
  -d '{"url":"https://hooks.example.com/labdesk","event_types":["equipment.service_overdue","service_appointment.created"]}' \
  "https://labdeskinc.com/api/v1/webhook_subscriptions"

201 response :

{
  "data": {
    "id": 9202,
    "url_host": "hooks.example.com",
    "event_types": [
      "equipment.service_overdue",
      "service_appointment.created"
    ],
    "status": "active",
    "disabled_reason": null,
    "disabled_at": null,
    "consecutive_failures": 0,
    "active_since": "2026-01-15T15:00:00Z",
    "last_success_at": null,
    "last_failure_at": null,
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z",
    "secret": "whsec_EXAMPLE"
  }
}

List webhooks

GET /api/v1/webhook_subscriptions

Token scope needed: Read only

Lists the webhook subscriptions registered with the token making the request, active and disabled. Every webhook endpoint works on the calling integration token's own subscriptions only: another token's -- even in your organization -- is not listed and answers 404 not_found. Your organization's administrators see and manage all of them under Account -> Webhooks. A disabled subscription carries disabled_reason: failures (too many deliveries in a row failed), token_revoked or token_expired (the integration token that registered it stopped working). The signing secret is never returned, and only the host of the URL is shown.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/webhook_subscriptions"

200 response :

{
  "data": [
    {
      "id": 9201,
      "url_host": "hooks.example.com",
      "event_types": [
        "equipment.service_overdue",
        "equipment.calibration_overdue"
      ],
      "status": "active",
      "disabled_reason": null,
      "disabled_at": null,
      "consecutive_failures": 0,
      "active_since": "2026-01-15T15:00:00Z",
      "last_success_at": null,
      "last_failure_at": null,
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Get one webhook

GET /api/v1/webhook_subscriptions/{id}

Token scope needed: Read only

Returns one webhook subscription registered with the token making the request, by its id; any other id answers 404 not_found. The signing secret is never returned.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/webhook_subscriptions/9201"

200 response :

{
  "data": {
    "id": 9201,
    "url_host": "hooks.example.com",
    "event_types": [
      "equipment.service_overdue",
      "equipment.calibration_overdue"
    ],
    "status": "active",
    "disabled_reason": null,
    "disabled_at": null,
    "consecutive_failures": 0,
    "active_since": "2026-01-15T15:00:00Z",
    "last_success_at": null,
    "last_failure_at": null,
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

List a webhook's deliveries

GET /api/v1/webhook_subscriptions/{webhook_subscription_id}/deliveries

Token scope needed: Read only

Lists the delivery log of one webhook subscription registered with the token making the request, newest first. Deliveries are kept for 30 days. status is one of: pending, succeeded, failed, abandoned. event_id is the id your receiver saw in the delivery. next_attempt_at is the earliest time the next attempt may start: deliveries go out one at a time across every organization -- the organization with the fewest deliveries waiting first, and each organization's oldest first -- so an attempt starts later while others are sent: another organization's burst delays yours by at most one attempt (15 seconds), while a backlog of your own is sent one delivery at a time. A delivery is abandoned when LabDesk drops it unsent: its subscription was disabled, or the API was switched off for your organization when its attempt came due (last_error then reads public_api_disabled). The payload itself is not included.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/webhook_subscriptions/9201/deliveries"

200 response :

{
  "data": [
    {
      "id": 9301,
      "event_id": "evt_7d3f0a52-1c2b-4e5f-9a6b-0c1d2e3f4a5b",
      "event_type": "equipment.service_overdue",
      "status": "succeeded",
      "attempts": 1,
      "last_response_status": 200,
      "last_error": null,
      "next_attempt_at": null,
      "delivered_at": "2026-01-15T15:00:00Z",
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Delete a webhook

DELETE /api/v1/webhook_subscriptions/{id}

Token scope needed: Read & write

Deletes a webhook subscription registered with the token making the request, together with its delivery log; nothing more is sent to its URL. Another token's subscription answers 404. Answers 204 No Content, with an empty body.

curl \
  -X DELETE \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/webhook_subscriptions/9201"

Flags

List flags

GET /api/v1/flags

Token scope needed: Assistant keys only

Lists the flags raised on your organization's equipment, newest first, 50 at most per page. Each flag names its asset, who raised it, who it is for, whether it is resolved and how many notes it has. Available to assistant keys only; any other token receives 404 not_found. Text people wrote is returned as they wrote it, after invisible characters are removed and long values are shortened; meta.untrusted_fields lists the fields that hold such text.

FilterExampleMeaning
resolved false true for resolved flags only, false for open flags only.
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/flags?resolved=false"

200 response :

{
  "data": [
    {
      "id": 9401,
      "subject": "Door seal worn",
      "equipment": {
        "id": 1042,
        "barcode": "EQ-1042",
        "name": "Docs example asset"
      },
      "submitter": {
        "id": 9411,
        "name": "Docs Technician"
      },
      "recipient": {
        "id": 9412,
        "name": "Docs Lab Manager"
      },
      "resolved_by": null,
      "resolved": false,
      "date_created": "2026-01-15T15:00:00Z",
      "date_marked_resolved": null,
      "notes_count": 1,
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Get one flag with its notes

GET /api/v1/flags/{id}

Token scope needed: Assistant keys only

Fetches one flag by its id, with its 50 most recent notes, newest first; notes_count is the number of notes in all. Available to assistant keys only; any other token receives 404 not_found. Text people wrote is returned as they wrote it, after invisible characters are removed and long values are shortened; meta.untrusted_fields lists the fields that hold such text.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/flags/9401"

200 response :

{
  "data": {
    "id": 9401,
    "subject": "Door seal worn",
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "submitter": {
      "id": 9411,
      "name": "Docs Technician"
    },
    "recipient": {
      "id": 9412,
      "name": "Docs Lab Manager"
    },
    "resolved_by": null,
    "resolved": false,
    "date_created": "2026-01-15T15:00:00Z",
    "date_marked_resolved": null,
    "notes_count": 1,
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z",
    "notes": [
      {
        "id": 9402,
        "note": "The seal is cracked along the lower edge.",
        "posted_by": {
          "type": "user",
          "id": 9411,
          "name": "Docs Technician"
        },
        "date_posted": "2026-01-15T15:00:00Z"
      }
    ]
  }
}

List an asset's flags

GET /api/v1/equipment/{equipment_id}/flags

Token scope needed: Assistant keys only

Lists the flags raised on one asset, newest first, 50 at most per page. Available to assistant keys only; any other token receives 404 not_found. Text people wrote is returned as they wrote it, after invisible characters are removed and long values are shortened; meta.untrusted_fields lists the fields that hold such text.

FilterExampleMeaning
resolved false true for resolved flags only, false for open flags only.
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment/1042/flags"

200 response :

{
  "data": [
    {
      "id": 9401,
      "subject": "Door seal worn",
      "equipment": {
        "id": 1042,
        "barcode": "EQ-1042",
        "name": "Docs example asset"
      },
      "submitter": {
        "id": 9411,
        "name": "Docs Technician"
      },
      "recipient": {
        "id": 9412,
        "name": "Docs Lab Manager"
      },
      "resolved_by": null,
      "resolved": false,
      "date_created": "2026-01-15T15:00:00Z",
      "date_marked_resolved": null,
      "notes_count": 1,
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Raise a flag on an asset

POST /api/v1/equipment/{equipment_id}/flags

Token scope needed: Assistant keys only

Raises a flag on one asset of your organization, as raising a flag in LabDesk does: the key's user is its submitter, note becomes its first note, and the recipient receives the same flag email a flag raised in LabDesk sends, once. recipient_id names an active person of your organization; without it the flag goes to the first holder of the organization's Administrator role, and an organization with no such holder answers 422 on recipient_id. LabDesk staff are never a recipient. A disposed asset answers 422. One audit entry records the flag's ids, never its text. The answer is the flag with its notes, and its Location is the flag. Available to assistant keys only; any other token receives 404 not_found. An Idempotency-Key header is required: a retry with the same key and body returns the first answer and sends no second email. With dry_run=true the request is checked and the flag it would raise is returned with id null and meta.dry_run true; nothing is saved and no email is sent. A body field not listed here is refused with 422 unknown_field.

FilterExampleMeaning
dry_run true true checks the request and returns the result it would have, and changes nothing. Assistant keys only.
Body fieldRequiredRules
subject Yes A string of up to 255 characters with no NUL character and not blank: what the flag is about.
note No A string of up to 10,000 characters with no NUL character, posted as the flag's first note and included in the flag email. Absent, null or blank posts no note.
recipient_id No The id of an active person of your organization, as GET /api/v1/users returns it, who receives the flag. Another organization's person, LabDesk staff, a removed person and an unknown id all answer the same 422. Absent or null sends the flag to the first holder of the organization's Administrator role.
curl \
  -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-150-flag" \
  -d '{"subject":"Compressor running loud","note":"A grinding noise started this morning.","recipient_id":9412}' \
  "https://labdeskinc.com/api/v1/equipment/1042/flags"

201 response :

{
  "data": {
    "id": 9403,
    "subject": "Compressor running loud",
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "submitter": {
      "id": 9413,
      "name": "Docs Assistant"
    },
    "recipient": {
      "id": 9412,
      "name": "Docs Lab Manager"
    },
    "resolved_by": null,
    "resolved": false,
    "date_created": "2026-01-15T15:00:00Z",
    "date_marked_resolved": null,
    "notes_count": 1,
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z",
    "notes": [
      {
        "note": "A grinding noise started this morning.",
        "posted_by": {
          "type": "user",
          "id": 9413,
          "name": "Docs Assistant"
        },
        "date_posted": "2026-01-15T15:00:00Z"
      }
    ]
  }
}

Add a note to a flag, resolve it or reopen it

PATCH /api/v1/flags/{id}

Token scope needed: Assistant keys only

Changes one flag of your organization as updating it in LabDesk does: note posts a note, resolved true resolves the flag (posting "(marked resolved)" and naming the key's user as its resolver) and resolved false reopens it (posting "(reopened flag)"). The update email goes out once, as for a change made in LabDesk: to the flag's submitter, or to its recipient when the key's user raised the flag. Resolving a resolved flag or reopening an open one with no note changes nothing, sends no email and answers with meta.outcome "unchanged". A flag on a disposed asset answers 422. One audit entry records the flag's id and its resolved state before and after, never the note's text. The answer is the flag with its notes. Available to assistant keys only; any other token receives 404 not_found. An Idempotency-Key header is required: a retry with the same key and body returns the first answer and sends no second email. With dry_run=true the request is checked and the flag is returned as the change would leave it, with meta.dry_run true; nothing is saved and no email is sent. A body field not listed here is refused with 422 unknown_field.

FilterExampleMeaning
dry_run true true checks the request and returns the result it would have, and changes nothing. Assistant keys only.
Body fieldRequiredRules
note No A string of up to 10,000 characters with no NUL character, posted as a note on the flag and included in the update email. Absent, null or blank posts no note.
resolved No true or false: true resolves the flag, false reopens it. Absent leaves it as it is; null is refused. A body with neither a note nor resolved answers 422.
curl \
  -X PATCH \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-150-flag-update" \
  -d '{"note":"Replaced the seal; the door closes tight.","resolved":true}' \
  "https://labdeskinc.com/api/v1/flags/9401"

200 response :

{
  "data": {
    "id": 9401,
    "subject": "Door seal worn",
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "submitter": {
      "id": 9411,
      "name": "Docs Technician"
    },
    "recipient": {
      "id": 9412,
      "name": "Docs Lab Manager"
    },
    "resolved_by": {
      "id": 9413,
      "name": "Docs Assistant"
    },
    "resolved": true,
    "date_created": "2026-01-15T15:00:00Z",
    "date_marked_resolved": "2026-01-15T15:00:00Z",
    "notes_count": 3,
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z",
    "notes": [
      {
        "note": "(marked resolved)",
        "posted_by": {
          "type": "user",
          "id": 9413,
          "name": "Docs Assistant"
        },
        "date_posted": "2026-01-15T15:00:00Z"
      }
    ]
  }
}

Documents

List an asset's documents

GET /api/v1/equipment/{equipment_id}/documents

Token scope needed: Assistant keys only

Lists the documents filed on one asset, newest filed first, 50 at most per page, as metadata only: the file's name, content type and size in bytes, when it was filed, and the service-report result recorded on it (passed or failed; null when none is recorded or your organization does not record service-report results). No link to the file and none of its text is returned. Available to assistant keys only; any other token receives 404 not_found. Text people wrote is returned as they wrote it, after invisible characters are removed and long values are shortened; meta.untrusted_fields lists the fields that hold such text.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment/1042/documents"

200 response :

{
  "data": [
    {
      "id": 9431,
      "filename": "Service report 2026-01.pdf",
      "content_type": "application/pdf",
      "byte_size": 24,
      "filed_at": "2026-01-15T15:00:00Z",
      "service_report_result": null
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Downtime

List an asset's downtime incidents

GET /api/v1/equipment/{equipment_id}/downtime_incidents

Token scope needed: Assistant keys only

Lists the times one asset was reported down, newest first, 50 at most per page: when it went down, when it was marked back up, how long it was down (up to now for an incident still ongoing), the note left with the report, and who reported it and who marked it back up. Where downtime reporting is not turned on for your organization this answers 403 feature_disabled. Available to assistant keys only; any other token receives 404 not_found. Text people wrote is returned as they wrote it, after invisible characters are removed and long values are shortened; meta.untrusted_fields lists the fields that hold such text.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment/1042/downtime_incidents"

200 response :

{
  "data": [
    {
      "id": 9441,
      "down_at": "2026-01-15T13:00:00Z",
      "up_at": "2026-01-15T14:00:00Z",
      "ongoing": false,
      "duration_seconds": 3600,
      "note": "Compressor alarm; the vendor was called.",
      "reported_by": {
        "id": 9411,
        "name": "Docs Technician"
      },
      "marked_up_by": {
        "id": 9412,
        "name": "Docs Lab Manager"
      },
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Report an asset down

POST /api/v1/equipment/{equipment_id}/downtime_incidents

Token scope needed: Assistant keys only

Reports one asset of your organization down, as reporting it down on the phone or the equipment page does: a downtime incident opens with the note, one audit entry records it, and the asset's owner is emailed (unless the person reporting is that owner), or your organization's Administrators when the asset has no owner. A new report answers 201 with the incident and meta.outcome "created". An asset that is already down keeps its one open incident: the answer is 200 with that incident and meta.outcome "already_down", and nothing is written. It needs both service request capture and downtime reporting turned on for your organization, as the equipment page's Report down and Mark back up buttons do; with either off it answers 403 feature_disabled, whatever the asset. A disposed asset is refused with 422. Available to assistant keys only; any other token receives 404 not_found. An Idempotency-Key header is required: a retry with the same key and body returns the first answer instead of writing again. With dry_run=true the request is checked and the answer it would give is returned with meta.dry_run true, and nothing is changed and no one is notified. A body field not listed here is refused with 422 unknown_field.

FilterExampleMeaning
dry_run true true checks the request and returns the result it would have, and changes nothing. Assistant keys only.
Body fieldRequiredRules
note No A string of up to 500 characters with no NUL character, saying what is wrong; it is shown with the incident and in the email. Absent or null reports the asset down with no note.
curl \
  -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-150-down" \
  -d '{"note":"The compressor tripped and the alarm is sounding."}' \
  "https://labdeskinc.com/api/v1/equipment/1042/downtime_incidents"

201 response :

{
  "data": {
    "id": 9451,
    "down_at": "2026-01-15T15:00:00Z",
    "up_at": null,
    "ongoing": true,
    "duration_seconds": 0,
    "note": "The compressor tripped and the alarm is sounding.",
    "reported_by": {
      "id": 9452,
      "name": "Docs Assistant"
    },
    "marked_up_by": null,
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Mark an asset back up

PATCH /api/v1/equipment/{equipment_id}/downtime_incidents/current

Token scope needed: Assistant keys only

Marks one asset of your organization back up, as marking it back up on the phone or the equipment page does: its open downtime incident closes with the time and who marked it up, and one audit entry records how long it was down. The answer is 200 with the closed incident and meta.outcome "closed", or, when the asset has no open incident, 200 with data null and meta.outcome "already_up", and nothing is written. It needs both service request capture and downtime reporting turned on for your organization, as the equipment page's Report down and Mark back up buttons do; with either off it answers 403 feature_disabled, whatever the asset. A disposed asset is refused with 422. Available to assistant keys only; any other token receives 404 not_found. An Idempotency-Key header is required: a retry with the same key and body returns the first answer instead of writing again. With dry_run=true the request is checked and the answer it would give is returned with meta.dry_run true, and nothing is changed and no one is notified. The request takes no body; any body field is refused with 422 unknown_field.

FilterExampleMeaning
dry_run true true checks the request and returns the result it would have, and changes nothing. Assistant keys only.
curl \
  -X PATCH \
  -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: LAB-150-up" \
  "https://labdeskinc.com/api/v1/equipment/1042/downtime_incidents/current"

200 response :

{
  "data": {
    "id": 9453,
    "down_at": "2026-01-15T13:00:00Z",
    "up_at": "2026-01-15T15:00:00Z",
    "ongoing": false,
    "duration_seconds": 7200,
    "note": "Compressor tripped.",
    "reported_by": {
      "id": 9452,
      "name": "Docs Assistant"
    },
    "marked_up_by": {
      "id": 9452,
      "name": "Docs Assistant"
    },
    "created_at": "2026-01-15T13:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

Attention

List attention items

GET /api/v1/attention_items

Token scope needed: Assistant keys only

Lists your organization's assets whose service, calibration or warranty date is past or falls within the next 90 days: the worklist the Attention page shows, one row per asset and due type, highest rank_score first. rank_score is severity_weight (calibration 3, service 2, warranty 1), times 2 for a reference standard, times overdue_days plus 90; overdue_days is negative for a date still ahead. Disposed and deleted assets are not listed. 50 at most per page. Available to assistant keys only; any other token receives 404 not_found. Asset barcodes and names are returned as people wrote them, after invisible characters are removed and values longer than 200 characters are shortened; meta.untrusted_fields lists the fields that hold such text.

FilterExampleMeaning
due_type service Only rows of this due type. One of: service, calibration, warranty.
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/attention_items"

200 response :

{
  "data": [
    {
      "equipment": {
        "id": 1042,
        "barcode": "EQ-1042",
        "name": "Docs example asset"
      },
      "due_type": "calibration",
      "due_date": "2026-01-10",
      "overdue_days": 5,
      "severity_weight": 3,
      "reference_standard": false,
      "rank_score": 285
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

List failed service visits

GET /api/v1/failed_service_visits

Token scope needed: Assistant keys only

Lists your organization's assets whose latest recorded service result is a failure: the failed service visits the Attention page shows, most recent service_day first. source is appointment when the asset's latest visit with a recorded outcome failed, or service_report when a failed service report is the asset's latest recorded result (only where your organization records service report results); the matching object is set and the other is null. An asset stays listed until a later visit is recorded completed or a later service report passed. appointment.outcome_note is null unless the key also holds appointments:read and its user may view service appointments. Disposed and deleted assets are not listed. 50 at most per page. Available to assistant keys only; any other token receives 404 not_found. Outcome notes and asset labels are returned as people wrote them, after invisible characters are removed and long values shortened (notes past 2,000 characters); meta.untrusted_fields lists the fields that hold such text.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/failed_service_visits"

200 response :

{
  "data": [
    {
      "equipment": {
        "id": 1042,
        "barcode": "EQ-1042",
        "name": "Docs example asset"
      },
      "source": "appointment",
      "service_day": "2026-01-12",
      "recorded_at": "2026-01-15T15:00:00Z",
      "appointment": {
        "id": 3003,
        "start_date": "2026-01-12T15:00:00Z",
        "outcome": "failed",
        "outcome_note": "Pressure test failed; seal replacement ordered."
      },
      "service_report": null
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Saved reports

List saved reports

GET /api/v1/reports

Token scope needed: Assistant keys only

Lists your organization's saved reports, oldest first. report_type is one of: category, location, maintenance, compliance, warranty, equipment_amperages; it is null for a report whose type is not set. columns are the columns GET /api/v1/reports/{report_id}/results returns for the report, in its order, drawn only from: barcode, asset_number, serial_number, category, location, department, manufacturer, model, status, next_service_date, next_calibration_due, certification_expiry, warranty_expiry, date_acquired, amperage. Who created a report, its recipients and its schedule are not included. 50 at most per page. Available to assistant keys only; any other token receives 404 not_found. Report names are returned as people wrote them, after invisible characters are removed and values longer than 200 characters are shortened; meta.untrusted_fields lists the fields that hold such text.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/reports"

200 response :

{
  "data": [
    {
      "id": 9601,
      "name": "Docs maintenance report",
      "report_type": "maintenance",
      "columns": [
        "barcode",
        "status",
        "next_service_date"
      ],
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

List a saved report's results

GET /api/v1/reports/{report_id}/results

Token scope needed: Assistant keys only

Lists the rows one saved report returns when it is run, the same assets the report's Run page shows: one row per asset, where id is the asset's id and values holds one entry per column, keyed by column name in the report's column order. meta.columns lists those columns, drawn only from: barcode, asset_number, serial_number, category, location, department, manufacturer, model, status, next_service_date, next_calibration_due, certification_expiry, warranty_expiry, date_acquired, amperage. A date is YYYY-MM-DD, any other value is a string, and an unset value is null. Category and location reports are ordered by that name, then by asset id; every other report by asset id. A report whose type is not set returns no rows. Another organization's report id receives the same 404 as an id no report has. 50 at most per page. Available to assistant keys only; any other token receives 404 not_found. Values other than dates are returned as people wrote them, after invisible characters are removed and values longer than 200 characters are shortened; meta.untrusted_fields lists the fields that hold such text.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/reports/9601/results"

200 response :

{
  "data": [
    {
      "id": 1042,
      "values": {
        "barcode": "EQ-1042",
        "status": "Active",
        "next_service_date": "2026-01-01"
      }
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1,
    "columns": [
      "barcode",
      "status",
      "next_service_date"
    ]
  }
}

Lookups

List equipment statuses

GET /api/v1/equipment_statuses

Token scope needed: Assistant keys only

Lists the equipment statuses, by id. Statuses are one list shared by every organization; a status name is the value GET /api/v1/equipment's status filter takes. Needs the equipment:read scope. At most 50 per page. Available to assistant keys only; any other token receives 404 not_found. Names are returned as people wrote them, after invisible characters are removed and values longer than 200 characters are shortened; meta.untrusted_fields lists the fields that hold such text.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment_statuses"

200 response :

{
  "data": [
    {
      "id": 9001,
      "name": "Active"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

List categories

GET /api/v1/categories

Token scope needed: Assistant keys only

Lists your organization's equipment categories, by id. Needs the categories:read scope. At most 50 per page. Available to assistant keys only; any other token receives 404 not_found. Names are returned as people wrote them, after invisible characters are removed and values longer than 200 characters are shortened; meta.untrusted_fields lists the fields that hold such text.

FilterExampleMeaning
include_retired true true or false. Include retired categories (excluded by default).
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/categories"

200 response :

{
  "data": [
    {
      "id": 9702,
      "name": "Docs Category",
      "retired_at": null,
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

List manufacturers

GET /api/v1/manufacturers

Token scope needed: Assistant keys only

Lists your organization's equipment manufacturers, by id. Needs the makes_and_models:read scope. At most 50 per page. Available to assistant keys only; any other token receives 404 not_found. Names are returned as people wrote them, after invisible characters are removed and values longer than 200 characters are shortened; meta.untrusted_fields lists the fields that hold such text.

FilterExampleMeaning
include_retired true true or false. Include retired manufacturers (excluded by default).
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/manufacturers"

200 response :

{
  "data": [
    {
      "id": 9701,
      "name": "Docs Manufacturer",
      "retired_at": null,
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

List models

GET /api/v1/models

Token scope needed: Assistant keys only

Lists your organization's equipment models, by id, each with its manufacturer. Needs the makes_and_models:read scope. At most 50 per page. Available to assistant keys only; any other token receives 404 not_found. Names are returned as people wrote them, after invisible characters are removed and values longer than 200 characters are shortened; meta.untrusted_fields lists the fields that hold such text.

FilterExampleMeaning
manufacturer_id 9701 Manufacturer id, exact match. An id that is not one of your organization's manufacturers matches no model.
include_retired true true or false. Include retired models (excluded by default).
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/models?manufacturer_id=9701"

200 response :

{
  "data": [
    {
      "id": 9703,
      "name": "Docs Model",
      "manufacturer": {
        "id": 9701,
        "name": "Docs Manufacturer"
      },
      "retired_at": null,
      "created_at": "2026-01-15T15:00:00Z",
      "updated_at": "2026-01-15T15:00:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

People

List people

GET /api/v1/users

Token scope needed: Assistant keys only

Lists the active people of your organization by id and name, ordered by last name, then first name, 50 at most per page. Only the id and the name are returned: no email address, phone number, job title or other detail about a person. LabDesk staff and deactivated people are not listed. Available to assistant keys only; any other token receives 404 not_found. Names are returned as people wrote them, after invisible characters are removed and values longer than 200 characters are shortened; meta.untrusted_fields lists the fields that hold such text.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/users"

200 response :

{
  "data": [
    {
      "id": 9701,
      "name": "Docs Assistant"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Search

Search records

GET /api/v1/search

Token scope needed: Assistant keys only

Searches your organization's equipment, service appointments, calibration records, vendors and locations for the words in q. People are never searched. Each type is searched only when the key holds that type's scope (equipment:read for equipment and calibration records, appointments:read, vendors:read, locations:read) and its user may view that type; the request itself needs equipment:read. A result is kept only when every word of q appears in a returned field of that record, so results can be fewer than the search index holds: a word found only in a field this API does not return, such as a vendor's contact details, an asset's private notes or a location's description, does not find it. Each record is that type's standard representation, the fields its own read returns to personal and integration tokens: a service appointment has no outcome fields and a vendor has no contact, whatever the key's scopes. Results are listed by type, in the order equipment, service_appointment, calibration_record, vendor, location, at most 20 of each type and 50 per page. Available to assistant keys only; any other token receives 404 not_found. Answers 403 feature_disabled when search is not turned on for your organization, and 400 parameter_missing without q. Text is returned as people wrote it, after invisible characters are removed and values longer than 200 characters (2,000 for notes) are shortened; meta.untrusted_fields lists the fields that hold such text.

FilterExampleMeaning
q Docs example The words to search for, up to 200 characters. Required.
type equipment Only results of this type: one of equipment, service_appointment, calibration_record, vendor, location.
curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/search?q=Docs+example"

200 response :

{
  "data": [
    {
      "type": "equipment",
      "id": 1042,
      "record": {
        "id": 1042,
        "barcode": "EQ-1042",
        "serial_number": "SN-1042",
        "nickname": "Docs example asset",
        "status": {
          "id": 9001,
          "name": "Active"
        },
        "department": {
          "id": 8001,
          "name": "Docs Department"
        },
        "location": {
          "id": 7001,
          "name": "Docs Lab"
        },
        "next_service_date": "2026-01-01",
        "next_calibration_due": "2026-01-10",
        "created_at": "2026-01-15T15:00:00Z",
        "updated_at": "2026-01-15T15:00:00Z"
      }
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total_count": 1,
    "total_pages": 1
  }
}

Service records

Record that an asset was serviced

POST /api/v1/equipment/{equipment_id}/service_records

Token scope needed: Assistant keys only

Records that one asset of your organization was serviced: its last service date becomes serviced_on, and its next service date becomes next_service_date when that is given, or otherwise moves forward by the asset's service interval, as marking it serviced in LabDesk does. One audit entry records the service and its note. The answer is the asset's service dates after the write; service_appointment is null, because this operation records no visit outcome. Available to assistant keys only; any other token receives 404 not_found. An Idempotency-Key header is required: a retry with the same key and body returns the first answer instead of recording the service again. With dry_run=true the request is checked and the answer it would give is returned with meta.dry_run true, and nothing is changed. A body field not listed here is refused with 422 unknown_field.

FilterExampleMeaning
dry_run true true checks the request and returns the result it would have, and changes nothing. Assistant keys only.
Body fieldRequiredRules
serviced_on No A date in the form YYYY-MM-DD: the day the asset was serviced. It may not be later than today in your organization's time zone (Pacific today). Absent or null means today.
note No A string of up to 10,000 characters with no NUL character, kept with the service in the asset's audit trail. Absent or null records no note.
next_service_date No A date in the form YYYY-MM-DD that becomes the asset's next service date. Absent or null moves the next service date forward by the asset's service interval.
outcome No "completed" or "failed": how the service visit on that day went. Absent means "completed". The outcome is written on the asset's appointment for that day only when the key holds appointments:write and you may edit service appointments; without both, "completed" is not recorded and "failed" is refused with 403. "failed" with no appointment for that day is refused with 422.
outcome_note No A string of up to 1000 characters explaining the outcome, kept on the appointment with it. Absent or null records no outcome note.
curl \
  -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-150-service" \
  -d '{"serviced_on":"2026-01-14","note":"Replaced the door seal and checked the compressor.","next_service_date":"2026-07-14","outcome":"completed","outcome_note":"Passed the temperature hold test."}' \
  "https://labdeskinc.com/api/v1/equipment/1042/service_records"

200 response :

{
  "data": {
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "last_service_date": "2026-01-14",
    "next_service_date": "2026-07-14",
    "service_appointment": null
  }
}

Reference

Authentication

Send the token in the Authorization header only -- Authorization: Bearer $TOKEN. An integration token (prefixed ldk_) authenticates as the organization itself. A personal API token authenticates as its user and can only do what that user's role already allows in LabDesk.

A revoked or expired token is refused on its very next request: 401 unauthorized, with a WWW-Authenticate: Bearer realm="LabDesk API" header on the response.

Never put a token in a URL -- a query string or a path segment. LabDesk refuses it outright (400 token_in_url), but a token that reaches a URL may already have been recorded by proxies, load balancers, or access logs before LabDesk ever saw the request. Treat any token that has appeared in a URL as leaked: revoke it and create a new one.

Tokens and scopes

People holding your organization's Administrator role create and revoke integration tokens, under Account → Integration Tokens.

ScopeMeaning
readRead only
read_writeRead & write

Expiry choices at mint time (default 1_year): 90_days (90 days), 1_year (1 year), never (no expiry)

An organization may have at most 25 active integration tokens at once; a revoked or expired token never counts against that limit.

A read-only token attempting a write gets 403 insufficient_scope (the response names required_scope: "read_write") -- create a Read & write token instead.

Enabling the API

LabDesk turns the API on for each organization individually. Until an administrator asks LabDesk support to enable it, every /api/v1 call answers:

The Integration Tokens menu entry itself only appears once LabDesk has enabled the API for your organization.

Pagination

Every list endpoint takes page (default 1) and per_page (default 25, maximum 100). A larger per_page is clamped to 100, not refused -- for example per_page=101 answers 200 with meta.per_page equal to 100. An invalid value (per_page=0, a non-integer, a negative number) is 422 invalid_parameter, naming the parameter.

Every list response's meta carries page, per_page, total_count, and total_pages. The two due_for_* equipment endpoints also add meta.window.

To read every row of a list -- for example, to find a vendor by name, which has no filter of its own -- ask for per_page=100, then repeat the call with page=2, page=3, and so on until meta.page equals meta.total_pages. Each list has a fixed order, so walking the pages visits every row once, provided the list does not change while you walk it.

Filters

Each endpoint's own filters (or body fields, for a write) are listed with it in the Endpoints section below.

A date/time filter (updated_since, start_from, start_to, and similar) takes an ISO-8601 value. A date alone (YYYY-MM-DD) means midnight UTC on that date -- except start_to, where a date alone covers that whole UTC day: start_to=2026-01-31 includes an appointment starting at 2026-01-31T12:00:00Z. Send start_to=2026-01-31T00:00:00Z if you mean “up to midnight at the start of that day.” For assistant keys, a date or time without an offset is read in your organization's time zone, Pacific today; other tokens read it as UTC. So for an assistant key start_from=2026-01-31 means midnight Pacific on that date, a date alone in start_to covers that whole local day (23 or 25 hours on a daylight-saving change day), and a value ending in Z or carrying an offset is used exactly as given. A boolean filter (include_retired, active) must be exactly true or false -- no other spelling is accepted. An invalid filter value is 422 invalid_parameter, naming the parameter.

Assistant keys. An assistant key that sends a query parameter an endpoint does not list is refused with 422 unknown_parameter, and error.details.allowed_parameters names the parameters that endpoint accepts (page and per_page on every list; an empty list for an endpoint that takes none). The parameter and value that were sent are not repeated in the response. An assistant key reads at most 50 records per page: a larger per_page is clamped to 50. Personal API tokens and integration tokens ignore a query parameter an endpoint does not list, as they always have.

Timestamps

Every timestamp a response returns is ISO-8601 UTC, ending in Z (2026-01-15T15:00:00Z). A date-only field renders as a bare YYYY-MM-DD, with no time component.

Writing a date-only service appointment start_date/end_date is interpreted as midnight America/Los_Angeles (Pacific time), not midnight UTC -- for example "2026-01-20" is stored and returned as "2026-01-20T08:00:00Z" (standard time), while "2026-07-20" is stored and returned as "2026-07-20T07:00:00Z" (daylight time). Send a full timestamp with an explicit UTC offset ("2026-01-20T09:00:00-06:00") if you mean an exact instant rather than "that calendar day, Pacific time." A date-only filter value is different: it is read in UTC, not Pacific time -- updated_since and start_from mean midnight UTC on that date, and start_to means through the end of that whole UTC day. For assistant keys, see Filters: their filter values without an offset follow your organization's time zone instead.

Errors

Every error shares one envelope:

{ "error": { "code": "...", "message": "...", "details": { ... } } }
StatusCodeWhenDetails
400 bad_request The request body could not be parsed (malformed JSON). —
400 token_in_url A token-shaped value appeared anywhere in the URL -- the query string or the path -- instead of the Authorization header. Because the URL may already have been recorded by proxies, load balancers, or access logs before LabDesk ever saw the request, treat that token as leaked: revoke it and create a new one. A value of exactly 43 letters, digits, - or _ (a long barcode or serial number, say) is refused the same way, because it has the shape of a token -- if that value was never a token, nothing has leaked and nothing needs revoking. location: "path" or "query"
parameter: the token parameter's name, spelled as LabDesk spells it (access_token, token, api_token, api_key or auth_token), when the token was sent under one of those names; omitted otherwise, so a name the client chose is never echoed back
400 parameter_missing A required Rails-level request parameter is missing. parameter: the missing parameter's name
400 invalid_idempotency_key The Idempotency-Key header was present but was not 1 to 255 printable ASCII characters. —
400 idempotency_key_required An assistant key made a write without an Idempotency-Key header. Every write made with an assistant key needs one, so that a retried request returns the first answer instead of writing twice. A request with ?dry_run=true writes nothing and does not need one. This applies to assistant keys only: for personal API tokens and integration tokens the header stays optional. —
401 unauthorized The Authorization header is missing, or the token is unknown, revoked, or expired. The response also carries a WWW-Authenticate: Bearer realm="LabDesk API" header. —
403 feature_disabled LabDesk has not enabled the API for this organization yet. —
403 insufficient_scope A read-only integration token attempted a write, or a personal API token called a webhook-subscription endpoint (webhook subscriptions belong to an integration, so they need an integration token). required_scope: "read_write" (a read-only integration token)
required_token: "integration" (a personal API token on a webhook-subscription endpoint)
403 insufficient_permission A personal API token's user does not have permission for this request (the same responsibility their LabDesk login would need). Also returned to a LabDesk staff member's token used after they switched to a different organization from the one it was created in. —
404 not_found The record does not exist, belongs to another organization (indistinguishable from not existing), or the path itself does not match any route. —
409 idempotency_conflict A request carrying this Idempotency-Key is still being processed by another in-flight request. Wait for it to finish, then retry with the same key. —
413 request_too_large The request body was larger than 262,144 bytes (256 KiB). LabDesk refuses it before reading it. No documented request comes close to that size. max_bytes: the largest request body LabDesk accepts, in bytes
422 invalid_parameter A filter or query parameter failed validation (wrong shape, an impossible date, an out-of-range value). parameter: the offending parameter's name
422 unknown_parameter An assistant key sent a query parameter this operation does not accept. The response does not repeat the parameter or its value; it lists the parameters the operation does accept. This applies to assistant keys only: personal API tokens and integration tokens ignore a query parameter an operation does not accept. allowed_parameters: the query parameters this operation accepts (an empty list when it accepts none)
422 unknown_field An assistant key sent a request body field this operation does not accept. The response does not repeat the field or its value; it lists the fields the operation does accept. This applies to assistant keys only: personal API tokens and integration tokens ignore a body field an operation does not accept. accepted_fields: the body fields this operation accepts (an empty list when it accepts none)
422 validation_failed A write's request body failed field-level validation. fields: a Hash of field name to an array of message fragments, e.g. {"cost":["must have at most 2 decimal places"]}. A rule about the request as a whole rather than one field (a service contract with no visits left) is keyed base, e.g. {"base":["This appointment can't be booked for this instrument and vendor. Ask your organization's administrator for details."]}
422 idempotency_key_reused The same Idempotency-Key was sent with a different request -- keys are single-use per token, across every endpoint. Fix the request and retry with a NEW key, or (if the earlier attempt is the one that should have succeeded) inspect it directly rather than resending. —
429 rate_limited The token exceeded the rate limit for the current one-minute window. The response also carries a Retry-After header, in seconds. limit: the per-window request limit
retry_after: seconds until the window resets
429 registration_in_progress Another webhook registration for the same organization was still having its URL checked. Registrations are checked one at a time per organization; retry after the Retry-After header's seconds. retry_after: seconds to wait before retrying
500 internal_error An unexpected server error occurred. It has been reported to LabDesk. request_id: the request id, for support correlation. Present only when it is a UUID: LabDesk's own, or an X-Request-Id header sent in that form.

Rate limits

Each token may make at most 120 requests per 1 minute -- one fixed window, shared by every worker using that token (not a per-process or per-IP limit). Every response to a request that gets past authentication and the API-enabled check carries X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset -- a success, and also a 403 insufficient_scope, 404, or 422. A 400 token_in_url, 401 unauthorized, or 403 feature_disabled is answered before the limit is counted, so it carries none of these headers and does not use up a request. Going over answers 429 rate_limited with a Retry-After header (seconds).

Idempotency

Send an Idempotency-Key header on any write (1 to 255 printable ASCII characters, e.g. your Jira issue key plus a purpose: LAB-123-booking) so a retried request never creates a duplicate. Without one, a retried POST creates a second record.

A key is single-use per token, across every endpoint: the same key sent with a different request answers 422 idempotency_key_reused. Only a successful response is stored, so a corrected retry after a 422 succeeds with the same key. Replaying the same key with the same request returns the original response again, with an Idempotent-Replayed: true header, and creates nothing new.

A key whose first request is still in progress answers 409 idempotency_conflict on a concurrent retry -- wait for the first to finish, then retry with the same key. Keys are kept 24 hours.

Field rules

  • Booking a service appointment requires equipment_id, vendor_id, start_date, and end_date; every id must belong to your organization.
  • appointment_type is optional, and if sent must be one of: preventive corrective
  • end_date may not be before start_date -- the same date/time for both is fine.
  • cost accepts at most two decimal places, sent as a string (e.g. "150.00"), up to 9999999999.99; a value with more than two decimal places is 422 validation_failed naming cost -- it is never silently rounded on the way in. Every returned cost is a two-decimal string ("150.5" in → "150.50" out).
  • notes on a service appointment is at most 10000 characters; an equipment note is at most 10000 characters.
  • If the equipment and vendor have a service contract whose period covers the appointment's dates, that contract's visit count applies: once every visit it allows is booked, another booking is 422 validation_failed with a message under details.fields.base -- base is about the booking as a whole, not one field. Which message depends on whether the token could read the contract itself: a personal token whose user may view service contracts, or an assistant key whose user may view service contracts and which has the contracts:read scope, gets “Service contract has no remaining appointments”; an integration token, an assistant key without contracts:read, or a user without that permission, gets “This appointment can't be booked for this instrument and vendor. Ask your organization's administrator for details.”, which does not describe any contract. A booking no contract covers is accepted as an off-contract visit.
  • Equipment that has been disposed of cannot be booked: 422 validation_failed naming equipment_id.
  • A body key that is not one of the documented fields for that endpoint is silently ignored -- it is never an error, and it never appears in the response.

How API writes appear in LabDesk

A note your integration posts shows on the equipment's Notes tab as "via integration ‘<token name>’"; a booking your integration makes appears on the equipment's Schedule the same way. Both are recorded in your organization's audit trail. Name your tokens after the system that uses them (e.g. "Jira integration") so that attribution is meaningful to whoever reads it later.

A worked recipe: booking a visit from a Jira ticket

A Jira automation reacts to an issue -- say, LAB-123 -- that names an asset by barcode and a service vendor by name. These four calls, run in order with your own token in place of $TOKEN, resolve both ids, book the visit, and leave a note that shows up on the asset in LabDesk.

1. Find the vendor id

LAB-123 names the vendor by name ("Docs Vendor Co"), but a booking needs its id. List vendors and match by name -- there is no name filter, so matching happens in your automation, not the API. The list is paginated: ask for 100 at a time (per_page=100, the maximum), and if the name is not on this page and meta.total_pages is greater than meta.page, repeat the call with page=2, then page=3, and so on up to meta.total_pages. A GET is always safe to re-send if a step times out.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/vendors?page=1&per_page=100"

2. Find the equipment id from its barcode

LAB-123 names the asset by barcode ("EQ-1042"). Filter the equipment list by barcode to resolve it to an id.

curl \
  -H "Authorization: Bearer $TOKEN" \
  "https://labdeskinc.com/api/v1/equipment?barcode=EQ-1042"

3. Book the visit

The Idempotency-Key is the issue key plus a purpose ("LAB-123-booking") -- never reused for a different request. If the automation times out waiting for a response, simply re-send this exact request with the same key: a genuine retry replays the stored response instead of booking a second visit.

curl \
  -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-123-booking" \
  -d '{"equipment_id":1042,"vendor_id":2001,"start_date":"2026-01-25T15:00:00Z","end_date":"2026-01-25T17:00:00Z","appointment_type":"preventive","cost":"150.00","notes":"Preventive maintenance -- opened from LAB-123."}' \
  "https://labdeskinc.com/api/v1/service_appointments"

4. Add a note

A different purpose on the SAME issue gets its OWN key ("LAB-123-note") -- reusing step 3's key here, for a different request, is refused with 422 idempotency_key_reused. If this step answers 422 validation_failed (for example, the note text was rejected), fix the request and re-send with the SAME key: only a successful response is ever stored, so a corrected retry always gets through.

curl \
  -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: LAB-123-note" \
  -d '{"note":"Booked via LAB-123 -- see the linked service appointment."}' \
  "https://labdeskinc.com/api/v1/equipment/1042/notes"

Webhooks

Instead of polling, an integration can ask LabDesk to POST an event to its own HTTPS endpoint when something happens: an appointment is booked or changed, an asset falls due or overdue, a calibration record or a document is added. Every delivery is signed so your receiver can prove it came from LabDesk.

Registering a webhook

An integration registers its own webhooks with an integration token that has the Read & write scope: register a webhook with an https URL and the event types it wants. The response carries the signing secret (whsec_…). It is shown once, in that response only, and LabDesk cannot show it again: store it where your receiver can read it. If you lose it, delete the subscription and register again — the new subscription gets a new secret.

Each integration token sees and manages only the webhooks it registered itself: listing, reading, deleting and the delivery log all answer for the calling token's subscriptions, and another token's is a 404. Your organization's administrators see every webhook under Account → Webhooks.

An organization can have up to 10 active subscriptions.

Events

Subscribe to any of these. data is the same object the linked read operation returns for that record, so the code that parses the API parses the event too.

Event typeSent whendata
service_appointment.created A service appointment is booked, in LabDesk or through this API. GET /api/v1/service_appointments/{id}
service_appointment.updated A field the API shows changes on an appointment -- edited in LabDesk, moved through calendar sync, or re-pointed when a vendor merge folds its vendor into another. The envelope adds changed_fields: the names of the fields that changed, as the API names them. A save that changes none of them sends nothing. GET /api/v1/service_appointments/{id}
equipment.service_due_soon An asset's next service date comes within the next 30 days (the due_soon window). GET /api/v1/equipment/{id}
equipment.service_overdue An asset's next service date has passed (the overdue window): sent the day after the due date. GET /api/v1/equipment/{id}
equipment.calibration_due_soon An asset's next calibration due date comes within the next 30 days (the due_soon window). GET /api/v1/equipment/{id}
equipment.calibration_overdue An asset's next calibration due date has passed (the overdue window): sent the day after the due date. GET /api/v1/equipment/{id}
calibration_record.created A calibration record is added to an asset in LabDesk. GET /api/v1/calibration_records/{id}
document.attached A document is attached to an asset -- uploaded in LabDesk, or filed from a document import. Calibration certificates are not documents here and send nothing. The event never carries a download link. An object with id, filename, content_type, byte_size, created_at, equipment (equipment is the asset's id, barcode and name).

The envelope

Every delivery's body is one JSON object: id (evt_…, the same value as the LabDesk-Webhook-Id header), type (one of the event types above), created_at (when the event happened, ISO 8601 in UTC) and data.

{
  "id": "evt_7d3f0a52-1c2b-4e5f-9a6b-0c1d2e3f4a5b",
  "type": "equipment.service_overdue",
  "created_at": "2026-01-15T15:00:00Z",
  "data": {
    "id": 1042,
    "barcode": "EQ-1042",
    "serial_number": "SN-1042",
    "nickname": "Docs example asset",
    "status": {
      "id": 9001,
      "name": "Active"
    },
    "department": {
      "id": 8001,
      "name": "Docs Department"
    },
    "location": {
      "id": 7001,
      "name": "Docs Lab"
    },
    "next_service_date": "2026-01-01",
    "next_calibration_due": "2026-01-10",
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  }
}

service_appointment.updated adds changed_fields beside data: the names of the fields that changed, as data names them.

{
  "id": "evt_2b9c4e61-8f0a-4d3b-b7e5-1a2c3d4e5f60",
  "type": "service_appointment.updated",
  "created_at": "2026-01-15T15:00:00Z",
  "data": {
    "id": 3001,
    "appointment_type": "preventive",
    "start_date": "2026-01-10T15:00:00Z",
    "end_date": "2026-01-10T17:00:00Z",
    "cost": "150.00",
    "notes": "Docs example appointment",
    "equipment": {
      "id": 1042,
      "barcode": "EQ-1042",
      "name": "Docs example asset"
    },
    "vendor": {
      "id": 2001,
      "name": "Docs Vendor Co"
    },
    "posted_by": {
      "type": "integration",
      "id": 9101,
      "name": "Jira integration"
    },
    "created_at": "2026-01-15T15:00:00Z",
    "updated_at": "2026-01-15T15:00:00Z"
  },
  "changed_fields": [
    "start_date",
    "end_date"
  ]
}

Headers

Every delivery is a POST with a JSON body (Content-Type: application/json) and these headers:

HeaderValueMeaning
LabDesk-Webhook-Idevt_<uuid>A copy of the envelope's id, for logging and routing. The signature does not cover this header, so never dedupe on it: dedupe on the id inside the body you verified.
LabDesk-Webhook-Timestamp<unix seconds>When this attempt was signed. Every attempt is signed afresh, so a retry carries a newer timestamp over the same body.
LabDesk-Signaturet=<unix seconds>,v1=<hex>t is the same timestamp; v1 is the signature. Other keys may appear beside v1 in future -- ignore any you do not know.
User-AgentLabDesk-Webhooks/1Identifies LabDesk's webhook sender.

Header names are case-insensitive, and they can reach your server in a different case from the one shown here: LabDesk's HTTP client sends Labdesk-Signature, for example. Match header names case-insensitively — most frameworks already do (in Rails, request.headers["LabDesk-Signature"]).

Verifying a delivery

  1. Read the raw request body — the exact bytes you received, before any JSON parsing.
  2. From LabDesk-Signature, take t and v1 (comma-separated key=value pairs; ignore any other key).
  3. Reject the delivery if t is more than 300 seconds (5 minutes) away from your own clock.
  4. Compute HMAC-SHA256 over <t>.<raw body> — the timestamp, a dot, then the body — keyed with the whole secret, including the whsec_ prefix, and write it as lowercase hex.
  5. Compare it with v1 in constant time. Accept only a match.
  6. Parse the verified body and skip any event whose id you have already processed: retries reuse it. Dedupe on that signed id, never on the LabDesk-Webhook-Id header, which the signature does not cover.

The same steps in Ruby, needing only the standard openssl library:

require "openssl"

# Returns true only for a genuine LabDesk delivery signed within the last
# 300 seconds. Pass your subscription's secret, the request body exactly
# as received, and the LabDesk-Signature header -- in Rails, for example:
#   labdesk_webhook_valid?(ENV.fetch("LABDESK_WEBHOOK_SECRET"), request.raw_post,
#                          request.headers["LabDesk-Signature"])
def labdesk_webhook_valid?(secret, raw_body, signature_header, now: Time.now.to_i, tolerance: 300)
  pairs = signature_header.to_s.split(",").map { |pair| pair.strip.split("=", 2) }
  t = pairs.find { |key, _| key == "t" }&.last
  v1 = pairs.find { |key, _| key == "v1" }&.last
  return false if t.nil? || v1.nil?

  timestamp = Integer(t, 10, exception: false)
  return false if timestamp.nil? || (now - timestamp).abs > tolerance

  # Sign the raw body bytes you received -- never JSON you parsed and re-serialized.
  # The key is the whole secret, "whsec_" prefix included.
  expected = OpenSSL::HMAC.hexdigest("SHA256", secret, "#{t}.#{raw_body}")
  OpenSSL.secure_compare(expected, v1)
end

# Retries reuse the event id. After verifying, dedupe on the id INSIDE the
# body -- JSON.parse(raw_body)["id"] -- and skip any you have already
# processed. Never dedupe on the LabDesk-Webhook-Id header: the signature
# does not cover it, so a replayed delivery could carry a different one.

Delivery rules

LabDesk sends each delivery as an HTTPS POST to the URL you registered, on port 443, and only to public internet addresses: the address is checked at registration and again before every attempt, and LabDesk connects to the address it checked.

Redirects are never followed: a 3xx answer counts as a failed attempt. Only a 2xx status counts as delivered. Each attempt allows 5 seconds to connect, 5 seconds to send the request and 10 seconds waiting for your response, with at most 15 seconds for the whole attempt. Your response body is never read, and the status line and headers together must stay under 16 KB and 128 lines: a larger response head fails the attempt.

Answer 2xx as soon as you have verified and stored the event, then do any slow work — opening a ticket, calling other systems — afterwards.

Retries and automatic disabling

Anything other than a 2xx fails the attempt, and LabDesk tries again: up to 6 attempts over about 10 hours and 36 minutes. Each wait runs from the previous attempt.

AttemptStartsAfter the first attempt
1About 2 seconds after the event (the daily due-soon and overdue events are spaced out: see below)--
21 minute after attempt 1about 1 minute
35 minutes after attempt 2about 6 minutes
430 minutes after attempt 3about 36 minutes
52 hours after attempt 4about 2 hours and 36 minutes
68 hours after attempt 5about 10 hours and 36 minutes

If 5 deliveries in a row fail -- each after all 6 attempts -- LabDesk disables the subscription (disabled_reason: failures), drops its queued deliveries, and emails the people holding your organization's Administrator role. Any delivered event resets the count. Once your receiver is fixed, re-enable the subscription under Account → Webhooks. Events that happened while it was disabled are not sent later.

Due-soon and overdue events

Once a day at 15:00 UTC LabDesk checks your assets for the four equipment.* events: due soon when the due date is within the next 30 days, overdue from the day after the due date — the same assets equipment due for service and equipment due for calibration list for window=due_soon and window=overdue. Each asset sends each of these events once per due date; if the due date changes, the new date can send again. One day's events are due about 2 seconds apart, up to 30 minutes after the scan starts (any later events are all due at that mark, and one event's deliveries to several subscriptions are due together); like every delivery they then go out one at a time.

These events are sent only for thresholds an asset crosses after your subscription became active, or was re-enabled. An asset's due-soon threshold is its due date minus 30 days; its overdue threshold is the day after its due date. Assets that were already due soon or overdue when you subscribed are not sent: read them once from the two lists above.

One gap to plan for: an asset created, or re-dated, after you subscribed, whose due date already lies within the next 30 days, gets no due-soon event when its due date minus 30 days falls before the day your subscription became active. It still gets the overdue event the day after its due date. If you need every due-soon asset, also poll due_for_service?window=due_soon and due_for_calibration?window=due_soon.

The delivery log

Every delivery and its attempts are recorded in the subscription's delivery log — list a webhook's deliveries, or open Account → Webhooks in LabDesk. The log keeps 30 days and never includes the payload. next_attempt_at is the earliest time the next attempt may start. Deliveries go out one at a time, across every LabDesk organization. When several are due at once, the organization with the fewest deliveries waiting goes first, and each organization's own deliveries go oldest first. So another organization's burst delays yours by at most one attempt (15 seconds), while a backlog of your own -- a vendor merge, say -- is sent one delivery at a time, and its later attempts start correspondingly after their next_attempt_at.

Good to know

  • Delivery is at least once: an event can arrive more than once, for example when your server stored it but its 2xx answer was lost. Retries reuse the event id, so dedupe on the id in the verified body — not on the unsigned LabDesk-Webhook-Id header.
  • Events can arrive out of order, especially around retries. Use created_at and the record's own updated_at rather than arrival order.
  • A vendor merge in LabDesk sends one service_appointment.updated per appointment it moves (changed_fields ["vendor"]), so a large merge arrives as a burst.
  • If the integration token that registered a subscription is revoked, the subscription is disabled at once. If the token expires, nothing more is sent and the subscription is disabled. Either way, create a new token and register again.
  • Events are sent only for records the API can read: nothing for a deleted asset or appointment.
  • If LabDesk switches the API off for your organization, nothing more is sent from that moment: each queued delivery is marked abandoned (last_error public_api_disabled) when its next attempt comes due, and is not sent later if the API is switched back on.
  • Jira Automation's incoming-webhook URL answers 200 even when its secret is wrong or the rule does not exist, so LabDesk records such a delivery as delivered. After registering a Jira URL, confirm in the automation rule's audit log that the rule actually ran.