POST
/
v1
/
sessions
/
revoke-session
curl --location 'https://user-auth.otpless.app/v1/sessions/revoke-session' \
--header 'clientId: YOUR_CLIENT_ID' \
--header 'clientSecret: YOUR_CLIENT_SECRET' \
--header 'Content-Type: application/json' \
--data '{
    "sessionToken":"RECEIVED_SESSION_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
sessionToken
string
required

The unique identifier of the session.

Response

200 - application/json
success
boolean