api/docs/user/info.md

1.0 KiB

/user/info - GET

Returns information about the user.

Urlencoded Parameters

You have to set one parameter. Setting none or two parameters will result in a 400 Bad Request Response.

Parameter Description
name The username of the user on which the operation will be performed.
id The userid of the user on which the operation will be performed.

Responses

200 - Success

Content - JSON:

Field Description
id The users unique id.
username The users unique username.
joined The datetime when the user joined. Represented as UNIX timestamp.
is_admin A boolean if the user is an admin.

400 - Error: Bad Request

The request was malformed.

403 - Error: Forbidden

Blocked for security reasons.

404 - Error: Not Found

The user wasn't found.