Skip to main content
GET
/
v1
/
api
/
superadmin
/
users
/
{id}
/
history
Get action history for a user
curl --request GET \
  --url http://localhost:3091/v1/api/superadmin/users/{id}/history \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "adminId": 123,
    "adminName": "<string>",
    "adminEmail": "<string>",
    "action": "USER_VIEW",
    "actionDescription": "<string>",
    "targetEntityType": "<string>",
    "targetEntityId": "<string>",
    "description": "<string>",
    "ipAddress": "<string>",
    "actionTimestamp": "2023-11-07T05:31:56Z",
    "status": "<string>"
  }
]

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Path Parameters

id
integer<int32>
required

Response

History retrieved

id
integer<int64>
adminId
integer<int32>
adminName
string
adminEmail
string
action
enum<string>
Available options:
USER_VIEW,
USER_UPDATE,
USER_ENABLE,
USER_DISABLE,
USER_BAN,
USER_UNBAN,
USER_ROLE_CHANGE,
USER_PASSWORD_RESET,
USER_DELETE,
KYC_VIEW,
KYC_APPROVE,
KYC_REJECT,
AGENCY_KYC_APPROVE,
AGENCY_KYC_REJECT,
RESERVATION_VIEW,
RESERVATION_CANCEL,
RESERVATION_REFUND,
RESERVATION_DISPUTE_RESOLVE,
ANNONCE_VIEW,
ANNONCE_ACTIVATE,
ANNONCE_DEACTIVATE,
ANNONCE_DELETE,
ANNONCE_FEATURE,
WITHDRAWAL_APPROVE,
WITHDRAWAL_REJECT,
TRANSACTION_VIEW,
CONFIG_UPDATE,
COMMISSION_UPDATE,
CATEGORY_CREATE,
CATEGORY_UPDATE,
CATEGORY_DELETE,
EXPORT_USERS,
EXPORT_TRANSACTIONS,
EXPORT_RESERVATIONS,
AGENCY_SUSPEND,
AGENCY_ACTIVATE,
AGENCY_ADD_EMPLOYEE,
AGENCY_REMOVE_EMPLOYEE,
LOGIN,
LOGOUT
actionDescription
string
targetEntityType
string
targetEntityId
string
description
string
ipAddress
string
actionTimestamp
string<date-time>
status
string