Skip to main content

Overview

Sports Index uses JWT-based authentication with HttpOnly cookies. Tokens are issued on login/signup and sent automatically via cookies or manually via Authorization: Bearer {token} headers.

Authentication Methods

Rate Limits


Endpoints

Create Account

Body: Response:

Login

Body: Response:
Sets access_token (HttpOnly) and logged_in cookies automatically.

Logout

Requires authentication.
Clears the access_token and logged_in cookies.

Get Current User

Requires authentication.
Response:

Verify Email

Verifies the user’s email address using the token sent via email.

Resend Verification Email

Body:

Forgot Password

Body: Sends a password reset email if the account exists. Always returns success to prevent email enumeration.

Reset Password

Body:

Claim Seed Account

Claims a pre-created seed account (used for onboarding creators). Body: Response: