Sign In with Email
horizon_signin_emailSign in an existing verified email account with email and password to start a player session and get an access token for score submission, cloud saves, gift code redemption, and profile tools.
Instructions
Signs in an existing email account with email and password and starts a player session (accessToken). Use when: a registered, verified player logs in, before any tool that needs sessionToken (submit score, cloud save, gift code redeem, profile, validated runs). Not for: guest accounts (use horizon_signin_anonymous), new players (use horizon_signup_email) or checking an existing token (use horizon_check_auth). Side effects: creates a new session on every call; older sessions stay valid. Returns: {userId, username, email, accessToken, authStatus, message}, with refreshToken and both expiry timestamps only when explicitly opted in. Pass accessToken as sessionToken. Access sessions have a one-hour sliding lifetime; refresh tokens rotate and expire after 30 days. Errors: 401 INVALID_CREDENTIALS for wrong credentials. 403 USER_NOT_VERIFIED requires horizon_verify_email first. Use horizon_forgot_password only when the player requests recovery. 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": {
"email": "<email>",
"password": "<password>"
},
"name": "horizon_signin_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Email address the account was registered with (max 40 characters) | ||
| password | Yes | Account password (max 128 characters); sent to the API only, never returned | |
| 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 |