Skip to main content

Force User Logout

Brief Description

  • Force a user to log out from a specific terminal, the client SDK will receive the onKickedOffline callback event.

Request Method

  • post

Request URL

  • {API_ADDRESS}/auth/force_logout
Header NameExample ValueOptionalTypeDescription
operationID1646445464564RequiredstringUsed for global link tracking, timestamp is recommended, independent in each request
tokeneyJhbxxxx3XsRequiredstringAdmin token

Request Parameter Example

{
"platformID": 2,
"userID": "4950983283"
}
Field NameOptionalTypeDescription
platformIDRequiredintTerminal type when user logs in
userIDRequiredstringUser ID

Success Return Example

{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}

Parameter Description for Success Return Example

Parameter NameTypeDescription
errCodeintError code, 0 means success
errMsgstringBrief error message, empty on success
errDlterrDltDetailed error message, empty on success

Failure Return Example

{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}

Parameter Description for Failure Return Example

Parameter NameTypeDescription
errCodeintError code, see global error code document for details
errMsgstringBrief error message
errDlterrDltDetailed error message