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

# Run a video helper function

> Run an exposed helper function for a video generator, such as listing available voices.



## OpenAPI

````yaml /api-reference/openapi.json post /public/v1/video/function
openapi: 3.0.0
info:
  title: PostlyBee Public API
  description: >-
    Create and manage social posts, upload media, and discover connected
    accounts with the PostlyBee Public API.
  version: 1.0.0
  contact:
    name: PostlyBee Support
    url: https://postlybee.com
    email: support@postlybee.com
  license:
    name: Proprietary
    url: https://postlybee.com/terms
servers:
  - url: https://api.postlybee.com
    description: Production
security: []
tags:
  - name: Posts
    description: Create, list, update, and delete social posts.
  - name: Media
    description: Upload media and use enabled video generators.
  - name: Accounts
    description: Discover connected social accounts.
  - name: Utilities
    description: Verify access and find posting slots.
paths:
  /public/v1/video/function:
    post:
      tags:
        - Media
      summary: Run a video helper function
      description: >-
        Run an exposed helper function for a video generator, such as listing
        available voices.
      operationId: runVideoFunction
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicApiVideoFunctionRequestDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiValidationErrorDto'
        '401':
          description: The bearer token is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorDto'
      security:
        - public-api: []
components:
  schemas:
    PublicApiVideoFunctionRequestDto:
      type: object
      properties:
        identifier:
          type: string
          example: image-text-slides
        functionName:
          type: string
          example: voices
        params:
          type: object
          additionalProperties: true
          description: Function-specific parameters.
          example: {}
      required:
        - identifier
        - functionName
        - params
    PublicApiValidationErrorDto:
      type: object
      properties:
        message:
          oneOf:
            - type: string
              example: At least one post is required
            - type: array
              items:
                type: string
              example:
                - date must be a valid ISO 8601 date string
        error:
          type: string
          example: Bad Request
        statusCode:
          type: number
          example: 400
      required:
        - message
    PublicApiErrorDto:
      type: object
      properties:
        msg:
          type: string
          example: Invalid API key
      required:
        - msg
  securitySchemes:
    public-api:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Workspace API key from Settings → Public API.

````