Timeline of specific type for device​
Gets timeline data of a specific type for a device
You may also be interested in the "Chasm" endpoints for live modern messaging observability.
Various types will take differing times to respond, some will fail depending on the device data and patterns of data available.
Some types require elevated permissions to access, in which case you would receive an error.
Authorizations​
API Key for authentication. Retrieval from either API version login routes, or other authentication token type. See Authentication for more details.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."Parameters​
Path Parameters
Identifier of the device. Can be ID, IMEI, or Serial number. Use format 'id:1234', 'imei:139872149701', or 'serial:43000001'
Timeline type (bootloader, activation, plans, devicemessage, datapoint, backendnote, pairing, sim)
Query Parameters
Only return events after this time (RFC3339). Defaults to 14 days ago.
Only return events before this time (RFC3339). Defaults to now.
Request Body​
Request example
Responses​
OK
Try this endpoint
Playground​
Authorization
Variables
Body
OpenAPI definition ​
References are expanded below, except recursive definitions and references with sibling fields. Documentation overrides are included. Full original OpenAPI spec (JSON).
View endpoint OpenAPI definition
info:
title: Lightbug API
version: '2'
externalDocs:
description: ''
url: ''
openapi: 3.1.0
servers:
- url: https://api.lightbug.cloud/v2
security:
- ApiKeyAuth: []
tags: []
paths:
/devices/{id}/timeline/{type}:
get:
description: |-
Gets timeline data of a specific type for a device
You may also be interested in the "Chasm" endpoints for live modern messaging observability.
Various types will take differing times to respond, some will fail depending on the device data and patterns of data available.
Some types require elevated permissions to access, in which case you would receive an error.
parameters:
- description: Only return events after this time (RFC3339). Defaults to 14 days ago.
in: query
name: since
schema:
type: string
- description: Only return events before this time (RFC3339). Defaults to now.
in: query
name: until
schema:
type: string
- description: Identifier of the device. Can be ID, IMEI, or Serial number. Use format 'id:1234', 'imei:139872149701', or 'serial:43000001'
in: path
name: id
required: true
schema:
type: string
- description: Timeline type (bootloader, activation, plans, devicemessage, datapoint, backendnote, pairing, sim)
in: path
name: type
required: true
schema:
type: stringrequestBody:
content:
application/json:
schema:
type: object responses:'200':
content:
application/json:
schema:
properties:
data:
description: The timeline data
items:
properties:
description:
description: A text description of the event
type: string
meta:
additionalProperties:
type: string
description: Optional, A series of additional meta data for the event
type: object
timestamp:
description: The time of the event
type: string
type:
description: The type of event. Can be split with /
type: string
type: object
type: array
uniqueItems: false
since:
description: The time after which events are included
type: string
until:
description: |-
The time up until which the timeline was created for (can be used for polling as the next since)
In case systems have lag, it might be wise to use a time before this time to poll for more data, deduplicating what you don't want
type: string
type: object
description: OK'400':
content:
application/json:
schema:
properties:
code:
example: 400
type: integer
message:
example: status bad request
type: string
type: object
description: Bad Request'401':
content:
application/json:
schema:
properties:
code:
example: 400
type: integer
message:
example: status bad request
type: string
type: object
description: Unauthorized'403':
content:
application/json:
schema:
properties:
code:
example: 400
type: integer
message:
example: status bad request
type: string
type: object
description: Forbidden'404':
content:
application/json:
schema:
properties:
code:
example: 400
type: integer
message:
example: status bad request
type: string
type: object
description: Not Found'429':
content:
application/json:
schema:
type: string
description: Limit exceeded
headers:
X-Ratelimit-Limit:
schema:
type: integer
X-Ratelimit-Remaining:
schema:
type: integer
X-Ratelimit-Reset:
schema:
type: integer security:
- ApiKeyAuth: []
summary: Timeline of specific type for device
tags:
- devices
operationId: get-devices-id-timeline-type
components:
securitySchemes:
ApiKeyAuth:
in: header
name: Authorization
type: apiKey
description: API Key for authentication. Retrieval from either API version login routes, or other authentication token type. See <a href='/apis/authentication'>Authentication</a> for more details.
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...