onari

Rewards Hub sessions

POST /v1/hub/sessions

View as Markdown
POST https://api.onari.xyz/v1/hub/sessions

Makes a one-hour link to the Rewards Hub for one player. Call it from your server each time the player opens Rewards. The player is created if they're new.

Body

FieldType
player_idstring, requiredYour ID for the signed-in player.
pathstringOpen a section: /me, /trivia or /campaigns/<id>.

Response

201 Created

{
  "url": "https://hub.onari.xyz/your-workspace/me?session=eyJvcmci…",
  "expires_at": "2026-10-20T10:14:40.000Z",
  "expires_in": 3600
}

The link signs the player in, so treat it like a password: don't log it, store it, or send it anywhere but the player's own app. Sandbox keys make sandbox links (sandbox campaigns), and live keys make live ones. See Rewards Hub for opening it in a WebView.

On this page