Files
Upload
POST
https://threads.com/api/public/upload
Upload a file which can be used in a subsequent postThread
or postChatMessage
request using the uploadFile
endpoint. Only uploading image, video, pdf, and text mimetypes are allowed.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <your_api_key> |
Content-Type | string | multipart/form-data |
Request Body
Name | Type | Description |
---|---|---|
data | string | The local location of the file |