POST
/
v1
/
sessions
/
get-session-details
curl --location 'https://user-auth.otpless.app/v1/sessions/get-session-details' \
  --header 'Content-Type: application/json' \
  --header 'clientId: YOUR_CLIENT_ID' \
  --header 'clientSecret: YOUR_CLIENT_SECRET' \
  --data '{
      "sessionToken": "RECEIVED_SESSION_TOKEN_FROM_OTPLESS"
  }'
  

Authorizations

clientId
string
header
required

The clientId used for API authentication.

clientSecret
string
header
required

The clientSecret used for API authentication.

Body

application/json
sessionToken
string
required

The unique identifier of the session.

Response

200 - application/json
deviceInfo
object

Information about the user's device, such as user agent, platform, browser, etc.

identities
object[]

An array containing details about the user's identities (email, mobile, etc.).

lastActiveAt
integer

The timestamp when the session was last active.

network
object

Information about the network, such as IP address, timezone, location, etc.

sessionToken
string

The unique identifier of the session.

startedAt
integer

The timestamp when the session started.

userId
string

The unique identifier of the user associated with the session.