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

# Publish or schedule a post

> Posts to live external platforms and is NOT retried server-side. Timing: now (omit both) / scheduledAt (ISO-8601) / addToQueue. TikTok drafts: platformOverrides.post_mode = "MEDIA_UPLOAD" sends the TikTok post to the creator's drafts instead of publishing it (video drafts drop the caption).



## OpenAPI

````yaml /openapi.json post /api/social/posts
openapi: 3.1.0
info:
  title: VidGuy API
  version: 1.0.0
  description: >-
    Make videos, snacks, carousels, images and audio with VidGuy, and post them
    to your connected accounts. Authenticate with a `vf_live_` key as a Bearer
    token.
servers:
  - url: https://www.vidguy.ai
security:
  - ApiKeyAuth: []
tags:
  - name: Jobs
  - name: Credits
  - name: Brands
  - name: Snacks and memes
  - name: Videos
  - name: Carousels and slides
  - name: Images and video models
  - name: Characters
  - name: Editing
  - name: Assets
  - name: Audio
  - name: Social posting
paths:
  /api/social/posts:
    post:
      tags:
        - Social posting
      summary: Publish or schedule a post
      description: >-
        Posts to live external platforms and is NOT retried server-side. Timing:
        now (omit both) / scheduledAt (ISO-8601) / addToQueue. TikTok drafts:
        platformOverrides.post_mode = "MEDIA_UPLOAD" sends the TikTok post to
        the creator's drafts instead of publishing it (video drafts drop the
        caption).
      operationId: createSocialPost
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSocialPostRequest'
      responses:
        '201':
          description: Post(s) created.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Upgrade required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Provider error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreateSocialPostRequest:
      type: object
      properties:
        brandId:
          type: string
          format: uuid
        accountIds:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
          maxItems: 11
        assetKind:
          type: string
          enum:
            - video
            - photo
            - carousel
        videoUrl:
          type: string
          format: uri
        photoUrls:
          type: array
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 20
        caption:
          type: string
          maxLength: 5000
        title:
          type: string
          maxLength: 200
        thumbnailUrl:
          type: string
          format: uri
        tags:
          type: array
          items:
            type: string
            maxLength: 60
          maxItems: 30
        visibility:
          type: string
          enum:
            - public
            - unlisted
            - private
        platformOverrides:
          type: object
          additionalProperties: {}
        scheduledAt:
          type: string
          format: date-time
        addToQueue:
          type: boolean
      required:
        - brandId
        - accountIds
        - assetKind
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Invalid request
        message:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Send your API key in the Authorization header: `Bearer vf_live_...`'

````

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