# Rewards Hub sessions

> POST /v1/hub/sessions

Source: https://docs.onari.xyz/docs/api/hub-sessions

```http
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

| Field | Type | |
|---|---|---|
| `player_id` | string, required | Your ID for the signed-in player. |
| `path` | string | Open a section: `/me`, `/trivia` or `/campaigns/<id>`. |

## Response

`201 Created`

```json
{
  "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](/docs/rewards-hub) for opening it in a WebView.
