Chat Messages
Post
POST
https://threads.com/api/public/postChatMessage
Post a message to a chat sending an array of blocks in markdown.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <your_api_key> |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
chat | string | This is the name of the chat you want to post to |
chatID | string | This is ID of the chat you want to post to. An easy way to find a chatID for a chat is to navigate to that chat on the Threads website. The URL will be |
body | string | This is the body of the message. To format the body, you can send markdown. |
Example Request
Example Response
Delete
POST
https://threads.com/api/public/deleteChatMessage
Delete a chat message posted by the bot user of the Bearer token. Pass in the messageID
that you got from the postChatMessage
response. Alternatively if you click on copy link on a message on web you'll get the URL pasted to your clipboard.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <your_api_key> |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
messageID | string | This is ID of the message you want to delete |