Docs/Foundations/Session Modes
Foundations

Session modes

The mode field decides which key can create the session, whether webhooks fire, and which pool of players it can match against.

live
Production
Requires bg_live_. Real user IDs. Tenant-isolated matchmaking. Webhooks fire.
test
Sandbox
Requires bg_test_. Real user IDs, tenant-isolated, but no webhooks — safe for CI.
training
Guest / anonymous
Requires bg_live_. Player IDs are auto-generated. Cross-tenant practice pool, no webhooks.

Comparison

ModeCan match withPlayer IDsWebhooks
liveSame tenant, live sessions onlyYour own user IDsYes
testSame tenant, test sessions onlyYour own user IDsNo
trainingAny tenant, training poolServer-generated, anonymousNo
For a training session you pass playerCount instead of a players[] array — the service invents anonymous identities on your behalf.