Facebook Publishing API

The Publishing API from Facebook — 2 operation(s) for publishing.

Operations 2

POST /{threads-user-id}/threads Facebook Create Threads Media #
POST /{threads-user-id}/threads_publish Facebook Publish Threads Media #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/facebook-publishing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

facebook-publishing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Facebook Threads Publishing API
  description: Publish and manage content on Threads, Meta's text-based social platform. Create posts and carousels, retrieve and moderate replies, access insights, and manage creator profiles.
  version: '1.0'
  contact:
    name: Meta Platforms
    url: https://developers.facebook.com
  x-generated-from: documentation
  x-last-validated: '2026-04-18'
servers:
- url: https://graph.threads.net/v1.0
  description: Threads API v1.0
security:
- BearerAuth: []
tags:
- name: Publishing
paths:
  /{threads-user-id}/threads:
    post:
      operationId: createThreadsMedia
      summary: Facebook Create Threads Media
      description: Create a media container for a Threads post.
      tags:
      - Publishing
      parameters:
      - name: threads-user-id
        in: path
        required: true
        description: The Threads user ID.
        schema:
          type: string
        example: '12345678901234567'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThreadsPostRequest'
            examples:
              CreateThreadsMediaRequestExample:
                summary: Default createThreadsMedia request
                x-microcks-default: true
                value:
                  media_type: TEXT
                  text: Hello Threads! This is my first post.
      responses:
        '200':
          description: Media container created successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /{threads-user-id}/threads_publish:
    post:
      operationId: publishThreadsMedia
      summary: Facebook Publish Threads Media
      description: Publish a previously created Threads media container.
      tags:
      - Publishing
      parameters:
      - name: threads-user-id
        in: path
        required: true
        description: The Threads user ID.
        schema:
          type: string
        example: '12345678901234567'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                creation_id:
                  type: string
                  description: ID of the media container to publish.
              required:
              - creation_id
      responses:
        '200':
          description: Thread published successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    ThreadsPostRequest:
      type: object
      description: Request to create a Threads post.
      properties:
        media_type:
          type: string
          description: Media type.
          enum:
          - TEXT
          - IMAGE
          - VIDEO
          - CAROUSEL
          example: TEXT
        text:
          type: string
          description: Post text content.
          example: Hello Threads! This is my first post.
        image_url:
          type: string
          format: uri
          description: URL of the image.
        video_url:
          type: string
          format: uri
          description: URL of the video.
      required:
      - media_type
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Threads OAuth 2.0 access token.