GET/api/partner/users/:userId

Fresh tokens and status

Returns a fresh signed-in session for one of your users, with their approval status. Call it each time you open the embed, so the session you hand it is new.

Path parameters

Field Type Required
userId string yes

Token lifetimes

The access token (jwt) lasts 24 hours and the refresh token (refreshJwt) 7 days. Every read returns a new pair. The embed window never hands refreshed tokens back to you, so read a fresh pair each time you open it.

200 OK
{
  "success": true,
  "message": "User retrieved",
  "result": {
    "userId": "8f2c1d4e-6b7a-4c3d-9e1f-2a3b4c5d6e7f",
    "jwt": "eyJhbGciOi…",
    "refreshJwt": "eyJhbGciOi…",
    "status": "review",
    "referralToken": "maya-ortiz"
  }
}