Get client data
Retrieves comprehensive data about the authenticated client and the server. Returns user profile information, granted permissions, and server metadata.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
Response containing comprehensive information about the authenticated client and server.
application/json- 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*stringThe unique identifier (UUID) of the authenticated user.
uuidusername*stringThe display username of the authenticated user.
role*stringThe role assigned to the user (ADMIN or USER), which determines base permission levels.
"ADMIN""USER"email*stringThe email address associated with the user account.
emailserverPermissions*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.
curl -X GET 'http://127.0.0.1:38765/v1/client'{
"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"
}
}Was this page helpful?
Generate WebDAV token POST
Generates a new JWT token specifically for WebDAV authentication. The generated token has the "webdav" audience and can only be used for WebDAV access.
Invalidate self sessions POST
Invalidates all existing sessions for the currently authenticated user. This is done by setting the user's minIssuedAt timestamp to the current time, which causes all previously issued JWT tokens to become invalid. After calling this method, the user will need to re-authenticate on all devices.
