Threads API: publishing, replies, insights and limits (2026)
By Natnael Girma ยท Published
The Threads API is Meta's official API for publishing to Threads and reading posts, replies and insights. Publishing takes two calls: you create a media container with POST /{threads-user-id}/threads, then publish it with POST /{threads-user-id}/threads_publish. You need a Meta app with the Threads use case, a user access token with threads_basic and threads_content_publish, and App Review before anyone other than your testers can use it.
This guide covers the whole path with curl examples taken from Meta's Threads documentation, as of December 2026.
What you need before your first call
| Requirement | Details |
|---|---|
| A Meta app | Created at developers.facebook.com with the Threads use case. The app gets a separate Threads app ID and secret. Use those, not the Facebook ones. |
| A Threads account | Any Threads profile. For testing, add it as a Threads Tester under App roles. |
| Permissions | threads_basic for every call, threads_content_publish to post, plus others for replies, insights and deletes (table below). |
| Public media hosting | Threads downloads your image or video from a URL during publishing, so the file must be on a public server at that moment. |
| App Review | Required before users who have no role on your app can grant permissions. Your app must also be published. |
The get started guide explains the tester flow. You invite the account from the App Dashboard (Add People, then Threads Tester), and the Threads user accepts the invite under Website permissions in their account settings. Testers can grant any permission without App Review, which is enough to build and test the whole integration.
Permissions
| Permission | What it allows |
|---|---|
threads_basic |
Required for every Threads endpoint |
threads_content_publish |
Creating and publishing posts |
threads_manage_replies |
Posting replies (reply_to_id), hiding replies, reply approvals |
threads_read_replies |
Reading replies and conversations |
threads_manage_insights |
Media and account insights |
threads_delete |
Deleting posts |
Until App Review approves advanced access for threads_content_publish, you can only post on behalf of your app's Threads testers.
Step 1: Get a user access token
Threads uses OAuth 2.0 with an authorization code. Send the user to the authorization window:
https://threads.com/oauth/authorize
?client_id=<THREADS_APP_ID>
&redirect_uri=<REDIRECT_URI>
&scope=threads_basic,threads_content_publish
&response_type=code
&state=<STATE>
Threads redirects back with a code. The code is valid for one hour and works once. Exchange it on your server:
curl -X POST https://graph.threads.com/oauth/access_token \
-F client_id=<THREADS_APP_ID> \
-F client_secret=<THREADS_APP_SECRET> \
-F grant_type=authorization_code \
-F redirect_uri=<REDIRECT_URI> \
-F code=<AUTHORIZATION_CODE>
The response contains a short-lived token, valid for one hour. Swap it for a long-lived token straight away:
curl -i -X GET "https://graph.threads.com/access_token?grant_type=th_exchange_token&client_secret=<THREADS_APP_SECRET>&access_token=<SHORT_LIVED_ACCESS_TOKEN>"
Token lifetimes and refresh
According to the long-lived token docs:
- Long-lived tokens last 60 days.
- You can refresh one once it is at least 24 hours old and not yet expired. Each refresh gives a new 60-day window.
- A token that passes 60 days without a refresh expires and cannot be refreshed. The user has to sign in again.
- Permission grants last 90 days. Refreshing extends the grant only for users with public profiles. Private profiles must re-grant when it lapses.
curl -i -X GET "https://graph.threads.com/refresh_access_token?grant_type=th_refresh_token&access_token=<LONG_LIVED_ACCESS_TOKEN>"
Keep the app secret on the server. Meta says it must never reach client code or a device.
The API answers on both graph.threads.com and graph.threads.net, per the changelog. Current docs use graph.threads.com/v1.0.
Step 2: Publish a post
Every post is a media container that you publish. The posts guide uses this shape.
Text post
curl -i -X POST \
-d "media_type=TEXT" \
--data-urlencode "text=Shipping the new release today" \
-d "access_token=<ACCESS_TOKEN>" \
"https://graph.threads.com/v1.0/<THREADS_USER_ID>/threads"
The response is {"id": "<THREADS_MEDIA_CONTAINER_ID>"}. Publish it:
curl -i -X POST \
-d "creation_id=<MEDIA_CONTAINER_ID>" \
-d "access_token=<ACCESS_TOKEN>" \
"https://graph.threads.com/v1.0/<THREADS_USER_ID>/threads_publish"
That returns {"id": "<THREADS_MEDIA_ID>"}, the ID of the live post. For text-only posts you can skip the second call by adding auto_publish_text=true to the container request, per the publishing reference.
Image or video post
curl -i -X POST \
-d "media_type=IMAGE" \
--data-urlencode "image_url=https://example.com/photo.jpg" \
--data-urlencode "text=Behind the scenes" \
--data-urlencode "alt_text=Two people assembling a wooden desk" \
-d "access_token=<ACCESS_TOKEN>" \
"https://graph.threads.com/v1.0/<THREADS_USER_ID>/threads"
For video, use media_type=VIDEO and video_url. Meta recommends waiting about 30 seconds after creating a container before you publish it. Video needs longer, so poll the container status (see errors below) instead of guessing.
Carousel
A carousel takes three steps. Create one container per item with is_carousel_item=true:
curl -i -X POST \
-d "media_type=IMAGE" \
--data-urlencode "image_url=<IMAGE_URL>" \
-d "is_carousel_item=true" \
-d "access_token=<ACCESS_TOKEN>" \
"https://graph.threads.com/v1.0/<THREADS_USER_ID>/threads"
Then create the carousel container from the child IDs, and publish it with threads_publish as before:
curl -i -X POST \
-d "media_type=CAROUSEL" \
-d "children=<MEDIA_ID_1>,<MEDIA_ID_2>,<MEDIA_ID_3>" \
--data-urlencode "text=Three angles" \
-d "access_token=<ACCESS_TOKEN>" \
"https://graph.threads.com/v1.0/<THREADS_USER_ID>/threads"
Carousels need at least 2 and at most 20 items, images, videos or a mix. A carousel counts as one post against your quota.
Useful container parameters
| Parameter | What it does |
|---|---|
reply_control |
Who can reply: everyone, accounts_you_follow, mentioned_only, parent_post_author_only, followers_only |
link_attachment |
A link preview card. Text-only posts. |
topic_tag |
One topic per post, 1 to 50 characters, no periods or ampersands |
alt_text |
Accessibility text for images and video, up to 1,000 characters |
quote_post_id |
Quote another post |
text_attachment |
Long-form text up to 10,000 characters with optional styling. Text-only posts. |
is_made_with_ai |
Adds the AI info label. Set it on the parent container for carousels. |
auto_publish_text |
Publishes a text post without the second call |
The text attachments page and the publishing reference list the full set, including polls, spoilers, GIFs (GIPHY only), location tags and ghost posts.
Media requirements
From the posts guide:
| Images | Video | |
|---|---|---|
| Formats | JPEG, PNG | MOV, MP4 |
| Max file size | 8 MB | 1 GB |
| Other limits | Min width 320 px, aspect ratio up to 10:1, converted to sRGB | Up to 300 seconds, 23 to 60 FPS, max width 1920 px, max 100 Mbps video bitrate, 9:16 recommended |
Text posts are limited to 500 characters, and emojis count by their UTF-8 byte length. A post can contain at most 5 unique links. Since December 22, 2025, posts with more fail at container creation with THREADS_API__LINK_LIMIT_EXCEEDED.
Read posts, replies and insights
Publishing is only part of the API. These are the read endpoints you will reach for most often.
Your posts. GET /{threads-user-id}/threads returns a paginated list of the user's posts, and GET /{threads-media-id} returns one. Ask for fields explicitly, such as id,text,permalink,timestamp,media_type (retrieve posts).
Replies. GET /{threads-media-id}/replies returns top-level replies. GET /{threads-media-id}/conversation returns every reply at any depth as a flat list (replies and conversations):
curl -s -X GET \
"https://graph.threads.com/v1.0/<MEDIA_ID>/conversation?fields=id,text,timestamp,username,replied_to,hide_status&reverse=false&access_token=<ACCESS_TOKEN>"
Replying. A reply is a normal container with reply_to_id set, then published the same way. It needs threads_manage_replies, and you must own the root post or have the keyword search or mentions permission (create replies). You can hide a reply with POST /{reply-id}/manage_reply and hide=true.
Insights. GET /{threads-media-id}/insights returns views, likes, replies, reposts, quotes and shares for a post. GET /{threads-user-id}/threads_insights returns account metrics including followers_count and follower_demographics (insights):
curl -s -G \
-d "metric=likes,replies" \
-d "access_token=<ACCESS_TOKEN>" \
"https://graph.threads.com/v1.0/<THREADS_MEDIA_ID>/insights"
Insight ranges cannot start before April 13, 2024, and follower_demographics needs at least 100 followers.
Deleting. DELETE /{threads-media-id} removes a post the user created. It needs threads_delete (delete posts).
Rate limits and publishing quotas
Threads limits are per profile over a rolling 24 hours, per the troubleshooting page:
| Action | Limit per 24 hours |
|---|---|
| Published posts | 250 |
| Replies | 1,000 |
| Deletes | 100 |
| Location searches | 500 |
Check where a profile stands before a big batch:
curl -s -X GET \
"https://graph.threads.com/v1.0/<THREADS_USER_ID>/threads_publishing_limit?fields=quota_usage,config,reply_quota_usage,reply_config&access_token=<ACCESS_TOKEN>"
Common errors and fixes
When threads_publish does not return a media ID, query the container:
curl -s -X GET \
"https://graph.threads.com/v1.0/<MEDIA_CONTAINER_ID>?fields=status,error_message&access_token=<ACCESS_TOKEN>"
Meta suggests checking once per minute for no more than 5 minutes.
| Status or error | What it means | Fix |
|---|---|---|
IN_PROGRESS |
Still processing | Wait and poll again before publishing |
EXPIRED |
Not published within 24 hours | Create a new container |
ERROR with FAILED_DOWNLOADING_VIDEO |
Threads could not fetch your URL | Make sure the URL is public, returns the file directly and has no auth or redirects to a login |
INVALID_DURATION, INVALID_FRAME_RATE, INVALID_BIT_RATE, INVALID_ASPEC_RATIO |
Video outside the specs | Re-encode to MP4 within the limits in the media table |
THREADS_API__LINK_LIMIT_EXCEEDED |
More than 5 unique links | Cut links to 5 or fewer |
| Permission error for a real user | App not approved for advanced access | Add the user as a tester or finish App Review |
| Expired token | 60 days without a refresh | Refresh tokens on a schedule; if expired, have the user reconnect |
What we ran into building this
These notes come from Taskwind's own Threads connector, which posts through the endpoints above.
- A brand-new container can claim it does not exist. Right after
POST /threadsreturns an ID, a status check orthreads_publishcall can fail with a "does not exist" error for a few seconds. We wait 2 seconds after creating the container, then retry "does not exist" errors up to 5 times, 3 seconds apart, on both the status check and the publish call. - Poll instead of sleeping a fixed 30 seconds. Text and image containers usually reach
FINISHEDwell before 30 seconds, and video often takes longer. We checkstatusevery 3 seconds and give up after about 2 minutes (40 checks). TreatERRORandEXPIREDas final. - Refresh early. A 60-day token cannot be refreshed once it has expired, and the user then has to sign in again. We refresh each Threads token when it is within 7 days of expiry, so a missed job or a quiet week does not cost anyone their connection.
- Ask for only what you use. Our connection requests
threads_basicandthreads_content_publishand nothing else, which keeps the consent screen short and App Review simpler. Add reply and insights permissions only when you build those features. - The old domain still works. Our connector still calls
graph.threads.net/v1.0, and Meta's changelog confirms both domains are served. New code should follow the docs and usegraph.threads.com.
The same post through Taskwind
If you would rather not run the OAuth flow, token refresh and container polling yourself, Taskwind handles them. You connect the Threads account once with Meta's official login, then post with one REST call. Upload the file first if there is media:
curl -X POST https://taskwind.ai/v1/media \
-H "Authorization: Bearer $TASKWIND_API_KEY" \
-H "Content-Type: image/jpeg" \
--data-binary @photo.jpg
Then create the post with the returned med_... ID, now or at a Unix timestamp:
curl -X POST https://taskwind.ai/v1/posts \
-H "Authorization: Bearer $TASKWIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content":"Behind the scenes","account_ids":["acc_..."],"media_ids":["med_..."],"scheduled_at":1798000000}'
The response has a targets array with the status, link and any error for each account. The same call can include your X, LinkedIn or Bluesky accounts. See the REST API docs, and the social media posting API guide for how the networks compare.
Be clear about the limits. On Threads, Taskwind publishes text, one image or one video, up to 500 characters. It does not support carousels, reply controls, polls, topic tags or text attachments, and it does not offer analytics yet. If you need those, call Meta's API directly. You can also skip code entirely and ask Claude or ChatGPT to post through Taskwind's MCP server. Plans start at $49/month with a 7-day trial (pricing).
Questions
Is the Threads API free?
Meta publishes no fees or price list for the Threads API. Access is controlled by App Review and the per-profile quotas above.
Can the Threads API schedule posts?
Not directly. The publishing endpoints have no schedule parameter and a post goes live when you call threads_publish, so scheduling means storing the post and calling the API at the right time yourself. Meta's overview tells apps that offer scheduling to enforce the 250-post limit on their side.
Do posts made through the Threads API reach the fediverse?
Yes, for users who have turned on fediverse sharing. Since August 28, 2024, eligible posts made through the API are shared to the fediverse for those users, according to Meta's create posts page.