All articles

Threads API Guide: Auto-Post & Schedule from Code (2027)

Auto-post and schedule on Threads via the Meta Threads API in 2027: OAuth tokens, two-step containers, carousels, polls, 250/day rate limits, and Bulkit.

15 min read

Threads API Guide: Auto-Post & Schedule from Code (2027)

The Threads API lets developers, SaaS teams, and automation builders publish text, images, videos, carousels, and polls to Threads programmatically over HTTPS. Meta's official endpoints at graph.threads.net are free to call, which makes Threads API automatic post workflows look simple on paper.

In practice, shipping reliable Threads publishing takes more plumbing than a single POST request. Every media post requires a two-step container creation and publish cycle, videos require status polling before publishing, user tokens expire every 60 days, and Meta provides no native scheduling endpoint. You either build your own scheduler, token-refresh cron, and retry queue, or route requests through a unified social media scheduling API.

This 2027 developer guide covers everything you need to go from zero to production: permissions, OAuth token exchange, exact curl and TypeScript payloads for every format, rate limits, the latest API additions, common production bugs, and how to ship Threads plus 11 other networks in one call with Bulkit.

Scheduling, solved

Queue a month of posts in one call

One scheduling API across every network, with per-platform validation up front so a malformed post fails at request time instead of silently at publish time.

Is the Threads API Free? (And What You Need First)

Yes. The official Meta Threads API is free to use with no per-call fees or paid developer tiers. You only need a free Meta Developer account, an app configured with the Threads API use case, and a Threads profile connected to an Instagram account.

Before your code can send its first request against https://graph.threads.net/v1.0, complete four setup steps in the Meta for Developers dashboard:

  1. Create a Meta App and select the "Access the Threads API" use case. (If you already maintain a Meta App for Instagram or Facebook, Threads can live alongside them with its own Threads App ID and App Secret.)
  2. Configure OAuth redirect URIs plus deauthorize and data-deletion callback URLs.
  3. Add Threads Testers under App Roles while in Development mode. Testers must accept the invite inside the Threads app under Settings > Account > Website permissions > Invitations.
  4. Complete Meta App Review before publishing for external users. Posting to your own tester account works without review; publishing for SaaS customers or agency clients requires approved permissions and business verification.

Permissions and OAuth Token Setup

Every request to graph.threads.net authenticates with a user access token scoped to the actions your app performs. Request only the scopes you actually use, because each extra permission adds another screencast and review step during Meta App Review.

Permission Scope What It Unlocks Required For Auto-Posting?
threads_basic Read profile metadata, user ID, and basic post fields Yes (always required)
threads_content_publish Create containers and publish text, media, carousels, polls, and replies Yes
threads_manage_insights Read post views, likes, replies, reposts, quotes, and account metrics Optional (for analytics)
threads_manage_replies Read, hide, approve, and respond to replies on your posts Optional (for moderation)
threads_delete Delete published Threads posts via API Optional
threads_keyword_search Search public Threads posts by keyword or topic Optional

Exchanging Short-Lived Tokens for 60-Day Tokens

The Threads OAuth redirect returns an authorization code, which you exchange for a short-lived token valid for only 1 hour. Any automated posting pipeline must immediately upgrade it to a 60-day long-lived token using grant_type=th_exchange_token:

bash
curl -G "https://graph.threads.net/access_token" \
  --data-urlencode "grant_type=th_exchange_token" \
  --data-urlencode "client_secret=YOUR_THREADS_APP_SECRET" \
  --data-urlencode "access_token=SHORT_LIVED_ACCESS_TOKEN"

To keep automatic posting alive without forcing users to log in again every two months, schedule a background job to refresh the token after at least 24 hours and before day 60:

bash
curl -G "https://graph.threads.net/refresh_access_token" \
  --data-urlencode "grant_type=th_refresh_token" \
  --data-urlencode "access_token=LONG_LIVED_ACCESS_TOKEN"

If a token passes the 60-day mark without a refresh, th_refresh_token stops working and the account must complete the full OAuth consent flow again.

How the Two-Step Publishing Flow Works

Unlike simpler REST APIs that publish in one request, the Meta Threads API uses an asynchronous container model (the same pattern Meta uses for Instagram publishing). Every single post takes at least two HTTP calls, and carousels take N + 2 calls.

Architecture diagram comparing Meta's multi-step Threads API container creation, status polling, and token refresh flow against Bulkit's single POST /v1/posts request

Step 1: Create a Media Container (Text, Image, or Video)

Send a POST request to /{threads-user-id}/threads with media_type set to TEXT, IMAGE, or VIDEO. Media assets must sit at a publicly reachable HTTPS URL so Meta's servers can fetch them; the endpoint does not accept raw binary uploads directly.

