Skip to content

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

TypeAPI Key (header: X-CSRF-Token)

Parameters

Path Parameters

id*
Typestring
Required
Pattern"\\d+"

Responses

Success

application/json
JSON
{
"id": 0,
"name": "string",
"avatar": "string",
"isSleeping": true
}

Playground

Authorization
Variables
Key
Value

Samples

cURL
JavaScript
PHP
Python