Link Guest Account to Email
horizon_link_emailConverts a signed-in guest player into a password-protected email account, preserving the same user ID and sending a verification email.
Instructions
Converts a signed-in guest player into an email account while keeping the same user ID. Use when: a guest player explicitly chooses to secure the account with an email and password. Not for: new players (use horizon_signup_email), existing email accounts (use horizon_signin_email) and accounts that are not guests. Requires: a signed-in guest player: the userId and current accessToken from horizon_signup_anonymous or horizon_signin_anonymous. Side effects: turns the guest into an EMAIL account with the same userId and sends the verification email. The current session keeps working and the guest anonymous token is deleted on the server, so horizon_signin_anonymous no longer works for this player. Returns: 200 with userId, email, isAnonymous: false, isVerified: false and authStatus: USER_NOT_VERIFIED. Use horizon_verify_email, then horizon_signin_email. Errors: 409 when the email already belongs to another account or the account is not a guest: do not retry, ask the player. 401 for an invalid session: sign in again. 400 for invalid input. 404 or 403 for other failures. Needs HORIZON_API_KEY. Every failure returns an error result (isError) with the HTTP status and body: a 401 that horizon_test_connection also returns means HORIZON_API_KEY is wrong, 429 means the account's per-minute rate limit was reached (wait a minute, then retry).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"userId": "<userId>",
"sessionToken": "<sessionToken>",
"email": "<email>",
"password": "<password>"
},
"name": "horizon_link_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Player email address (valid format, max 40 characters); must not be registered yet | ||
| userId | Yes | Player user ID (UUID) from the result of horizon_signup_* or horizon_signin_* | |
| password | Yes | Password, 8 to 128 characters; common passwords are rejected. Sent to the API only, never returned | |
| sessionToken | Yes | Player accessToken from signup, signin or refresh-session, passed as sessionToken (max 256 characters) | |
| preferredLanguage | No | Optional language code for the account, such as en or de (max 10 characters) |