bash
curl -X POST "https://graph.threads.net/v1.0/YOUR_USER_ID/threads" \
  -d "media_type=IMAGE" \
  -d "image_url=https://cdn.example.com/product-launch.jpg" \
  -d "alt_text=Screenshot of the new Threads scheduling workflow" \
  -d "text=Shipping automated Threads publishing in 2027." \
  -d "access_token=LONG_LIVED_ACCESS_TOKEN"

The endpoint returns a container id (for example, {"id": "17987654321098765"}). The post is not live yet.

Step 2: Poll Container Status (Critical for Media & Video)

For images and especially MP4/MOV videos, Meta downloads and transcodes the asset asynchronously. Wait until status equals FINISHED before publishing, or your publish request will fail with a media-not-ready error:

bash
curl -G "https://graph.threads.net/v1.0/17987654321098765" \
  --data-urlencode "fields=status,error_message" \
  --data-urlencode "access_token=LONG_LIVED_ACCESS_TOKEN"

Valid statuses are IN_PROGRESS, FINISHED, PUBLISHED, ERROR, and EXPIRED (unused containers expire after 24 hours).

Step 3: Publish the Container

Once ready, publish the container to make the post live on the profile:

bash
curl -X POST "https://graph.threads.net/v1.0/YOUR_USER_ID/threads_publish" \
  -d "creation_id=17987654321098765" \
  -d "access_token=LONG_LIVED_ACCESS_TOKEN"

Publishing Carousels (2 to 20 Images or Videos)

Carousels multiply the request count quickly. To publish a 5-slide carousel directly against Meta's endpoints, your backend must make 7 sequential API calls plus status polling:

  1. Create each child container with is_carousel_item=true (media_type=IMAGE or VIDEO, without text).
  2. Poll every child container until all report FINISHED.
  3. Create the parent container with media_type=CAROUSEL, children=CHILD_ID_1,CHILD_ID_2,..., and your caption in text.
  4. Call /{threads-user-id}/threads_publish with the parent container ID.

One upside: regardless of whether a carousel holds 2 items or the maximum 20 items, Meta counts the finished carousel as one post against your 24-hour publishing limit.

Publishing Polls and Multi-Post Thread Chains

Meta supports interactive polls on text-only posts by passing poll_attachment as a JSON object on container creation (option_a and option_b required, optional option_c and option_d, max 25 characters each):

json
{
  "media_type": "TEXT",
  "text": "How do you automate your social posts?",
  "poll_attachment": {
    "option_a": "Custom API scripts",
    "option_b": "n8n or Make workflows",
    "option_c": "AI agents over MCP",
    "option_d": "Still manual"
  }
}

To publish a multi-post thread chain (connected replies under an opening post), you must publish post #1, read its returned published media ID, then pass reply_to_id=POST_1_ID when creating container #2, publish #2, read its ID, and repeat for every subsequent reply.

Threads API Rate Limits, Media Specs, and 2027 Updates

Meta enforces rolling 24-hour quotas per Threads profile, along with strict format caps. Checking these limits up front saves hours of debugging silent rejections.

Threads API rate limits and content specifications cheat sheet showing 250 posts per 24 hours, 1,000 replies, 500 characters, 20 carousel items, and 5 links max

Official Rate Limits and Content Specs

Limit / Spec Official Threads API Value Developer Note
Posts per 24 hours 250 API-published posts Rolling 24h window per profile; carousels count as 1
Replies per 24 hours 1,000 replies Separate bucket from top-level posts
Deletions per 24 hours 100 deletes Requires threads_delete scope
Post text length Up to 500 characters Extended text attachments support up to 10,000 chars
Links per post Max 5 unique URLs Exceeding triggers THREADS_API__LINK_LIMIT_EXCEEDED
Carousel items 2 to 20 images/videos Mix of JPEG/PNG and MP4/MOV allowed
Image spec JPEG or PNG, max 8 MB Width 320 to 1,440 px; aspect ratio up to 10:1
Video spec MP4 or MOV, max 1 GB Up to 5 minutes (300s), 23 to 60 FPS
Poll options 2 to 4 choices Max 25 characters per option; text-only posts
Token lifetime 60 days (long-lived) Must refresh before expiry or re-run OAuth

You can check remaining publishing quota at any time with GET /{threads-user-id}/threads_publishing_limit?fields=quota_usage,config so your worker backs off gracefully before hitting HTTP 429 or quota errors.

Key Platform Updates Heading Into 2027

