> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidjutsu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Schedule a post

> Post a video or image to one or more connected accounts, now or at `at`. It is a finished render (`{job_id}`) or a stored file (`{hash}`). Answers 201 with the post; follow it with `GET /posts/{post_id}`. Send `idempotency_key` so a retry returns the same post. See [Publishing](https://docs.vidjutsu.ai/guides/publishing).



## OpenAPI

````yaml /openapi/spec.json post /posts
openapi: 3.1.0
info:
  title: VidJutsu Cloud API
  version: '2026-11-03'
  description: >-
    Video editing built for agents: upload takes, edit a timeline with history,
    and render it on cloud machines. The same operations are MCP tools at
    https://api.vidjutsu.ai/mcp.
servers:
  - url: https://api.vidjutsu.ai
security:
  - bearer: []
tags:
  - name: Sign-up and sign-in
  - name: Account
  - name: API keys
  - name: Billing
  - name: Media
  - name: Uploads
  - name: Projects
  - name: History
  - name: Shot list
  - name: Layouts
  - name: Audio
  - name: Look and check
  - name: Motion graphics
  - name: Live updates
  - name: Comments
  - name: Renders
  - name: Publishing
  - name: Status
paths:
  /posts:
    post:
      tags:
        - Publishing
      summary: Schedule a post
      description: >-
        Post a video or image to one or more connected accounts, now or at `at`.
        It is a finished render (`{job_id}`) or a stored file (`{hash}`).
        Answers 201 with the post; follow it with `GET /posts/{post_id}`. Send
        `idempotency_key` so a retry returns the same post. See
        [Publishing](https://docs.vidjutsu.ai/guides/publishing).
      operationId: schedule_post
      parameters:
        - name: VidJutsu-Version
          in: header
          required: false
          description: >-
            The API version you wrote your integration against, a date. Without
            it you get the latest version. The current version is `2026-11-03`.
            See https://docs.vidjutsu.ai/api-reference/introduction#versioning.
          schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
            example: '2026-11-03'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SchedulePost'
      responses:
        '201':
          description: The post
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostResult'
        '401':
          description: No API key or token, or it isn't valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: >-
            Publishing isn't in your plan (`upgrade_required`, `reason:
            "not_in_plan:<capability>"`, with `upgrade_url`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            This API key doesn't have the scope the call needs (`forbidden`,
            `reason: "missing_scope"`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SchedulePost:
      type: object
      additionalProperties: true
      properties:
        media:
          oneOf:
            - type: object
              additionalProperties: true
              properties:
                job_id:
                  type: string
                  description: A render job that has succeeded.
              required:
                - job_id
            - type: object
              additionalProperties: true
              properties:
                hash:
                  type: string
                  description: A video or image in your library.
                type:
                  type: string
                  enum:
                    - video
                    - image
              required:
                - hash
          description: >-
            What to post: a finished render (`{job_id}`) or a stored file
            (`{hash, type?}`).
        accounts:
          type: array
          minItems: 1
          items:
            oneOf:
              - type: string
                description: A social account id.
              - type: object
                additionalProperties: true
                properties:
                  id:
                    type: string
                    description: A social account id.
                  options:
                    $ref: '#/components/schemas/PostOptions'
                required:
                  - id
          description: >-
            The accounts to post to: ids from `GET /social-accounts`, or `{id,
            options}`. YouTube needs `options.title`.
        caption:
          type: string
          description: The caption (or description) posted with it.
        at:
          type: string
          format: date-time
          description: When to post, an ISO time with a zone. Leave it out to post now.
        idempotency_key:
          type: string
          description: 'Makes the call safe to retry: the same key returns the first post.'
      required:
        - media
        - accounts
    PostResult:
      type: object
      additionalProperties: true
      properties:
        post:
          $ref: '#/components/schemas/Post'
    Error:
      type: object
      description: >-
        Every error has a stable `code` and a `message`. Billing and limit
        errors add the fields that tell you how to fix them. See
        https://docs.vidjutsu.ai/errors.
      required:
        - code
        - message
        - request_id
      properties:
        code:
          type: string
          enum:
            - unauthenticated
            - forbidden
            - no_account
            - payment_required
            - upgrade_required
            - plan_limit
            - rate_limited
            - not_found
            - invalid_request
            - conflict
            - payload_too_large
            - upstream_error
            - service_unavailable
          description: Stable error code.
        message:
          type: string
          description: What went wrong, in plain words.
        reason:
          type: string
          description: >-
            Finer cause, for example `no_plan`, `insufficient_credits`,
            `payment_failed`, `spend_limit`, `stale_head`.
        checkout_url:
          type: string
          description: >-
            402 `no_plan`: a Stripe Checkout link to add a card and make your
            first payment.
        top_up_url:
          type: string
          description: >-
            402 `insufficient_credits` or `payment_failed`: a Stripe link to add
            credits to your wallet.
        upgrade_url:
          type: string
          description: >-
            402 `upgrade_required`: a link to move to a plan that has the
            feature.
        media_deletes_at:
          type: string
          format: date-time
          description: >-
            402 `payment_failed` (wallet below zero): when your stored media
            will be deleted unless you top up.
        contact_url:
          type: string
          description: '403 plan_limit: where to ask about Enterprise.'
        retry_after_seconds:
          type: integer
          description: '429: when to try again (also sent as a Retry-After header).'
        latest_version:
          type: string
          description: '400 unknown_version: the newest API version.'
        request_id:
          type: string
          description: >-
            Your Idempotency-Key, or a generated id. Quote it when you contact
            support.
    PostOptions:
      type: object
      additionalProperties: true
      properties:
        privacy_level:
          type: string
          description: 'TikTok: who can see the post.'
        allow_comment:
          type: boolean
          description: TikTok.
        allow_duet:
          type: boolean
          description: TikTok.
        allow_stitch:
          type: boolean
          description: TikTok.
        ai_generated:
          type: boolean
          description: 'TikTok and Instagram: label the post as made with AI.'
        commercial_content:
          type: string
          enum:
            - none
            - brand_organic
            - brand_content
          description: >-
            TikTok: whether the post promotes your own brand (`brand_organic`)
            or someone else's (`brand_content`).
        title:
          type: string
          maxLength: 100
          description: 'YouTube: the video title. Required for YouTube.'
        visibility:
          type: string
          enum:
            - public
            - unlisted
            - private
          description: YouTube.
        tags:
          type: array
          items:
            type: string
          description: YouTube.
      description: >-
        Platform options for one account, flat and snake_case. Each platform
        reads its own and ignores the rest.
    Post:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
          description: The post id.
        caption:
          type:
            - string
            - 'null'
        media:
          type: object
          additionalProperties: true
          properties:
            hash:
              type: string
              description: The media id.
            type:
              type: string
              enum:
                - video
                - image
            source:
              type: object
              additionalProperties: true
              description: >-
                `{type: "render", job_id}` for a render, `{type: "file"}` for a
                stored file.
        targets:
          type: array
          items:
            $ref: '#/components/schemas/PostTarget'
          description: Each account it goes to.
        scheduled_for:
          type:
            - integer
            - 'null'
          description: When it goes out, in milliseconds since 1970 (UTC); null for now.
        state:
          type: string
          enum:
            - pending_approval
            - scheduled
            - publishing
            - published
            - partial
            - failed
            - canceled
            - paused_unpaid
          description: >-
            `pending_approval` while an account with approval on waits for it;
            `scheduled` until its time; `publishing` while it is being sent;
            then `published`, `partial` (some accounts failed) or `failed`.
            `canceled` once canceled. `paused_unpaid` while a payment is
            overdue: it goes out once the payment is fixed.
        created_at:
          description: When it was made.
        published_at:
          description: When it went out.
      required:
        - id
        - media
        - targets
        - state
    PostTarget:
      type: object
      additionalProperties: true
      properties:
        social_account_id:
          type: string
          description: ''
        platform:
          type: string
          enum:
            - tiktok
            - instagram
            - youtube
        options:
          $ref: '#/components/schemas/PostOptions'
        state:
          type: string
          enum:
            - pending
            - publishing
            - published
            - failed
            - canceled
          description: How the post went on this account.
        url:
          type: string
          description: The live post on the platform, once published.
        error:
          description: Why it failed on this account, when it did.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        A VidJutsu API key (`vj_live_...`) from POST /auth/verify or POST /keys,
        or an OAuth access token (MCP clients).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.