Xsolla-logo

Create user token

post/v2/project/{project_id}/user/auth

Verifies that a user exists in the game and creates a user token.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
Request Body schema: application/json
required
email-required (object) or id-required (object)

User details.

Responses
200

User token successfully received.

Request samples
application/json
{
  • "user": {
    }
}
Response samples
application/json
{
  • "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}