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

# Publish now to one or more connected platforms



## OpenAPI

````yaml /api-reference/openapi.yaml post /v1/posts
openapi: 3.1.0
info:
  title: Sydium Public API
  version: 1.0.0
servers:
  - url: https://api.sydium.com
security:
  - ApiKey: []
paths:
  /v1/posts:
    post:
      summary: Publish now to one or more connected platforms
      operationId: createPost
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePostRequest'
      responses:
        '201':
          description: Operation created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden (scope/permission)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited / insufficient tokens
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CreatePostRequest:
      type: object
      required:
        - targets
      properties:
        caption:
          type: string
        media:
          type: array
          items:
            type: string
        scheduleAt:
          type: string
          format: date-time
        targets:
          type: array
          items:
            type: object
            required:
              - platform
            properties:
              platform:
                type: string
              postType:
                type: string
              options:
                type: object
    OperationResponse:
      type: object
      required:
        - success
        - data
        - meta
      properties:
        success:
          const: true
        data:
          $ref: '#/components/schemas/Operation'
        meta:
          type: object
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          const: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - unauthorized
                - forbidden
                - insufficient_permissions
                - not_found
                - unprocessable
                - rate_limited
                - invalid_state
                - external_service_error
                - internal_error
            message:
              type: string
        meta:
          type: object
    Operation:
      type: object
      required:
        - id
        - status
        - targets
      properties:
        id:
          type: string
        status:
          type: string
          enum:
            - scheduled
            - processing
            - completed
            - partially_failed
            - partially_cancelled
            - failed
            - cancelled
        targets:
          type: array
          items:
            $ref: '#/components/schemas/OperationTarget'
    OperationTarget:
      type: object
      required:
        - platform
        - status
      properties:
        platform:
          type: string
        status:
          type: string
          enum:
            - scheduled
            - processing
            - published
            - failed
            - cancelled
        postId:
          type:
            - string
            - 'null'
        url:
          type:
            - string
            - 'null'
        error:
          type:
            - object
            - 'null'
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: Opaque API key (sk_live_... / sk_test_...)

````