# Modules / Devices

Device records

## Get devices

 - [GET /api/devices](https://apidocs.logmycare.co.uk/docs/openapi/modules-devices/getdevices.md): Retrieves devices (tablets, phones, laptops) registered to care homes for logging activities.
All ObjectId reference fields are populated one level deep with { id, name }.
The homes array in the response is filtered to only include entries for homes the API key has access to.
Filters:

  type - Filter by device type (tablet, phone, laptop)
  deviceStatus - Filter by home assignment status (pending, approved, blocked)
  startDate, endDate - Date range filtering on createdOn
  page, limit - Pagination controls (default: page=1, limit=10, max=100)

## Get device by ID

 - [GET /api/devices/{id}](https://apidocs.logmycare.co.uk/docs/openapi/modules-devices/getdevicebyid.md): Retrieves complete device information including populated user references, home assignments with status, and audit fields.
The homes array is filtered to only include entries for homes the API key has access to. FCM (push notification) fields are excluded from the response.

