Skip to content

Get User Info

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

Returns the uid of username in parameter

Name Type Description
Authorization Bearer <token> Access Token (needs to have “bot” scope).
Name Type Description
username string username
{
"users": [
{
"_id": "id",
"username": "username",
"email": "email",
"firstname": "firstname",
"lastname": "lastname",
"position": "",
"deleted": false
}
]
}

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.

Name Type Description
gid string Group ID
uid string User ID
Name Type Description
Authentication string Token (needs to have “bot” scope).
{
"_id": "5d563332aa9799106b5ffgh3",
"firstname": "John",
"lastname": "Doe",
"avatar": "https://sample-url.com/john.jpg",
"network_admin": true
}