Sign In Anonymously
horizon_signin_anonymousSigns in a returning anonymous guest with a stored anonymousToken and starts a player session, returning an accessToken to use as sessionToken.
Instructions
Signs in an anonymous (guest) account with its stored anonymousToken and starts a player session (accessToken). Use when: a returning guest opens the game, or right after horizon_signup_anonymous, before any tool that needs sessionToken. Not for: email accounts (use horizon_signin_email) or creating a guest (use horizon_signup_anonymous). Requires: the anonymousToken returned by horizon_signup_anonymous for this account. Side effects: creates a new session on every call; older sessions stay valid. Returns: {userId, username, accessToken, authStatus, message}, plus refreshToken and both expiry timestamps only when explicitly opted in. Pass accessToken as sessionToken. Store recovery and refresh tokens in platform secure storage, never logs or general preferences. Errors: 404 USER_NOT_FOUND means this token cannot restore the account: confirm the stored token and offer horizon_signup_anonymous only after the player chooses a new account. 429 may also be the configured project/IP or project/token limiter: honor Retry-After instead of assuming fixed limits. 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": {
"anonymousToken": "<anonymousToken>"
},
"name": "horizon_signin_anonymous"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anonymousToken | Yes | anonymousToken returned by horizon_signup_anonymous (exactly 32 characters: letters, digits, _ and -) | |
| includeRefreshToken | No | Explicit opt-in to a rotating 30-day refresh session; omitted or false preserves access-only behavior. Store refresh tokens in platform secure storage |