Chats
Create
POST
https://threads.com/api/public/createChat
Create a new chat
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 chat |
userIDs | string [] | an userIDs of emails to add to the chat |
emails | string[] | an array of emails to add to the chat |
Example Request
Example Response
Delete
POST
https://threads.com/api/public/deleteChat
Delete a chat. Pass in the chatID.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <your_api_key> |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
chatID | string | This is ID of the chat you want to delete |