Teamly API
  1. Channels
Teamly API
  • Introduction
  • Getting Started
    • Quick Start
    • API Versions
  • Permissions
    • Channel Permission Values
    • Team Global Permissions
  • Core Resources
    • Channels
      • Update Channel
        • Update Team Channel
        • Update Channel Role Permissions
      • Get Team Channels
        GET
      • Create Team Channel
        PUT
      • Delete Team Channel
        DELETE
      • Duplicate a Channel on Team
        POST
      • Update Channel Priorities of Team
        PUT
    • Messages
      • Create Channel Message
      • Delete a Channel Message
      • Get Channel Messages
      • Update a Channel Message
      • React to Message
      • Delete Reaction from Message
      • Get a Channel Message by Id
    • Teams
      • Members
        • Add Role to Member
        • Remove Role from Member
        • Kick Member from Team
        • Get Member
      • Bans
        • Get Banned Users
        • Unban User
        • Ban User
      • Get a Team
      • Update a Team
    • Roles
      • Create a Role for Team
      • Get Team Roles
      • Delete a Role
      • Clone Role
      • Update Role Priorities of Team
      • Update a Team Role
    • Users
      • Get User By Id
      • Get Logged In User
    • Todos
      • Get Todo Items
      • Create Todo Item
      • Delete Todo Item
      • Clone Todo Item
      • Update Todo Item
    • Direct Messages
      • Create a Direct Message
    • Applications
      • Get Application Submissions
      • Update a Application Status
      • Update Team's Application Status
      • Update Team's Application Questions
      • Get Application By Id
    • Reactions
      • Get Team's Custom Reactions
      • Create New Custom Reaction for Team
      • Update a Custom Reaction
      • Delete a Custom Reaction
    • Attachments
      • Upload Attachment
    • Voice
      • Get Credentials for Join Voice Channel
      • Update Your Voice Metadata
      • Leave from Voice Channel
    • Webhooks
      • Create Message With Webhook
      • Webhook for GitHub
    • Blog
      • Get Blog Posts
      • Create a Blog Post
      • Delete a Blog Post
    • Category
      • Create a Category
      • Update a Category
      • Update Category Role Permissions
      • Delete a Category
      • Add a Channel To Category
      • Delete a channel from category
      • Set channel priority of category
      • Set a team's category priority
  • Schemas
    • Message
    • Message Embed
    • Channel
    • Direct Message
    • To-do Item
    • Application
    • Emoji
    • Team
    • User
    • Role
    • Webhook
    • Blog
    • Category
  • Websockets
    • Example Bot
    • WebSocket event envelope
      • WebSocket event envelope
      • Keepalive
      • Welcome Message
      • Gateway Opcodes
      • Gateway Close Event Codes
    • 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
  1. Channels

Get Team Channels

GET
https://api.teamly.one/api/v1/teams/{teamId}/channels

Request

Path Params
teamId
string 
required
Header Params
Authorization
string 
required
Default:
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/teams//channels' \
--header 'Authorization;'

Responses

🟢200Success
application/json
Body
channels
array[object (Channel) {14}] 
required
id
string 
required
Unique identifier for the channel
type
string 
required
Type of the channel
teamId
string 
required
ID of the team to which the channel belongs
name
string 
required
Name of the channel
>= 1 characters<= 20 characters
description
string  | null 
optional
Description of the channel. Can be null if no description is provided
createdBy
string 
required
ID of the user who created the channel
parentId
string  | null 
optional
ID of the parent channel if it's a subchannel. Can be null if not applicable
participants
array[string] | null 
optional
If the channel is a voice channel, it must return the participants of the voice channel
priority
number 
required
Priority of the channel, indicating its position or importance
nsfw
boolean 
required
Indicates whether the channel is NSFW (Not Safe For Work)
region
string  | null 
optional
Region of voice channel
createdAt
string <date-time>
required
Timestamp of when the channel was created
permissions
object 
required
Permissions for the channel, containing roles and their associated permissions
additionalData
object  | null 
optional
Additional data
categories
array[object (Category) {8}] 
required
id
string 
required
Unique identifier for the category
teamId
string 
required
ID of the team associated with the category
name
string 
required
Name of the category
createdBy
string 
required
ID of the user who created the category
priority
number 
optional
Priority level of the category
Default:
null
permissions
object 
required
Permissions for the channel, containing roles and their associated permissions
createdAt
string <date-time>
required
Timestamp of when the category was created
Default:
CURRENT_TIMESTAMP
editedAt
string <date-time>
optional
Timestamp of when the category was last edited
Default:
null
Example
{
  "channels": [
    {
      "id": "string",
      "type": "string",
      "teamId": "string",
      "name": "string",
      "description": "string",
      "createdBy": "string",
      "parentId": "string",
      "participants": [
        "string"
      ],
      "priority": 0,
      "nsfw": true,
      "region": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "permissions": {
        "role": {
          "roleId": "string",
          "allow": 0,
          "deny": 0
        }
      },
      "additionalData": {
        "streamChannel": "string",
        "streamPlatform": "string"
      }
    }
  ],
  "categories": [
    {
      "id": "string",
      "teamId": "string",
      "name": "string",
      "createdBy": "string",
      "priority": null,
      "permissions": {
        "role": {
          "roleId": "string",
          "allow": 0,
          "deny": 0
        }
      },
      "createdAt": "CURRENT_TIMESTAMP",
      "editedAt": null
    }
  ]
}
Previous
Update Channel Role Permissions
Next
Create Team Channel
Built with