POST
/v1/mgmt/user/history

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

Get an user's login history, using a valid management key.

This API endpoint will loads the user's login history based on the user's userId.

See also

curl -X POST "https://api.descope.com/v1/mgmt/user/history" \  -H "Content-Type: application/json" \  -d '{}'
{  "usersAuthHistory": [    {      "userId": "string",      "loginTime": 0,      "city": "string",      "country": "string",      "ip": "string",      "selectedTenant": "string"    }  ]}
export interface Response {usersAuthHistory?: UserAuthHistory[]}export interface UserAuthHistory {userId?: stringloginTime?: numbercity?: stringcountry?: stringip?: stringselectedTenant?: string}
Was this helpful?