Get device activity log
const url = 'http://localhost:3000/api/v1/devices/550e8400-e29b-41d4-a716-446655440000/activity?limit=20';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/v1/devices/550e8400-e29b-41d4-a716-446655440000/activity?limit=20' \ --header 'X-API-Key: <X-API-Key>'Retrieves recent activity events for a specific device, including deployment status changes and certificate events.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
550e8400-e29b-41d4-a716-446655440000Device UUID
Query Parameters
Section titled “Query Parameters”Maximum number of activity items to return
Header Parameters
Section titled “Header Parameters”UUID of the organization (tenant) the request acts in. It selects the tenant and grants nothing: the server checks membership or an open tenant switch. Not needed for global operations. A malformed value returns 400. API keys are fixed to their own organization; another organization returns 403. The x-organization-source header grants nothing.
Responses
Section titled “Responses”Device activity retrieved successfully
object
Recent activity items
object
Unique event ID
Event type
Human-readable event message
When the event occurred
Additional metadata about the event
object
Example
{ "items": [ { "type": "deployment.status" } ]}Unauthorized - Invalid or missing authentication
Forbidden - Insufficient permissions
Device not found