Skip to content

Get device activity log

GET
/api/v1/devices/{id}/activity
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.

id
required
string format: uuid
Example
550e8400-e29b-41d4-a716-446655440000

Device UUID

limit
number
default: 20

Maximum number of activity items to return

x-organization-id
string format: uuid

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.

Device activity retrieved successfully

Media typeapplication/json
object
items
required

Recent activity items

Array<object>
object
id
required

Unique event ID

string
type
required

Event type

string
Allowed values: deployment.status device.registered certificate.issued registry-sync-failed
message
required

Human-readable event message

string
timestamp
required

When the event occurred

string format: date-time
metadata

Additional metadata about the event

object
Example
{
"items": [
{
"type": "deployment.status"
}
]
}

Unauthorized - Invalid or missing authentication

Forbidden - Insufficient permissions

Device not found