Query safely tenant-scoped audit events.
GET
/v1/tenants/{tenantNumber}/audit-logs
const url = 'https://api.dev.iot-sens.schlossers.at/v1/tenants/1/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/tenants/1/audit-logs?eventType=security_event&limit=25' \ --header 'Authorization: Bearer <token>'Returns 25 tenant-scoped metadata events at a time without an exact
total. The first page fixes to; every continuation keeps that anchor,
Tenant scope, and all filters.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenantNumber
required
integer format: int32
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 tenant 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