Responses

🧾 Standard Response Structure

All NX API endpoints return a standardized top-level response object.

This structure applies consistently, regardless of the type of record returned (e.g., Employees, Checks, TimeCards, etc.).

Example

{
  "records": [ /* array of records */ ],
  "length": 10,
  "status": "SUCCESS",
  "count": 125,
  "duration": 0.284,
  "serverRequestTimestamp": "2025-11-02T16:55:51.920Z",
  "serverResponseTimestamp": "2025-11-02T16:55:52.204Z",
  "serverClientDrift": 0
}

Top-Level Fields

FieldTypeDescription
recordsarrayThe collection of returned objects. Each object follows its entity-specific schema.
lengthintegerNumber of records returned in the current response.
statusstringIndicates request success or failure (e.g., "SUCCESS", "ERROR").
countintegerTotal number of records matching the query (may exceed length if paginated).
durationnumberTotal time in seconds taken to process the request.
serverRequestTimestampstring (ISO 8601 UTC)Timestamp when the NX API received the request.
serverResponseTimestampstring (ISO 8601 UTC)Timestamp when the NX API completed the response.
serverClientDriftnumberTime difference, in seconds, between the client’s reported clock and the NX server clock.