The Users API allows you to manage team members in your organization. You can invite users, assign roles, and control access to your bots and groups.
User Roles
CLIENT_OWNERFull access to organization
CLIENT_ADMINAdmin access, cannot delete org
CLIENT_VIEWERRead-only access
BOT_USERTelegram bot users
Endpoints
GET
/api/usersList all users in your organization
pagelimitrolesearch
GET
/api/users/:idGet details of a specific user
id
GET
/api/users/meGet the authenticated user profile
PATCH
/api/users/:idUpdate user details or role
namerolestatus
DELETE
/api/users/:idRemove a user from the organization
id
Example: Get Current User
curl https://api.botlaunch.io/api/users/me \ -H "Authorization: Bearer YOUR_TOKEN"
{
"data": {
"id": "usr_abc123",
"email": "john@example.com",
"name": "John Doe",
"role": "CLIENT_OWNER",
"organizationId": "org_xyz789"
}
}