Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

ThingsBoard audit-log-controller API

Audit Log

ThingsBoard audit-log-controller API is one of 58 APIs that ThingsBoard publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 11 JSON Schema definitions.

Tagged areas include audit-log-controller. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 11 JSON Schemas.

This API exposes 4 operations across 4 paths, and defines 8 schemas. It is described by OpenAPI 3.1.0, at version 4.3.0.3DEMO.

Requests are made against 2 base URLs: https://demo.thingsboard.io, http://localhost:8080.

4 operations 4 paths 8 schemas 4 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
4.3.0.3DEMO
Servers
https://demo.thingsboard.io
http://localhost:8080
Authentication
HTTP Loginpassword, API Key
License
Resource Areas
1

Authentication & Security 2

ThingsBoard audit-log-controller API declares 2 security schemes for authenticating requests. It uses HTTP loginpassword authentication (HTTP login form). An API key is passed in the header as X-Authorization (API key form).

  • HTTP login form — Enter Username / Password
  • API key form — Enter the API key value with 'ApiKey' prefix in format: ApiKey Example: ApiKey tb5te51SkLRYpjGrujUGwqkjFvooWBlQpVe2An2Dr3w13wjfxDW NOTE: Use only ONE authentic…

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 GET. Each is listed below with its method, path, parameters, and response codes.

audit-log-controller 4

Audit Log

GET
/api/audit/logs
Get All Audit Logs (getAuditLogs)
getAuditLogs 8 params → 200
GET
/api/audit/logs/user/{userId}
Get Audit Logs by User Id (getAuditLogsByUserId)
getAuditLogsByUserId 9 params → 200
GET
/api/audit/logs/entity/{entityType}/{entityId}
Get Audit Logs by Entity Id (getAuditLogsByEntityId)
getAuditLogsByEntityId 10 params → 200
GET
/api/audit/logs/customer/{customerId}
Get Audit Logs by Customer Id (getAuditLogsByCustomerId)
getAuditLogsByCustomerId 9 params → 200

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are AuditLog (12 properties), PageDataAuditLog (4 properties), CustomerId (2 properties), TenantId (2 properties). Each schema is shown below with its type and property counts.

PageDataAuditLog
object
4 properties
AuditLog
object
12 properties
JsonNode
A value representing the any type (object or primitive)
UserId
object
2 properties 2 required
AuditLogId
object
1 property 1 required
TenantId
object
2 properties 2 required
CustomerId
object
2 properties 2 required
EntityId
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

thingsboard-audit-log-controller-api-openapi.yml Raw ↑

Other APIs ThingsBoard publishes across the network.

ThingsBoard admin-controller API
ThingsBoard ai-model-controller API
ThingsBoard alarm-comment-controller API
ThingsBoard alarm-controller API
ThingsBoard api-key-controller API
ThingsBoard asset-controller API
ThingsBoard asset-profile-controller API
ThingsBoard auth-controller API
ThingsBoard calculated-field-controller API
ThingsBoard component-descriptor-controller API
ThingsBoard customer-controller API
ThingsBoard dashboard-controller API