GET

https://{tenant_id}.hanko.io/admin

/
audit_logs

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your API key. Must only be used when using Hanko Cloud.

Query Parameters

page
integer
default: 1

The page which should be returned

per_page
integer
default: 20

The number of returned items

start_time
string

Date and time from which the logs are included

end_time
string

Date and time to which the logs are included

actor_user_id
string

Only audit logs with the specified user_id are included

actor_email
string

Only audit logs with the specified email are included

meta_source_ip
string

Only audit logs with the specified ip address are included

q
string

Only audit logs are included when the search string matches values in meta_source_ip or actor_user_id or actor_email

type
enum<string>[]

Only audit logs with the specified type are included

Available options:
user_created,
password_set_succeeded,
password_set_failed,
password_login_succeeded,
password_login_failed,
passcode_login_init_succeeded,
passcode_login_init_failed,
passcode_login_final_succeeded,
passcode_login_final_failed,
webauthn_registration_init_succeeded,
webauthn_registration_init_failed,
webauthn_registration_final_succeeded,
webauthn_registration_final_failed,
webauthn_authentication_init_succeeded,
webauthn_authentication_init_failed,
webauthn_authentication_final_succeeded,
webauthn_authentication_final_failed,
thirdparty_signup_succeeded,
thirdparty_signin_succeeded

Response

200 - application/json
id
string
required

The ID of the audit log

type
enum<string>
required

The type of the audit log

Available options:
user_created,
password_set_succeeded,
password_set_failed,
password_login_succeeded,
password_login_failed,
passcode_login_init_succeeded,
passcode_login_init_failed,
passcode_login_final_succeeded,
passcode_login_final_failed,
webauthn_registration_init_succeeded,
webauthn_registration_init_failed,
webauthn_registration_final_succeeded,
webauthn_registration_final_failed,
webauthn_authentication_init_succeeded,
webauthn_authentication_init_failed,
webauthn_authentication_final_succeeded,
webauthn_authentication_final_failed,
thirdparty_signup_succeeded,
thirdparty_signin_succeeded
error
string

A more detailed message why something failed

meta_http_request_id
string
required

The ID of the corresponding http request

meta_source_ip
string
required

The IP from where the http request came from

meta_user_agent
string
required

The user agent from where the http request came from

actor_user_id
string

The userID from the actor

actor_email
string

The email from the actor

created_at
string
required

Time of creation of the audit log