Channels
List
GET
https://threads.com/api/public/channels
List the channels visible to your Bot user. These include public channels in your organization.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <your_api_key> |
Content-Type | string | application/json |
Example Request
Example Response
Create
POST
https://threads.com/api/public/createChannel
Create a new channel
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <your_api_key> |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
name | string | name of the channel |
userIDs | string [] | an userIDs of emails to add to the channel |
emails | string[] | an array of emails to add to the channel |
description | string | a short description of what this channel will be used for |
Example Request
Example Response
Add members
POST
https://threads.com/api/public/addChannelMembers
Add members to a channel
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <your_api_key> |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
channelID | string | id of the channel |
userIDs | string [] | an userIDs of emails to add to the channel |
emails | string[] | an array of emails to add to the channel |
Example Request
Example Response
Delete
POST
https://threads.com/api/public/deleteChannel
Delete a channel. Pass in the channelID.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <your_api_key> |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
channelID | string | This is ID of the channel you want to delete |