Skip to main content

Read administrator audit logs

Read administrator audit logs. GET /api/openapi/v1/audit-logs, scope admin.v1.audit-logs.read.

  • Scope: admin.v1.audit-logs.read
  • Permission: Read administrator audit logs (audit-logs)
  • Permission type: Read
  • Endpoint: GET/api/openapi/v1/audit-logs

Authentication and request headers

Call with an application API key. This endpoint checks only the scope above; read, manage and execute permissions do not imply one another.
NameLocationTypeRequiredDescriptionExample
AuthorizationheaderstringYesApplication API key, passed as a Bearer token.Bearer qwk_***
X-Request-IdheaderstringNoOptional request tracing identifier; generated by the server if omitted.req-20260831-001

Request parameters

NameLocationTypeRequiredDescriptionExample
fromquerystring · date-timeRequiredInclusive creation/event time, RFC3339 with timezone; keep fixed while paging."2026-08-27T10:00:00Z"
toquerystring · date-timeRequiredExclusive creation/event time, after from and at most 180 days later; keep fixed while paging."2026-08-27T10:00:00Z"
cursorquerystringNoOpaque next_cursor from the previous page of the same organization and time interval."<string>"
page_sizequeryinteger · int64NoPage size20

Request example

cURL

Responses

200 OK
NameTypeRequiredDescriptionExample
has_morebooleanYesWhether more results are availablefalse
itemsarray<OpenapifacadeAuditLog>YesRecords[{"action_code":"<string>","actor_auxiliary_identifier_snapshot":"<string>","actor_auxiliary_value_snapshot":"<string>","actor_email_snapshot":"<string>","actor_name_snapshot":"<string>","actor_qid_snapshot":"<string>","actor_user_id":"<string>","after_display":"<string>","before_display":"<string>","category":"<string>","detail_attributes":{},"detail_code":"<string>","detail_text":"<string>","event_id":"<string>","http_method":"<string>","occurred_at":"2026-08-27T10:00:00Z","operation_id":"<string>","org_id":"<string>","payload_hash":"<string>","replay_of_event_id":"<string>","request_id":"<string>","resource_id":"<string>","resource_label":"<string>","resource_type":"<string>","result":"<string>","route_template":"<string>","schema_version":0,"source":"<string>","source_ip":"<string>","source_service":"<string>","success_count":0,"target_count":0,"trace_id":"<string>"}]
items[].action_codestringYesActions"<string>"
items[].actor_auxiliary_identifier_snapshotstringYesActor auxiliary identifier type at the time of the action"<string>"
items[].actor_auxiliary_value_snapshotstringYesActor auxiliary identifier at the time of the action"<string>"
items[].actor_email_snapshotstringNoActor email at the time of the action"<string>"
items[].actor_name_snapshotstringNoActor name at the time of the action"<string>"
items[].actor_qid_snapshotstringYesActor QID at the time of the action"<string>"
items[].actor_user_idstringYesActor ID"<string>"
items[].after_displaystring | nullYesValues after the change"<string>"
items[].before_displaystring | nullYesValues before the change"<string>"
items[].categorystringYesLog category"<string>"
items[].detail_attributesobjectYesDetail attributes{}
items[].detail_codestringNoDetail code"<string>"
items[].detail_textstringNoAction details"<string>"
items[].event_idstringYesEvent ID"<string>"
items[].http_methodstringYesHTTP method"<string>"
items[].occurred_atstring · date-timeYesTime"2026-08-27T10:00:00Z"
items[].operation_idstringYesAPI operation ID"<string>"
items[].org_idstringYesOrganization ID"<string>"
items[].payload_hashstringYesEvent payload hash"<string>"
items[].replay_of_event_idstring | nullYesOriginal event ID for replay"<string>"
items[].request_idstringYesRequest ID"<string>"
items[].resource_idstringNoResource ID"<string>"
items[].resource_labelstringNoTarget"<string>"
items[].resource_typestringYesResource type"<string>"
items[].resultstringYesResult"<string>"
items[].route_templatestringYesAPI route template"<string>"
items[].schema_versioninteger · int64YesEvent schema version0
items[].sourcestringYesSource"<string>"
items[].source_ipstringNoSource IP"<string>"
items[].source_servicestringYesSource service"<string>"
items[].success_countinteger · int64NoSuccessful count0
items[].target_countinteger · int64NoTarget user count0
items[].trace_idstringNoTrace ID"<string>"
next_cursorstringYesNext page cursor"<string>"
Response example
default Flat business error
NameTypeRequiredDescriptionExample
codestringNoStable business error code"<string>"
detailstringYesHuman-readable error description"<string>"
detailsOpenapiErrorDetailsNoError details{"field":"<string>","reason":"<string>","suggestion":"<string>"}
details.fieldstringNoRequest field that failed validation"<string>"
details.reasonstringNoStable validation failure reason"<string>"
details.suggestionstringNoSuggested normalized value"<string>"
errorstringYesStable HTTP error type"<string>"
Response example