Messages
{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"user.access_log"
]
}
}{
"data": {
"timestamp": 1632488963633,
"log": "success",
"ip": "8.9.10.11",
"id": 243343,
"country": "China",
"city": "Pekin"
}
}User
user.access_log
Security event notifications for the account.
Use this channel to monitor account-related security events (e.g., access log entries) and build alerting around suspicious activity.
Messages
{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"user.access_log"
]
}
}{
"data": {
"timestamp": 1632488963633,
"log": "success",
"ip": "8.9.10.11",
"id": 243343,
"country": "China",
"city": "Pekin"
}
}Subscription Request
type:object
Client sends subscription request to subscribe to notification channel. Please refer to Notification page for more information.
Subscription Notification Data
type:object
Server sends subscription notification data
data
type:object
required
id
type:integer
required
Unique identifier
ip
type:string
required
IP address of source that generated action
timestamp
type:integer
required
The timestamp (milliseconds since the Unix epoch)
country
type:string
required
Country where the IP address is registered (estimated)
city
type:string
required
City where the IP address is registered (estimated)
log
type:string
required
Action description. Possible values:
changed_email- email was changedchanged_password- password was changeddisabled_tfa- TFA was disabledenabled_tfa- TFA was enabledsuccess- successful loginfailure- login failureenabled_subaccount_login- login was enabled for subaccount (indata- subaccount uid)disabled_subaccount_login- login was disabled for subaccount (indata- subaccount uid)new_api_key- API key was created (indatakey client id)removed_api_key- API key was removed (indatakey client id)changed_scope- scope of API key was changed (indatakey client id)changed_whitelist- whitelist of API key was edited (indatakey client id)disabled_api_key- API key was disabled (indatakey client id)enabled_api_key- API key was enabled (indatakey client id)reset_api_key- API key was reset (indatakey client id)
data
type:oneOf
Optional, additional information about action, type depends on log value
Was this page helpful?
⌘I