SmartGare
API referenceEndpoints

Search the audit trail

Every action a person took in any module, and every sign-in the server saw: who, what, on what, when and how it ended, newest first, page by page. An action is a request and the end that follows it. **Required permission:** `identity.audit:read`

GET/identity/v1/audit-records

Every action a person took in any module, and every sign-in the server saw: who, what, on what, when and how it ended, newest first, page by page. An action is a request and the end that follows it.

Required permission: identity.audit:read

AuthorizationBearer <token>

In: header

Query Parameters

actor?string

Who acted: their identity-provider id or their username, exactly.

Length0 <= length <= 255
action?string

What was done: the exact code, such as referential.activate_carrier, or its start ending with a dot, such as referential. for one module.

Length0 <= length <= 255
target_type?string

The kind of thing acted on, such as referential.carrier, exactly.

Length0 <= length <= 255
target_id?string

The thing acted on, by its id, exactly.

Length0 <= length <= 255
outcome?string

How it ended, or the request itself.

Value in

  • "REQUESTED"
  • "DONE"
  • "REFUSED"
  • "FAILED"
  • "UNCONFIRMED"
  • "REQUESTED"
  • "DONE"
  • "REFUSED"
  • "FAILED"
  • "UNCONFIRMED"
from?string

The first instant, included.

Formatdate-time
to?string

The instant the search stops at, excluded.

Formatdate-time
page?integer

The page, from zero.

Formatint32
Range0 <= value
size?integer

Records a page holds, 1 to 200; 50 when left out.

Formatint32
Range1 <= value <= 200

Response Body

*/*

curl -X GET "https://example.com/identity/v1/audit-records"
{  "page": 0,  "records": [    {      "action": "string",      "actor_id": "string",      "actor_name": "string",      "at": "2019-08-24T14:15:22Z",      "cause": "string",      "correlation_id": "string",      "follows": "string",      "id": "string",      "outcome": "string",      "target_id": "string",      "target_type": "string",      "witness_id": "string",      "witness_name": "string"    }  ],  "size": 0,  "total": 0}