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

# Schedule a social post

> Schedule text or media to a connected social account.



## OpenAPI

````yaml /openapi.json post /scheduled-posts
openapi: 3.1.0
info:
  title: Pekto Developer API
  version: 1.0.0
  description: >-
    Generate editable presentations and LinkedIn/Instagram carousels, read and
    edit projects, browse templates and brand kits, and schedule social posts.
servers:
  - url: https://fwpvfpysaskvlxgwcaxk.supabase.co/functions/v1/api-v1
    description: Production Pekto Developer API
security:
  - bearerAuth: []
paths:
  /scheduled-posts:
    post:
      summary: Schedule a social post
      description: Schedule text or media to a connected social account.
      operationId: scheduleSocialPost
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SchedulePostInput'
      responses:
        '201':
          description: Created scheduled post
components:
  schemas:
    SchedulePostInput:
      type: object
      required:
        - social_account_id
        - post_type
        - caption
        - scheduled_for
      properties:
        social_account_id:
          type: string
          format: uuid
          description: ID of connected social account
        post_type:
          type: string
          enum:
            - text
            - image
            - document
          default: text
        caption:
          type: string
          description: Post commentary text
        scheduled_for:
          type: string
          format: date-time
          description: ISO 8601 schedule date/time
        media_urls:
          type: array
          maxItems: 20
          items:
            type: string
          description: >-
            Files you uploaded to Pekto: scheduled-media paths
            (<user_id>/file.pdf) or their public URLs. Required for image and
            document posts.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pekto API key (pekto_live_...), an OAuth 2.1 access token from Pekto
        sign-in (used by MCP clients), or a Pekto user session token.

````

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