Meta significantly expanded the platform's developer surface heading into 2027 beyond basic publishing:

  • AI-generated content labeling: Set is_made_with_ai=true on containers when publishing synthetic or AI-assisted media.
  • Ghost posts: Publish ephemeral text posts that automatically archive after 24 hours.
  • Extended text attachments and spoiler tags: Attach long-form formatted text up to 10,000 characters and mark sensitive text or media behind tap-to-reveal spoiler tags.
  • Reply approvals and expanded webhooks: Enable reply approval queues programmatically and subscribe to real-time webhooks for publish, delete, reply, and mention events.
  • Tokenless oEmbed: Embed public Threads posts on websites without an access token or App Review, with light, dark, and auto theme options.
  • 5-link spam cap: Meta introduced a hard ceiling of 5 unique URLs per post, rejecting link-heavy automated threads at container creation.

5 Gotchas That Break Automatic Threads Posting in Production

If you build a direct Threads integration from scratch, these five failure modes cause the majority of production support tickets:

  1. There is no native scheduling endpoint. Meta's publishing endpoint only posts immediately when you call threads_publish. Building a real scheduler means running your own persistent job queue, timezone handling, retry backoff, dead-letter alerts, and media storage until publish time.
  2. 60-day token expiry silently kills cron jobs. Many tutorials stop right after generating a token in the Graph API Explorer. Two months later, your automation fails overnight with an expired token error until you wire up a refresh scheduler and reconnect alerts.
  3. Publishing a video container too early fails. Calling threads_publish immediately after /{user-id}/threads works for plain text, occasionally works for small JPEGs, and breaks constantly for videos. You need exponential backoff polling on container status with a timeout ceiling.
  4. Attachment collisions reject the whole post. Threads does not let one post carry both media files and a poll, or both media and a link preview attachment. Without pre-flight validation, malformed drafts sit in your queue and fail at publish time.
  5. Multi-network drift. Most teams who start with Threads soon add X (Twitter), LinkedIn, Bluesky, and Instagram. Maintaining five separate OAuth lifecycles, five media upload pipelines (compare the LinkedIn posting API and TikTok Content Posting API), and five analytics schemas turns a weekend feature into ongoing maintenance debt.

How to Auto-Post and Schedule on Threads with Bulkit

Bulkit's Threads API integration wraps Meta's entire container pipeline, status polling, thread chaining, scheduling queue, and post analytics behind one unified REST API that also covers 11 other networks (Instagram, Facebook, X, LinkedIn, TikTok, YouTube, Bluesky, Reddit, Pinterest, Vimeo, and Google Business).

Instead of writing separate container-creation loops, video pollers, and cron schedulers, you send a single payload with intent: "now" or intent: "schedule":

1. Schedule a Multi-Post Thread or Carousel in TypeScript (Node.js SDK)

Install the typed Bulkit Node.js SDK (npm install bulkit) and schedule a multi-post Threads chain with images and alt text in one call:

ts
import { openAsBlob } from "node:fs";
import { Bulkit } from "bulkit";

const bulkit = new Bulkit(); // reads BULKIT_API_KEY

// Upload media once; Bulkit hosts and passes the HTTPS asset to Meta
const slide = await bulkit.media.uploadMultipart(await openAsBlob("demo.png"), {
  fileName: "demo.png",
  mimeType: "image/png",
});

// Schedule a 2-post thread chain in one request (supports up to 25 blocks)
const post = await bulkit.posts.create({
  intent: "schedule",
  scheduledAt: "2027-01-15T14:00:00Z",
  channels: [
    {
      channelId: "CHANNEL_THREADS",
      blocks: [
        {
          content: "We cut our social publishing code from 1,400 lines to 20. Here is what actually breaks in the Meta Threads API:",
          mediaIds: [slide.id],
          mediaAltText: {
            [slide.id]: "Architecture comparison of two-step containers vs one API call",
          },
        },
        {
          content: "1) No native scheduling endpoint. 2) Video containers must be polled until FINISHED. 3) Tokens expire every 60 days.",
        },
      ],
    },
  ],
});

What Bulkit handles automatically behind that single call:

  • Full format coverage: Text posts (up to 500 characters), up to 20 images or videos per post with mediaAltText, interactive polls (poll_attachment with 2 to 4 options), link previews, and thread chains up to 25 posts published in order (where every reply can also carry up to 20 media files).
  • Upfront validation: Bulkit checks attachment rules (files vs. poll vs. link preview), character limits, and media constraints at request time, so bad payloads fail immediately instead of silently at 2:00 PM.
  • Built-in retries and idempotency: Every POST carries an Idempotency-Key, preventing duplicate posts during network timeouts.
  • Unified analytics: Impressions, likes, comments, shares, and quotes are collected automatically (hourly on day one, daily for week one, weekly up to 30 days) in the same JSON shape as every other channel.

