Skip to main content

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.

The account endpoint returns a single object representing the authenticated user. It combines the core user profile with all Steam accounts currently linked to that user. This is the primary endpoint for bootstrapping a session — call it once after authentication to load the user’s identity and any associated Steam profiles.

GET /account

GET https://api.nestri.io/account
This endpoint requires a valid Bearer token. Requests without an Authorization header will receive a 401 response.

Request headers

Authorization
string
required
Bearer token in the format Bearer <your-jwt-token>.

Response

Returns a data object containing the full account record.
data
object
required

Example

curl https://api.nestri.io/account \
  --header "Authorization: Bearer <your-jwt-token>"

Example response

{
  "data": {
    "id": "user_XXXXXXXXXXXXXXXXXXXXXXXXX",
    "name": "John Doe",
    "email": "johndoe@example.com",
    "avatarUrl": "https://cdn.discordapp.com/avatars/xxxxxxx/xxxxxxx.png",
    "lastLogin": "2025-04-26T20:11:08.155Z",
    "polarCustomerID": "0bfcb712-df13-4454-81a8-fbee66eddca4",
    "profiles": [
      {
        "id": "74839300282033",
        "name": "JD The 65th",
        "realName": "John Doe",
        "profileUrl": "The65thJD",
        "avatarHash": "3a5e805fd4c1e04e26a97af0b9c6fab2dee91a19",
        "status": "online",
        "userID": "user_XXXXXXXXXXXXXXXXXXXXXXXXX",
        "steamMemberSince": "2010-01-26T21:00:00.000Z",
        "lastSyncedAt": "2025-04-26T20:11:08.155Z",
        "limitations": {
          "isLimited": false,
          "tradeBanState": "none",
          "isVacBanned": false,
          "visibilityState": 3,
          "privacyState": "public"
        }
      }
    ]
  }
}

Error responses

StatusCodeDescription
400INVALID_PARAMETERRequest validation failed
404RESOURCE_NOT_FOUNDUser not found for the provided token
429Rate limit exceeded

Build docs developers (and LLMs) love