Skip to main content
GET
List the Log Lines a Device has sent

Authorizations

Authorization
string
header
required

A user API token, or a product API key created in a product's settings.

A product API key only works on the routes for its own product, under /api/orgs/{org_name}/products/{product_name}, and on /api/devices/{identifier} for that product's devices. What it may do there is decided by the role it holds, the same way a member's role decides what they may do.

Path Parameters

identifier
string
required

Device Identifier

Query Parameters

level
string

Only lines logged at these levels. Comma separated for more than one. Matched as given — a level no device has logged at matches nothing

Only lines whose message contains this text, ignoring case. Matched literally, so % and _ are searched for rather than treated as wildcards

since
string<date-time>

Only lines logged at or after this ISO 8601 timestamp

before
string<date-time>

Only lines logged strictly before this ISO 8601 timestamp. To page back through history, pass the timestamp of the oldest line you received

limit
integer
default:100

How many lines to return, from 1 to 1000

order
enum<string>
default:desc

desc for newest first, asc for oldest first

Available options:
desc,
asc

Response

Device Log List Response

Device log list response

data
DeviceLogLine · object[]

The matching log lines, newest first unless order=asc was given