Anonymous Accounts
Anonymous accounts are Ready Player Me accounts that can be created by anyone for your application. This means that your game doesn't need any backend service to generate users for your game.
If you want to have restorable sessions for the users and you are using the web integration, then you can check out the guest accounts.
The example below shows how to create an anonymous user with the access token for the user and also how to merge it to their existing Ready Player Me account. This token is not restorable, if it gets lost or deleted so it needs to be stored in the user side or in your own database.
1. Creating an Anonymous User
You have an endpoint to create a new user, which generates an access token. This token doesn't expire.
Create anonymous user
POST
https://api.readyplayer.me/v1/users
Request Body
data.applicationId*
string
The id of the application you wish to link the user to.
2. Merging Anonymous Account to the Ready Player Me Account
If a user wishes to merge their anonymous account with an existing Ready Player Me account, they need to follow a process:
Initially, you send a code to the user's email linked with Ready Player Me:
POST
https://api.readyplayer.me/v1/auth/request-login-code
Request Body
email*
String
Email of the user
The user then uses this code to log in, which returns a user token. In this call you can also pass the anonymous user id if the user wishes to merge their current account to their RPM account:
Log user into Ready Player Me account
POST
https://api.readyplayer.me/v1/auth/login
Request Body
id
String
User id you want to merge
code*
String
Use Anonymous/RPM account token to update user
This access token is essential for the following actions:
Last updated