Skip to content
Search
K
Main Navigation
Guide
Rest API
Wiki
English
Deutsch
English
Deutsch
Appearance
Menu
Return to top
Checks if the user is logged in and lists the basic user information. Returns 200 and the user data, 404 if the user does not exist, or 401 if not logged in.
GET
/api/user/{id}
Authorizations
api_key
Requests manipulating data need to supply a CSRF token
Type
API Key (header: X-CSRF-Token)
Parameters
Path Parameters
id
*
Type
string
Required
Pattern
"\\d+"
Responses
200
401
404
Success
Content-Type
application/json
Schema
JSON
JSON
{
"id"
:
0
,
"name"
:
"string"
,
"avatar"
:
"string"
,
"isSleeping"
:
true
}
GET
/api/user/{id}
Playground
Authorization
api_key
Variables
Key
Value
id
*
Try it out
Samples
cURL
JavaScript
PHP
Python
cURL
JavaScript
PHP
Python