Skip to main content
Initialize the HyperX SDK once during startup. After initialization succeeds, user, data, LiveOps, and social APIs are ready to call.

Basic Initialization

PROJECT_CODE is the unique code for your Console project. Initialization fails if the code is missing, wrong, or unavailable.
Production games should use HyperXEnvironment.Production only.

Initialization Errors

Initialization errors are thrown as HyperXInitializationException. API errors after initialization are handled as HyperXServerException. See Error Handling.

Create a Player Session After Init

For gameplay code that calls authenticated APIs often, prefer the PlayerSession flow.
The existing Core.Users.StartGuest, Core.Users.LoginCustom, and Core.Users.LoginSocial APIs remain supported. PlayerSession removes repeated access-token plumbing and gives you one place to refresh tokens with RefreshIfNeeded.

Request IDs

The SDK sends SDK version, runtime, trace ID, and request ID with requests. Use these values when checking logs or contacting support.
If you do not provide them, the SDK generates request IDs automatically.