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

What Threads supports here
PublishingYes
SchedulingYes
CommentsYes
Direct messagesNo
MentionsYes
ReviewsNo
AnalyticsYes

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.

platform_data options for Threads
KeyTypeWhat it does
link_attachmentURLLink card. Text-only posts.
topic_tagstringOne topic, 1 to 50 characters, without "." or "&".
reply_to_idstringPublish as a reply to this Threads post.
quote_post_idstringQuote 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_codesstring[]ISO alpha-2 codes the post is limited to.
is_spoiler_mediabooleanMedia posts: blur the media as a spoiler.
text_entitiesobjectSpoiler ranges of the text, sent to Threads as given.
is_ghost_postbooleanText-only posts that archive themselves after 24 hours. Not with enable_reply_approvals.
enable_reply_approvalsbooleanReplies wait for your approval.
reply_controlstringeveryone, accounts_you_follow, mentioned_only, parent_post_author_only or followers_only.
location_idstringLocation tag. Needs Meta's beta permission threads_location_tagging.
crossreshare_to_igbooleanAlso 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.

Connection error codes for Threads
CodeMeaning
account.already_linkedThe 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_limitNo 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.received
  • mention.received

Webhook events and their payloads

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.

  1. Create an app at developers.facebook.com → My Apps → Create app → type Business.
  2. Add the Threads API (use case: Access the Threads API) product to the app.
  3. Paste the Callback address shown below into Valid OAuth Redirect URIs.
  4. Under Webhooks, subscribe with the Webhook address below and your META_WEBHOOK_VERIFY_TOKEN.
  5. App settings → Basic: add Privacy Policy URL, Terms URL, User data deletion URL, app icon and category.
  6. In the Threads use case, add every permission listed below: Threads refuses a sign-in that asks for one the app does not have.
  7. 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_basic
  • threads_content_publish
  • threads_read_replies
  • threads_manage_replies
  • threads_delete
  • threads_manage_mentions
  • threads_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)

  1. Business verification of your company in Meta Business Manager (documents + domain).
  2. App Review: request Advanced Access for every permission listed below, each with a screencast of the feature and test instructions.
  3. 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.

Other platforms

Free to start

Your next post can go everywhere at once.

No card. Connect a profile, send a post, see it land.