Airwallex logo

Security audit logs

Copy for LLMView as Markdown

You can access security audit logs to review account activity, including login attempts, user management actions, and API key changes. This data helps you monitor account security and investigate potential unauthorized access or configuration changes.

To retrieve these logs, use the Get security audit logs API endpoint.

The Security Audit Logs API is currently available to select accounts. Contact your Airwallex account manager to request access.

API overview

Endpoint: GET /api/v1/audit_log/security_audit_logs

Parameters:

ParameterTypeDescription
from_event_timestringThe start date of event_time, inclusive. Defaults to 180 days prior to the current time. ISO 8601 format.
end_event_timestringThe end date of event_time, inclusive. Defaults to now. ISO 8601 format.
pagestringPage bookmark for pagination.
page_sizeintegerPage size. Default: 100. Valid values: 1–2000.

Response:

The response contains a list of audit log items and pagination markers.

JSON
1{
2 "items": [
3 {
4 "id": "45a6d9c3-bdcd-3bbf-b592-10f287a87ccd",
5 "account_id": "acct_IDSCMmzqMCeKRFcgwbtAdQ",
6 "event_time": "2022-06-08T06:41:37+0000",
7 "operator_info": {
8 "type": "WEBAPP_ACCOUNT_USER",
9 "mobile": "12345679",
10 "email": "[email protected]"
11 },
12 "session_info": {
13 "application": "Chrome",
14 "ip_address": "101.228.247.142",
15 "location": "Shanghai, China",
16 "os": "Mac OS X",
17 "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
18 },
19 "event_type": "account.user_invitation.accepted",
20 "event_details": {
21 "roles": ["Developer"],
22 "target": {
23 "type": "USER",
24 "email": "[email protected]",
25 "mobile": "56-39815749"
26 }
27 }
28 }
29 ],
30 "page_after": "YWZ0ZXI9MTdiYTVhYzktM2FiMC00NmIzLWE4ODctMTNjNmU5NTg2N2Qy",
31 "page_before": "YmVmb3JlPTg0NDg0ODIwLTU0N2UtNDc5YS1iMTY3LTgzYjQwMzcwODQ2ZQ=="
32}

Log item structure

FieldDescriptionSample
idUnique UUID of the event."id": "45a6d9c3-bdcd-3bbf-b592-10f287a87ccd"
event_timeTimestamp of the event in UTC. ISO 8601 format."event_time": "2022-06-08T06:41:37+0000"
account_idUnique identifier of the account."account_id": "acct_TOslkS7-MnyXlQuV8Lb4og"
operator_infoInformation about the user who performed the action. Currently only exposes WEBAPP_ACCOUNT_USER.See response sample above.
session_infoInformation about where and how the operator triggered the event (IP, location, device).See response sample above.
event_typeName of the audit log event type."event_type": "user.email.added"
event_detailsDetailed information specific to the event type.See sections below.

Event types and details

The structure of event_details varies depending on the event_type. The following sections describe the metadata available for each event category.

Login credential changes

Event TypeDescriptionEvent Details Metadata
user.email.updatedUser email verified (updated).new_value, old_value, target
user.email.addedNew user email verified (added).new_value, target
user.email.update_initiatedUser requested email change.new_value, old_value, target
user.mobile.updatedUser phone number verified (updated).new_value, old_value, target
user.mobile.addedUser phone number verified (added).new_value, target
user.mobile.update_initiatedUser requested phone number change.new_value, old_value, target
user.password.updatedUser changed password.target
user.password.reset_initiatedUser initiated password reset (forgot password).target
user.mobile_login_allowed.updatedMobile login setting changed.new_value (boolean), old_value (boolean), target

2FA actions

Event TypeDescriptionEvent Details Metadata
user.2fa.enabledFirst two-factor authentication (2FA) method set up.2fa_method (one of AUTHENTICATOR_APP, SMS, AWX_APP), 2fa_mobile (if SMS), target
user.2fa.disabledLast 2FA method removed or 2FA disabled.target
user.2fa.removedA 2FA method was removed.2fa_method (one of AUTHENTICATOR_APP, SMS, AWX_APP), target
user.2fa.addedA 2FA method was added.2fa_method (one of AUTHENTICATOR_APP, SMS, AWX_APP), 2fa_mobile (if SMS), target
user.2fa.updatedA specific 2FA method was changed (such as phone number).2fa_method (one of AUTHENTICATOR_APP, SMS, AWX_APP), 2fa_mobile, target
user.2fa.default_method.updatedPrimary 2FA method updated.2fa_method (one of AUTHENTICATOR_APP, SMS, AWX_APP), 2fa_mobile (if SMS), target
user.2fa.recovery_codes.generatedNew recovery codes generated.target
user.2fa.recovery_codes.usedRecovery code used for verification.target
user.2fa.post_login.successPost-login 2FA authentication succeeded.2fa_context (such as LOGIN, EDIT_EMAIL), 2fa_method (one of AUTHENTICATOR_APP, SMS, AWX_APP), 2fa_mobile, target
user.2fa.post_login.failedPost-login 2FA authentication failed.2fa_context (such as LOGIN, EDIT_EMAIL), 2fa_method (one of AUTHENTICATOR_APP, SMS, AWX_APP), 2fa_mobile, target
account.2fa_settings.updatedAccount 2FA settings updated.setting_type (such as accountLogin), new_value

API key actions

Event TypeDescriptionEvent Details Metadata
account.api_key.admin.generatedAdmin API key created.No specific metadata.
account.api_key.admin.regeneratedAdmin API key regenerated.No specific metadata.
account.api_key.restricted.regeneratedRestricted API key regenerated.new_api_key_name
account.api_key.restricted.generatedRestricted API key created or duplicated.new_api_key_name, new_api_key_permissions
account.api_key.restricted.updatedRestricted API key edited.old_api_key_name, new_api_key_name, old_api_key_permissions, new_api_key_permissions
account.api_key.restricted.deletedRestricted API key deleted.old_api_key_name

User login actions

Event TypeDescriptionEvent Details Metadata
user.login.successUser login succeeded.platform (such as APP, WEB), 2fa_required, 2fa_skipped_remember_device, 2fa_method, 2fa_mobile, target
user.login.failedUser login failed.platform, reason (such as INVALID_PASSWORD), 2fa_required, 2fa_skipped_remember_device, 2fa_method, 2fa_mobile, target
user.lockedUser locked due to repeated failures.reason (such as MULTIPLE_INVALID_PASSWORD), target

User management actions

Event TypeDescriptionEvent Details Metadata
account.user_invitation.createdUser invited.roles, target (invitee info)
account.user_invitation.acceptedUser joined account.target
account.user.suspendedUser suspended.target
account.user.unsuspendedUser unsuspended.target
account.user.removedUser removed.target
account.user.role_updatedUser role changed.old_value (roles), new_value (roles), target
account.role.createdCustom role created.new_role_name, new_role_description, new_role_permissions
account.role.updatedCustom role edited.old_role_name, new_role_name, old_role_description, new_role_description, old_role_permissions, new_role_permissions
account.role.deletedCustom role deleted.old_role_name
account.team.createdTeam created.new_team_name, new_team_description
account.team.updatedTeam edited.old_team_name, new_team_name, old_team_description, new_team_description
account.team.deletedTeam deleted.old_team_name
account.team.role_updatedTeam role updated.team_name, old_value, new_value
account.team.user_addedUser added to team.team_name, target
account.team.user_removedUser removed from team.team_name, target
Was this page helpful?