Export instance audit log
GET
/api/admin/system/audit/export
const url = 'https://hitkeep.com/api/admin/system/audit/export?format=json';const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_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://hitkeep.com/api/admin/system/audit/export?format=json' \ --cookie hk_token=<hk_token>Exports matching instance-level audit entries as JSON or CSV. The export limit defaults to 10000 rows and is capped at 50000 rows.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” action
string
Optional exact action filter.
target_type
string
Optional target type filter.
outcome
string
Optional outcome filter, for example success or failure.
actor_id
string format: uuid
Optional actor user ID filter.
from
string format: date-time
Optional RFC3339 lower time bound.
to
string format: date-time
Optional RFC3339 upper time bound.
query
string
Optional free-text search over action, actor, target, outcome, IP, request ID, and details.
format
string
Export format. Defaults to json.
limit
integer
Maximum number of exported rows. Defaults to 10000.
Responses
Section titled “ Responses ”Audit export
Invalid audit filter
Media type application/json
object
message
string
Example generated
{ "message": "example"}Forbidden
Media type application/json
object
message
string
Example generated
{ "message": "example"}