QHR Developers

List every device scan in the company

GET/attendance_device_movements
Read token is enoughView attendance devices attendance_device/viewRequires feature attendance_deviceAvailable in Claudeattendance_device_movements.list

Returns the raw scans from every device, newest first: which device, which number and employee, when the person scanned and when it reached QHR, in or out, how they verified, and what QHR did with it (processing_state). A scan is evidence: it is never edited, and a disagreement is recorded in its state.

When to use: to answer "did Sara's scan this morning register?" across all devices, or to find scans that need review (q[processing_state_eq]=review_required). For one device use attendance_device_movements.list_for_device.

Prerequisites: none. Employee ids come from employees.list or employees.search.

Side effects: none. Up to 50 scans per page. Scans are kept for twelve months.

Before you call this

You will need ids that come from these operations:

Parameters

NameInTypeDescriptionExample
pagequeryintegerPage number, starting at 1.
min 1
1
per_pagequeryintegerRecords per page. Each list states its maximum.
min 1
20
q[employee_id_eq]queryintegerOnly this employee's scans (id from employees.list or employees.search).1203
q[external_employee_no_eq]querystringOnly scans of this device number, exactly.0123
q[processing_state_eq]querystringOnly scans in this state, e.g. review_required.
Allowed values: pending_link, pending_processing, processed, superseded, repeat_scan, review_required, failed, after_day_ended
review_required
q[occurred_at_gteq]querystring (date-time)Scanned at or after this time (ISO 8601).2026-11-26T00:00:00+03:00
q[occurred_at_lteq]querystring (date-time)Scanned at or before this time (ISO 8601).2026-11-26T23:59:59+03:00
Accept-LanguageheaderstringLanguage of messages and translated labels. English when omitted.
Allowed values: ar, en
ar

Response

200 A page of scans.

FieldTypeDescription
recordsRequiredarray<object>The scans on this page, newest first.
records[].idintegerMovement id.
records[].deviceobjectThe device: id and name (name is null once the device was removed).
records[].external_employee_nostringNumber the device reported.
records[].employeeobjectThe linked employee: id and full_name; null while the number belongs to nobody.
records[].occurred_atstring (date-time)When the person scanned, by the device's clock, UTC ISO 8601.
records[].received_atstring (date-time)When the scan reached QHR, UTC. Far from occurred_at when the device was offline.
records[].effective_directionstringin or out after the device's usage mode is applied.
records[].raw_directionstringDirection code the device itself sent.
records[].verification_methodstringfingerprint, card, face, password, fingerprint_password or card_fingerprint.
records[].processing_statestringpending_link (number belongs to nobody), pending_processing, processed (applied to attendance), superseded, repeat_scan, review_required, failed or after_day_ended.
Allowed values: pending_link, pending_processing, processed, superseded, repeat_scan, review_required, failed, after_day_ended
records[].processing_notestringWhy the scan stopped where it did, e.g. day_ended_by_employee.
records[].attendance_record_idintegerAttendance day this scan produced, when it produced one.
paginationRequiredobject
pagination.current_pageRequiredintegerThis page's number.
pagination.per_pageRequiredintegerRecords per page.
pagination.total_entriesRequiredintegerRecords across all pages.
pagination.pagesRequiredintegerNumber of pages.

Errors

HTTPCodeMeaningHow to fix
401token_missingNo Authorization: Bearer … header, or it is malformed.Send Authorization: Bearer qhr_… with the full token.
401token_invalidThe token is unknown or wrong, or its owner's account is locked.Check the token was copied in full, or create a new one in QHR › Settings › API & Integrations.
401token_expiredThe token is past its expiry date.Create a new token.
401token_revokedThe token was revoked by its owner or an admin, or the owner was removed from the company (which revokes all their tokens).Create a new token, or ask your admin. If the owner was removed, they must be re-invited to the company first.
401tenant_inactiveThe company account is suspended.Contact QHR support.
403forbiddenThe token owner's role lacks the permission this operation needs.Ask an admin to grant the permission shown on this operation (x-permission).
403employee_inactiveThe token owner's employee record is not active.HR must reactivate the employee record.
403tenant_access_revokedThe token's owner is no longer an active member of this company. Rare: removing a member normally revokes their tokens, which answers 401 token_revoked instead.The owner must be re-invited to the company, then create a new token. If the owner is still a member, contact QHR support.
This endpoint can also return the errors that can happen on any endpoint →402 / 412 / 425 entitlement_blocked · 429 rate_limited · 500 internal_error

See the full error catalogue →