post

/users/account/link_external_id

Links a user from your game to a user from your Login project via an external ID. You will not be able to link the same external ID to different users and update the external ID of a user if they already have it.

You can find an external ID in:

  • a user JWT after successful authentication as a value of the external_account_id claim,
  • a response of the method Get user details as a value of the external_id parameter.

Authorization

apiKey - X-SERVER-AUTHORIZATION

Request Body

Schema
object

Data for linking users via an external ID.

external_account_id
string

User ID from your game. Used as an external ID by which users will be linked.

3 validations + required
user_id
string

The Xsolla Login user ID. You can find it in Publisher Account > your Login project > Users > Username/ID.

2 validations + required

Responses

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
X-SERVER-AUTHORIZATION