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 friends endpoints let you access the current user’s friends list on Nestri. A friend record combines the friend’s Steam account data with their Nestri user profile when one exists. Lookups are scoped to the authenticated user’s linked Steam account — the x-nestri-steam header lets you specify which Steam account to use if more than one is linked.

GET /friends

List all friends associated with the authenticated user’s Steam account.
GET https://api.nestri.io/friends
This endpoint requires a valid Bearer token. The friends list is scoped to the Steam account identified by the x-nestri-steam header, or the first linked account if the header is omitted.

Request headers

Authorization
string
required
Bearer token in the format Bearer <your-jwt-token>.
x-nestri-steam
string
Optional. The Steam ID to scope the friends list to when the user has multiple linked accounts.

Response

Returns a data array of up to 100 Friend objects, ordered by when they were added.
data
Friend[]
required

Example

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

Example response

{
  "data": [
    {
      "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"
      },
      "user": {
        "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"
      }
    }
  ]
}

GET /friends/:id

Fetch a single friend by their Steam ID.
GET https://api.nestri.io/friends/:id

Path parameters

id
string
required
The Steam ID of the friend to retrieve. Example: "74839300282033".

Request headers

Authorization
string
required
Bearer token in the format Bearer <your-jwt-token>.
x-nestri-steam
string
Optional. The Steam ID of the requesting user’s account to scope the friendship lookup.

Response

Returns a data object with the same Friend field structure as the list endpoint above, or a 404 if the specified Steam ID is not in the user’s friends list.

Example

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

Error responses

StatusCodeDescription
400INVALID_PARAMETERRequest validation failed
404RESOURCE_NOT_FOUNDNo friend found with the given Steam ID
429Rate limit exceeded

Build docs developers (and LLMs) love