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

Authorizations

clientId
string
headerrequired

The clientId used for API authentication.

clientSecret
string
headerrequired

The clientSecret used for API authentication.

Body

application/json
refreshToken
string
required

The token used to refresh the session.

Response

200 - application/json
success
boolean

Indicates whether the operation was successful.

data
object