Users Resource

Users are people registering to on our website and creating an account.

Username Restrictions

When creating an account you have the following restrictions for your username:

  • Be unique

User Object

User Structure

When getting information about users it will always have the same structure.

Field Description Type
display_name The user's display name, not unique String
username The user's username, unique String
account_created The datetime of the user's creation Datetime
user_tag The user's tag (#) String
user_id The user's id, unique String
avatar The user's avatar URL String
public_flags The public flags on a user's account Object

Example User

{
    "display_name": "Krypton",
    "username": "Krypton",
    "account_created": "2021-08-10 19:14:57",
    "user_tag": "492230",
    "user_id": "908045030494",
    "avatar": "https:\/\/cdn.spacelab.studio\/avatars\/profile.jpg",
    "public_flags": {
        "developer": true,
        "administrator": false,
        "staff": true,
        "bug_seeker": false,
        "alpha_tester": false,
        "beta_tester": false,
        "verified": true,
        "partner": false
    }
}

Public User Flags

Field Description
developer Developers of the games
administrator Administrators of the Spacelab Studio
staff Any staff member (not including Support Team)
bug_seeker Our special team of bug seekers
alpha_tester People who have access to everything before everyone
beta_tester People who have access to everything before everyone (after the Alpha Testers)
verified Famous people can apply for this to make sure no one is impersonating them
partner Famous people we have partnered with

Get User

GET/userinfo

Gives a user object for a given username.

Request Headers

Header Content
username The username of the user

Example User Result

{
    "status": {
        "code": 200,
        "message": "This user has been found."
    },
    "user": {
        "display_name": "Krypton",
        "username": "Krypton",
        "account_created": "2021-08-10 19:14:57",
        "user_tag": "492230",
        "user_id": "908045030494",
        "avatar": "https:\/\/cdn.spacelab.studio\/avatars\/profile.jpg",
        "public_flags": {
            "developer": true,
            "administrator": false,
            "staff": true,
            "bug_seeker": false,
            "alpha_tester": false,
            "beta_tester": false,
            "verified": true,
            "partner": false
        }
    }
}