The Steam endpoints let you manage Steam accounts associated with a Nestri user.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nestrilabs/nestri/llms.txt
Use this file to discover all available pages before exploring further.
GET /steam returns all currently linked accounts. The popup and callback routes implement the Steam OpenID 2.0 flow for connecting a new Steam account — these are browser-redirect endpoints, not JSON API calls.
GET /steam
List all Steam accounts linked to the authenticated user.Request headers
Bearer token in the format
Bearer <your-jwt-token>.Optional. The Steam ID to scope the request to when the user has multiple linked accounts. If omitted, the endpoint returns all linked accounts regardless.
Response
Returns adata array of Steam objects.
Example
Steam OpenID login flow
Linking a new Steam account to a Nestri user is a two-step browser redirect flow. Your application opens a popup window toGET /steam/popup/:id, which redirects the user to Steam’s OpenID login page. After the user authenticates on Steam, Steam redirects back to GET /steam/callback/:id, which verifies the response, creates or updates the Steam account record, and closes the popup window.
GET /steam/popup/:id
Initiates the Steam OpenID login flow by setting a session cookie and redirecting to the Steam login page.This endpoint does not require an
Authorization header. It uses a short-lived user_id browser cookie to track the session.Path parameters
The Nestri user ID to link the Steam account to. Example:
"user_XXXXXXXXXXXXXXXXXXXXXXXXX".Behavior
- Looks up the Nestri user by
id. Returns404if not found. - Sets a
user_idcookie on the response. - Constructs a Steam OpenID 2.0 authorization URL with
openid.return_topointing to/steam/callback/:id. - Redirects the browser (
302) tohttps://steamcommunity.com/openid/login.
GET /steam/callback/:id
Receives the Steam OpenID redirect, verifies the authentication response, and stores the linked Steam account.This endpoint is called automatically by Steam after the user completes login. You do not need to call it directly.
Path parameters
The Nestri user ID, matching the value set during the popup step. Example:
"user_XXXXXXXXXXXXXXXXXXXXXXXXX".Behavior
- Validates that the
user_idcookie matches the:idpath parameter. Returns401if they differ. - Looks up the Nestri user by
id. Returns404if not found. - Verifies the OpenID query parameters returned by Steam. Returns
401if verification fails. - Fetches the authenticated Steam user’s profile data.
- Creates a new Steam account record linked to the Nestri user, or updates the owner of an existing Steam account.
- Returns an HTML snippet that closes the popup window.
Error responses
| Status | Code | Description |
|---|---|---|
400 | INVALID_PARAMETER | Malformed request parameters |
401 | UNAUTHORIZED | Cookie mismatch or invalid OpenID response |
404 | RESOURCE_NOT_FOUND | User not found for the given ID |
429 | — | Rate limit exceeded |