Markdown

We support some markdown for formatting your threads and chat messages. You can use the fileID from the uploadFile API to embedding an image or video file as a standalone block.

Example Requests

curl \
  -H "Authorization: Bearer <your_api_key>" \
  -H "Content-Type: application/json" \
  -X POST https://threads.com/api/public/postThread \
  -d \
'{
  "channel": "<your_channel_name>",
  "blocks":[
    "# Heading 1",
    "## heading 2",
    "embedded link https://threads.com",
    "[link to API docs](https://docs.threads.com/developer/api-introduction/markdown/)",
    "**bold text**",
    "*italic*",
    "_underline_",
    "-strikethrough-",
    "`inline code`",
    "* list item1 \n * list item2",
    "<@12345678901|> user mention using userID"
  ]
}'
curl \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-X POST https://threads.com/api/public/postThread \
-d '{"channel":"<your_channel_name>","blocks":["# My First Block", "embedded file below", "<@12345678910|>"]}'

Last updated