TikTok Post API

Video publishing operations

GitHub OpenAPI
Business capability
Digital Marketing Management BC-400.60

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v2/post/publish/video/init/ Start a video upload or direct post · Init Video Upload #
Ask an LLM
“How do I upload a video file to a TikTok account?”
“Can I publish a video to a user's account from a URL instead of a file upload?”
Tell an agent
Start a video upload for {source_info} with post info {post_info}.
Initiate a direct post of {source_info} using {post_info}.
POST /v2/post/publish/status/fetch/ Check a video publish job's status · Get Publish Status #
Ask an LLM
“Has my video upload finished processing?”
“What is the publish status of a video I started?”
Tell an agent
Get the publish status of job {publish_id}.
Poll video publish job {publish_id}.
POST /v2/post/publish/inbox/video/init/ Start an inbox draft video upload · Init Inbox Video Upload #
Ask an LLM
“Can I upload a video to a user's TikTok inbox as a draft?”
“How do I save a video to the inbox for the user to publish later?”
Tell an agent
Start an inbox video upload for {source_info}.
Save {source_info} as a draft in the user's inbox.
POST /v2/post/publish/creator_info/query/ Get a creator's posting settings · Query Creator Info #
Ask an LLM
“What privacy levels and comment settings does my TikTok account allow?”
“Which duet and stitch permissions are enabled for my account?”
Tell an agent
Show my posting settings.
Get my allowed privacy levels and comment settings.

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/tiktok:tiktok-post-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

tiktok-post-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TikTok Content Posting Post API
  description: The TikTok Content Posting API allows third-party platforms to publish videos directly to a user's TikTok account. Supports direct post and file-upload flows, including video initiation, chunk upload, and publish status polling.
  version: v2
  contact:
    name: TikTok for Developers
    url: https://developers.tiktok.com/
  termsOfService: https://developers.tiktok.com/doc/tiktok-api-terms-of-service
servers:
- url: https://open.tiktokapis.com
  description: TikTok Open API Production
security:
- BearerAuth: []
tags:
- name: Post
  description: Video publishing operations
paths:
  /v2/post/publish/video/init/:
    post:
      operationId: initVideoPublish
      summary: Init Video Upload
      description: Initiates a video upload or direct post to a user's TikTok account. Declare the video source type (FILE_UPLOAD or PULL_FROM_URL), chunk count, file size, and publish metadata. Returns an upload_url and publish_id.
      tags:
      - Post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoInitRequest'
      responses:
        '200':
          description: Upload initiated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoInitResponse'
        '401':
          description: Unauthorized
        '400':
          description: Bad Request
  /v2/post/publish/status/fetch/:
    post:
      operationId: getPublishStatus
      summary: Get Publish Status
      description: Polls the status of a video publish job using the publish_id returned from the init endpoint. Status transitions from PROCESSING to PUBLISH_COMPLETE.
      tags:
      - Post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublishStatusRequest'
      responses:
        '200':
          description: Publish status returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublishStatusResponse'
        '401':
          description: Unauthorized
  /v2/post/publish/inbox/video/init/:
    post:
      operationId: initInboxVideoUpload
      summary: Init Inbox Video Upload
      description: Initiates a video upload to a user's TikTok inbox as a draft. The user can review and publish from the TikTok app.
      tags:
      - Post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InboxVideoInitRequest'
      responses:
        '200':
          description: Inbox upload initiated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoInitResponse'
        '401':
          description: Unauthorized
  /v2/post/publish/creator_info/query/:
    post:
      operationId: queryCreatorInfo
      summary: Query Creator Info
      description: Retrieves the authenticated creator's content posting settings including allowed privacy levels, duet and stitch permissions, and comment settings.
      tags:
      - Post
      responses:
        '200':
          description: Creator info returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatorInfoResponse'
        '401':
          description: Unauthorized
components:
  schemas:
    InboxVideoInitRequest:
      type: object
      required:
      - source_info
      properties:
        source_info:
          type: object
          properties:
            source:
              type: string
              enum:
              - FILE_UPLOAD
              - PULL_FROM_URL
            video_url:
              type: string
            chunk_size:
              type: integer
            total_chunk_count:
              type: integer
    VideoInitRequest:
      type: object
      required:
      - source_info
      - post_info
      properties:
        source_info:
          type: object
          properties:
            source:
              type: string
              enum:
              - FILE_UPLOAD
              - PULL_FROM_URL
              description: Source type for the video
            video_url:
              type: string
              description: URL of the video (required when source is PULL_FROM_URL)
            chunk_size:
              type: integer
              description: Size of each upload chunk in bytes
            total_chunk_count:
              type: integer
              description: Total number of chunks
        post_info:
          $ref: '#/components/schemas/PostInfo'
    PublishStatusRequest:
      type: object
      required:
      - publish_id
      properties:
        publish_id:
          type: string
          description: The publish_id returned from the init endpoint
    CreatorInfoResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            creator_avatar_url:
              type: string
            creator_username:
              type: string
            creator_nickname:
              type: string
            privacy_level_options:
              type: array
              items:
                type: string
            comment_disabled:
              type: boolean
            duet_disabled:
              type: boolean
            stitch_disabled:
              type: boolean
            max_video_post_duration_sec:
              type: integer
        error:
          $ref: '#/components/schemas/Error'
    PostInfo:
      type: object
      properties:
        title:
          type: string
          description: Caption/title for the post (max 2200 chars)
        privacy_level:
          type: string
          enum:
          - PUBLIC_TO_EVERYONE
          - MUTUAL_FOLLOW_FRIENDS
          - FOLLOWER_OF_CREATOR
          - SELF_ONLY
          description: Privacy level for the video
        disable_duet:
          type: boolean
          description: Whether to disable duet for this post
        disable_comment:
          type: boolean
          description: Whether to disable comments
        disable_stitch:
          type: boolean
          description: Whether to disable stitch
        video_cover_timestamp_ms:
          type: integer
          description: Timestamp in milliseconds for video cover
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        log_id:
          type: string
    VideoInitResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            publish_id:
              type: string
              description: Unique identifier for this publish job
            upload_url:
              type: string
              description: URL to upload video chunks to
        error:
          $ref: '#/components/schemas/Error'
    PublishStatusResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            status:
              type: string
              enum:
              - PROCESSING_UPLOAD
              - PROCESSING_DOWNLOAD
              - SENDING_TO_USER_INBOX
              - FAILED
              - PUBLISH_COMPLETE
              description: Current status of the publish job
            publish_id:
              type: string
            uploaded_bytes:
              type: integer
              description: Bytes uploaded so far
        error:
          $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: OAuth 2.0 Bearer token