- Introduction
- Getting Started
- Permissions
- Core Resources
- Channels
- Messages
- Teams
- Roles
- Users
- Todos
- Direct Messages
- Applications
- Reactions
- Attachments
- Voice
- Webhooks
- Blog
- Category
- Schemas
- Websockets
- Example Bot
- WebSocket event envelope
- Websocket events
- CHANNEL_CREATED
- CHANNEL_DELETED
- CHANNEL_UPDATED
- MESSAGE_SEND
- MESSAGE_UPDATED
- MESSAGE_DELETED
- MESSAGE_REACTION_ADDED
- MESSAGE_REACTION_REMOVED
- PRESENCE_UPDATE
- TEAM_ROLE_CREATED
- TEAM_ROLE_DELETED
- TEAM_ROLES_UPDATED
- TEAM_UPDATED
- TODO_ITEM_CREATED
- TODO_ITEM_DELETED
- TODO_ITEM_UPDATED
- USER_JOINED_TEAM
- USER_LEFT_TEAM
- USER_JOINED_VOICE_CHANNEL
- USER_LEFT_VOICE_CHANNEL
- USER_PROFILE_UPDATED
- USER_ROLE_ADDED
- USER_ROLE_REMOVED
- USER_UPDATED_VOICE_METADATA
- BLOG_CREATED
- BLOG_DELETED
- CATEGORIES_PRIORITY_UPDATED
- CATEGORY_UPDATED
- CATEGORY_DELETED
- CATEGORY_CREATED
- CHANNELS_PRIORITY_UPDATED
- Connecting via WebSocket
Get User By Id
GET
https://api.teamly.one/api/v1/users/{userId}
Request
Path Params
userId
string
required
Header Params
Authorization
string
optional
Example:
Bot {token}
Content-Type
string
required
Default:
application/json
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.teamly.one/api/v1/users/' \
--header 'Authorization: Bot {token}'
Responses
🟢200Success
application/json
Body
user
object (User)
required
id
string
required
username
string
required
>= 1 characters<= 20 characters
subdomain
string
required
profilePicture
string <uri>
optional
Default:
null
banner
string <uri>
optional
Default:
null
bot
boolean
required
Default:
false
presence
number
required
>= 0<= 3
Default:
0
badges
array [object {3}]
required
userStatus
object
optional
userRPC
object
optional
connections
array [object]
required
createdAt
string <date-time>
required
Default:
CURRENT_TIMESTAMP
lastOnline
string <date-time> | null
deprecated
Default:
CURRENT_TIMESTAMP
system
boolean
required
Default:
false
Example
{
"user": {
"id": "2d5c6531b2ac0fbc",
"username": "Arda",
"subdomain": "null",
"profilePicture": "https://s3-eu-central-1.amazonaws.com/www.teamly.one/userAvatar/c620a99d-6d62-4db3-b69b-3f465eabf311.webp",
"banner": "https://s3-eu-central-1.amazonaws.com/www.teamly.one/userBanner/c8ed1f6d-65bc-44e5-bfd8-210d649f1cf2.webp",
"bot": false,
"system": false,
"presence": 3,
"badges": [
{
"id": "3e9f6e7cb353fa21",
"name": "Engineer",
"icon": "https://s3-eu-central-1.amazonaws.com/www.teamly.one/badges/7cd7449f2d3275c4.webp"
}
],
"connections": [],
"createdAt": "2024-11-14T20:50:56.402Z",
"lastOnline": "2024-12-29T21:38:37.233Z"
}
}
Modified at 2024-12-29 21:38:25