SmartGare
API referenceEndpoints

Export the audit trail as CSV

The records a search matches, newest first, every page, at most 50 000 in one file; a value a spreadsheet would run as a formula is written as text. The X-Audit-Export-Complete header says false when more matched. **Required permission:** `identity.audit:read`

GET/identity/v1/audit-records/export

The records a search matches, newest first, every page, at most 50 000 in one file; a value a spreadsheet would run as a formula is written as text. The X-Audit-Export-Complete header says false when more matched.

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

text/csv;charset=UTF-8

curl -X GET "https://example.com/identity/v1/audit-records/export"
"string"