Get User Info

Get userId by username

GET http://h1.eko12.local/bot/v1/users?username=:username

Returns the uid of username in parameter

Headers

Name
Type
Description

Authorization

Bearer <token>

Access Token (needs to have "bot" scope).

Path Parameters

Name
Type
Description

username

string

username

{
    "users": [
        {
            "_id": "id",
            "username": "username",
            "email": "email",
            "firstname": "firstname",
            "lastname": "lastname",
            "position": "",
            "deleted": false
        }
    ]
}

Get User Info

GET http://h1.eko12.local/bot/v2/groups/:gid/users/:uid/info

Returns the User info, if both the user and the bot are in the specific group.

Path Parameters

Name
Type
Description

gid

string

Group ID

uid

string

User ID

Headers

Name
Type
Description

Authentication

string

Token (needs to have "bot" scope).

Last updated