Explorer

Verify session

Verify the session of the user.

GET
/api/oc/v1/verify-session

Authorization

AuthorizationRequiredBearer <token>

In: header

curl -X GET "https://sandbox-api.okto.tech/api/oc/v1/verify-session" \
  -H "Authorization: Bearer <token>"

Fetched

{
  "status": "success",
  "data": {
    "user_id": "27782328-083b-49d7-8c79-f98298bb85fa",
    "vendor_id": "b48ec48b-b42d-4058-89ca-9831a39508bd",
    "user_swa": "0xE14A85291F6A8DE60dC06b2dD373DfFDa779AF8D",
    "vendor_swa": "0x6b6Fad2600Bc57075ee560A6fdF362FfefB9dC3C",
    "is_session_added": true,
    "sign_auth_relayer_user_ops": ""
  }
}