Query global audit events as a platform administrator.
GET
/v1/audit-logs
const url = 'https://api.dev.iot-sens.schlossers.at/v1/audit-logs?eventType=security_event&limit=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.dev.iot-sens.schlossers.at/v1/audit-logs?eventType=security_event&limit=25' \ --header 'Authorization: Bearer <token>'Returns 25 metadata events at a time without an exact total. The first
page fixes to as the upper investigation anchor. Continuations must
reuse that anchor and every filter; refresh without a cursor creates a
new anchor.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”from
string format: date-time
Both time bounds are required together and limited to 31 days.
to
string format: date-time
Fixed upper investigation anchor; continuations must reuse it.
eventType
string
action
string
actorId
string
entityType
string
entityId
string
correlationId
string
method
string
route
string
statusCode
integer
cursor
string
Opaque continuation token; reuse the original filters and scope.
limit
integer
Number of timeline records to return; defaults to 25, accepts 1 through 100, and is bound into continuation cursors.
Responses
Section titled “Responses”Reverse-chronological audit event page.
Media typeapplication/json
object
items
required
Array<object>
object
auditLogId
required
string format: uuid
eventType
required
string
actorType
required
string
actorId
required
string
action
required
string
entityType
required
string
occurredAt
required
string format: date-time
outcome
required
string
nextCursor
string
Example
{ "items": [ { "eventType": "security_event", "actorType": "anonymous", "outcome": "success" } ]}default
Section titled “default”A safe platform error response.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string