Zum Inhalt springen
SoulFire LogoSoulFire

Get client data

Diese Anleitung gibt es nur auf Englisch.

GET
/v1/client

Retrieves comprehensive data about the authenticated client and the server. Returns user profile information, granted permissions, and server metadata.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Response Body

Response containing comprehensive information about the authenticated client and server.

application/json
  1. response

Response containing comprehensive information about the authenticated client and server. This is typically called after authentication to populate the client UI with user details.

id*string

The unique identifier (UUID) of the authenticated user.

Formatuuid
username*string

The display username of the authenticated user.

role*string

The role assigned to the user (ADMIN or USER), which determines base permission levels.

Value in"ADMIN""USER"
email*string

The email address associated with the user account.

Formatemail
serverPermissions*array<>

A complete list of all global permissions and whether they are granted to this user. This allows the client to determine which features/actions are available.

serverInfo*

Metadata about the server instance the client is connected to.

Example Request
curl -X GET 'http://127.0.0.1:38765/v1/client'
Example Response
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "username": "string",
  "role": "ADMIN",
  "email": "user@example.com",
  "serverPermissions": [
    {
      "globalPermission": "CREATE_INSTANCE",
      "granted": true
    }
  ],
  "serverInfo": {
    "version": "string",
    "commitHash": "string",
    "branchName": "string",
    "publicApiAddress": "http://example.com",
    "publicWebdavAddress": "http://example.com",
    "publicDocsAddress": "http://example.com",
    "publicMcpAddress": "http://example.com",
    "minecraftVersion": "string"
  }
}

War diese Seite hilfreich?