2. Auto-Post to Threads from n8n, Make, CLI, or AI Agents (MCP)

Not every Threads workflow lives inside a Node.js backend. Because Bulkit exposes the exact same publishing engine across six surfaces, you can automate Threads from whichever stack your team already runs:

  • n8n workflows: Drop the verified Bulkit n8n node into any RSS-to-Threads, Notion-to-Threads, or AI content repurposing workflow without writing raw HTTP container loops. See our 6 social media marketing automation workflows for ready-to-deploy blueprints.
  • Make scenarios: Use the verified Bulkit Make app to trigger scheduled Threads posts from Airtable, Google Sheets, or Shopify events.
  • AI agents over MCP: Connect Claude, ChatGPT, or Cursor directly to the Bulkit MCP server so your AI agent can draft, format, and schedule Threads posts (and cross-post adapted variants across networks) from a single prompt.
  • Terminal & CI/CD: Run a one-line Bulkit CLI command from GitHub Actions whenever you ship a new release.

3. Cross-Post to Threads, X, Bluesky, and LinkedIn Together

If you want one announcement to go out on Threads, X, Bluesky, and LinkedIn simultaneously, add extra entries to the channels array with platform-native copy for each network. For exact character limits and adaptation rules per channel, read our cross posting social media playbook.

Native Threads API vs. Bulkit: Which Should You Choose?

Both paths use Meta's official Threads API underneath. The trade-off is engineering time and multi-network maintenance versus a predictable monthly layer.

Capability Native Meta Threads API Bulkit Unified API
API cost Free (Meta charges $0) $4.99/mo (500 actions included, $0.01/action after, 14-day free trial)
Multi-step containers & video polling You build and poll every container Handled automatically in one call
Native post scheduling Not supported (build your own queue) Built in (intent: "schedule" + scheduledAt)
Multi-post thread chains Chain reply_to_id sequentially yourself Up to 25 blocks in one request
Media hosting You must host public HTTPS URLs Built-in multipart media upload
Other networks (IG, X, LinkedIn, TikTok, etc.) Separate Meta/X/LinkedIn/TikTok apps All 12 networks included in one schema
No-code & AI agent support Custom HTTP nodes only Verified n8n, Make, CLI, Node SDK, and MCP

Build directly on the native Meta Threads API if Threads is the only social network you will ever support, you already host public media URLs and a background job queue, and you want zero third-party dependencies.

Use Bulkit if you need scheduling out of the box, publish multi-post threads or carousels, automate via n8n, Make, or AI agents, or post to multiple networks at once. Compared to legacy unified APIs that start at $149+/month (see our best social media APIs comparison and head-to-head comparisons), Bulkit gives you the full Threads API plus 11 other networks starting at $4.99/month after a 14-day free trial.

Frequently Asked Questions

Is the Meta Threads API free to use?

Yes. Meta does not charge for calls or enforce paid tiers like X's pay-per-use API. You still need a Meta Developer app and App Review approval to publish for external users. Through Bulkit, Threads is bundled with 11 other networks on the $4.99/month plan (500 actions included).

Can you schedule posts natively with Meta's endpoints?

No. Meta only supports immediate publishing via POST /{threads-user-id}/threads_publish. To schedule Threads posts in advance, you must store the draft and trigger the publish flow from your own scheduler, or pass intent: "schedule" and scheduledAt through Bulkit's scheduling layer.

What is the Threads API rate limit for posting?

Each Threads profile can publish up to 250 API posts per rolling 24-hour period, plus up to 1,000 replies and 100 deletions per 24 hours. Multi-image or multi-video carousels (up to 20 items) count as a single post toward the 250-post quota.

In the native flow, create one container per image or video with is_carousel_item=true, wait until every child container reaches FINISHED status, create a parent container with media_type=CAROUSEL and a comma-separated children list, and call threads_publish on the parent ID. In Bulkit, pass up to 20 uploaded mediaIds in a single posts.create() call.

Does the API support polls and multi-post threads?

Yes. Polls accept 2 to 4 text options (up to 25 characters each) via poll_attachment on text-only posts. Multi-post threads are published sequentially by replying to the previous published post ID (reply_to_id), or sent all at once as an array of up to 25 blocks in Bulkit.

Can I auto-post to Threads with n8n, Make, or Python?

Yes. Any language that makes HTTPS requests (Python requests, Go, PHP, Node.js) can call either graph.threads.net directly or Bulkit's REST API. For no-code and low-code automation, Bulkit also provides an official n8n node, a verified Make integration, and an MCP server for AI agents.

Scheduling, solved

Queue a month of posts in one call

One scheduling API across every network, with per-platform validation up front so a malformed post fails at request time instead of silently at publish time.