Platforms / Threads
Threads API
Publish text, image, carousel and video threads, manage replies and read mentions.
At a glance
- Platform id
threads- Connects
- profile
- Sign-in
- OAuth: the user approves on the platform's own page
- Post types
- Text · Image · Carousel (2-20, photos and videos) · Video · Poll · Quote post · Reply
Capabilities
| Publishing | Yes |
|---|---|
| Scheduling | Yes |
| Comments | Yes |
| Direct messages | No |
| Mentions | Yes |
| Reviews | No |
| Analytics | Yes |
Required on every post
- Text or media.
Options
Send these in platform_data.threads on the post, or flat in a target's own platform_data (the target's keys win). See Publishing.
| Key | Type | What it does |
|---|---|---|
link_attachment | URL | Link card. Text-only posts. |
topic_tag | string | One topic, 1 to 50 characters, without "." or "&". |
reply_to_id | string | Publish as a reply to this Threads post. |
quote_post_id | string | Quote this Threads post. |
poll_attachment | { option_a … option_d } | Text-only posts: 2 to 4 options of 1 to 25 characters. |
gif_attachment | { gif_id, provider } | Text-only posts. Only provider GIPHY is sent. |
allowlisted_country_codes | string[] | ISO alpha-2 codes the post is limited to. |
is_spoiler_media | boolean | Media posts: blur the media as a spoiler. |
text_entities | object | Spoiler ranges of the text, sent to Threads as given. |
is_ghost_post | boolean | Text-only posts that archive themselves after 24 hours. Not with enable_reply_approvals. |
enable_reply_approvals | boolean | Replies wait for your approval. |
reply_control | string | everyone, accounts_you_follow, mentioned_only, parent_post_author_only or followers_only. |
location_id | string | Location tag. Needs Meta's beta permission threads_location_tagging. |
crossreshare_to_ig | boolean | Also share to Instagram (crossreshare_to_ig_dark_mode for the dark style). Needs Meta's beta permission threads_share_to_instagram. |
Limits
- 500 characters, 1 hashtag and at most 5 different links per post (the link card counts).
- Images JPEG or PNG up to 8 MB. Videos MP4 or MOV up to 5 minutes and 1 GB. Carousels hold 2 to 20 items.
- This server caps each account at 25 posts an hour and 250 a day.
Text over the limit fails validation before anything is sent. The caps of this server are explained in Rate limits.
Good to know
- Published posts cannot be edited: delete the post and publish a new one.
- Replies: answer, hide or unhide other people's direct replies, delete your own. No likes, no private replies and no DMs (Threads has no messaging API).
- Accounts connected before delete, mentions and insights were requested must reconnect to use them.
- Until approval, only Threads testers added in the app roles can connect.
Publish with the API
curl https://api.zaynstack.com/v1/posts \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{
"text": "Hello from SocialWire",
"media": [{ "type": "image", "source_type": "url", "source": "https://example.com/file.jpg" }],
"targets": [{ "account_id": "<Threads account id>" }],
"publish_now": true
}'An operation Threads cannot do answers 501 resource.not_supported. Agents can do the same through the MCP server.
Connection errors
A connection that fails comes back to your redirect_uri with status=error, error=<code> and error_description, or as the error of the connect call. All codes: Connect accounts.
| Code | Meaning |
|---|---|
account.already_linked | The brand already holds a different account on this platform, or the account belongs to another brand while lock_accounts_to_brand is on. |
billing.brands_limit | No brand_id was sent, so a new brand was needed, and the plan has no room for another brand. |
Webhook events
Every platform sends the post.* and account.* events. Threads also sends:
comment.receivedmention.received
Not supported yet
- Editing published posts.
- Direct messages: Threads has no messaging API.
- Liking replies and private replies.
Developer setup (self-hosting)
Only the operator of this server does this, once. Users then just click Connect.
- Create an app at developers.facebook.com → My Apps → Create app → type Business.
- Add the Threads API (use case: Access the Threads API) product to the app.
- Paste the Callback address shown below into Valid OAuth Redirect URIs.
- Under Webhooks, subscribe with the Webhook address below and your META_WEBHOOK_VERIFY_TOKEN.
- App settings → Basic: add Privacy Policy URL, Terms URL, User data deletion URL, app icon and category.
- In the Threads use case, add every permission listed below: Threads refuses a sign-in that asks for one the app does not have.
- Copy the Threads app ID and secret into THREADS_APP_ID / THREADS_APP_SECRET.
- Callback address
https://api.zaynstack.com/api/connect/threads/callback- Webhook address
https://api.zaynstack.com/api/hooks/threads- Server variables
THREADS_APP_ID, THREADS_APP_SECRET, META_WEBHOOK_VERIFY_TOKEN- Developer console
- Threads developer console
Permissions requested
threads_basicthreads_content_publishthreads_read_repliesthreads_manage_repliesthreads_deletethreads_manage_mentionsthreads_manage_insights
When a reconnect grants fewer permissions than before, an account.updated event with change permissions_reduced is sent. Accounts connected before a permission was added keep working but must reconnect to use the features it unlocks.
Before anyone can connect (review)
- Business verification of your company in Meta Business Manager (documents + domain).
- App Review: request Advanced Access for every permission listed below, each with a screencast of the feature and test instructions.
- Switch the app to Live mode after approval.
Typical wait: Usually 1-3 weeks. Until then the app works for your own accounts and the testers you add in the console.