Skip to content
You're viewing documentation for v2026.11.8-beta. It may be out of date.Go to latest
TimescaleDB Enterprise
Esc
↑↓navigate↵open⌘Jpreview

Get an audit log row

The row with all its fields, for example the error text of a refused request.

GET/api/v1/audit-events/{id}
Authorization
tse_sessionAPI key · cookierequired
Path parameters
idinteger<int64>required
Responses
200

OK

actorstringrequired
atstring<date-time>required
client_ipstringrequired
duration_msinteger<int64> | nullrequired

Time of the request in milliseconds. Null for a row from before 0.11.0

errorstringrequired

Error text that the client got for a 4xx or 5xx answer, at most 2 KB. The console removes credentials from it. Empty for a good answer

http_methodstringrequired
idinteger<int64>required
login_methodstringrequired
operation_idstringrequired
pathstringrequired
querystringrequired

Query string of the request, decoded. The console removes credentials from it

rolestringrequired
statusinteger<int64>required
targetstringrequired

Path parameters of the request, for example id=...

user_agentstringrequired
default

Error

codestring

Stable code of the refusal, when the route has codes

detailsstring[]

Additional detail, e.g. per-field validation failures

errorstringrequired

Human-readable error message

Request
curl -X GET 'https://console.example.com/api/v1/audit-events/0' \
  -H 'Cookie: tse_session=YOUR_API_KEY' \
  -H 'Accept: application/json'
Response
{
  "actor": "string",
  "at": "2019-08-24T14:15:22Z",
  "client_ip": "string",
  "duration_ms": 0,
  "error": "string",
  "http_method": "string",
  "id": 0,
  "login_method": "string",
  "operation_id": "string",
  "path": "string",
  "query": "string",
  "role": "string",
  "status": 0,
  "target": "string",
  "user_agent": "string"
}