GET - Token
Request a token for iFrame session restoration
GET
https://api.readyplayer.me/v1/auth/token
This token can be used to restore a user's session opening the iFrame. Learn how to use this in the Guide Account Linking.
The request requires an API Key in the Header x-api-key.
Path Parameters
Name
Type
Description
userId*
String
User ID you want to get the access token for. Note, that this user needs to authorize your app first.
partner*
String
Your partner name / subdomain.
The token only lives for 15 seconds. Needs to be created right after the web-view/iFrame call.
Sample Response:
{
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0OTQzZDQ3MWRjMDFlMDg2YWM4ODdlZSIsInBhcnRuZXIiOiJyZWFkeXBsYXllcm1lZGVtbyIsImlhdCI6MTY4NzQzNjYzOCwiZXhwIjoxNjg3NDM2NjUzfQ.B_fvlug6r-1p3RPqnbG0cQH6kaZ8ic7X_f_CeKLqAT8"
}
}
Sample Request
https://api.readyplayer.me/v1/auth/token?userId=64943d471dc01e086ac887ee&partner=readyplayermedemo
Last updated
Was this helpful?