GET
/v1/auth/me/history

Get user's session history

This API Endpoint will return the current user's session history including geo-location and IP address. This endpoint requires the user to be signed in and have a valid refreshJwt. The refreshJwt is then used as part of the Authorization Bearer to perform this task.

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<Project ID:Refresh JWT\>

Try it

/v1/auth/me/history

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Status codeDescription
200OK
curl -X GET "https://api.descope.com/v1/auth/me/history"

{
  "authHistory": [
    {
      "userId": "string",
      "loginTime": 0,
      "city": "string",
      "country": "string",
      "ip": "string"
    }
  ]
}

Was this helpful?