Partner: AuthCheck API
| Endpoint | Method | Description |
|---|---|---|
| /api/v0/partnerRpc/authCheck.getUserBySessionId | jsonRpc | Get user by session id |
Get user by session id
Method: jsonRpc
HTTP Method: POST
Path: /api/v0/partnerRpc/authCheck.getUserBySessionId
Request:
{
"sessionId": string
}
Response:
{
"data": {
"user": { user simple structure }
}
"error": { "status": bool, "code": int, "message": string }
}
Models
User Simple
{
"id": string
"firstName": string
"lastName": string
"privacyMode": int // 0 - Default, 1 - Incognito
"avatar": string
"avatar3D": { // field is not returned if empty
"assetId": string
"assetSkins": map[string]string // map of selected skins per variants
"avatarUrl": string // url to gbl file (Ready Player Me)
"avatarUserId": string // user id for session recovery (Ready Player Me)
}
"companyName": string // name of company that user represents
"companyTitle": string // user title in the company
}