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

# Create Task

> Creates a new image processing task with specified parameters



## OpenAPI

````yaml POST /media/task/create
openapi: 3.0.1
info:
  title: Charp.ai API
  description: >-
    API ecosystem for vendor management, authentication, campaign management,
    and tools for enhancing campaign execution including realtime media
    generation
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://whilter-api-host
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Operations related to API authentication
  - name: Realtime Media
    description: Operations for generating personalized videos in real-time
  - name: Webhooks
    description: Webhook endpoints for receiving notifications
  - name: Virtual Try-On
    description: Operations related to virtual try-on functionality
  - name: Tasks
    description: Operations related to task management
paths:
  /media/task/create:
    post:
      tags:
        - Tasks
      summary: Create a new task
      description: Creates a new image processing task with specified parameters
      operationId: createTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTaskRequest'
      responses:
        '200':
          description: Task created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTaskResponse'
components:
  schemas:
    CreateTaskRequest:
      type: object
      required:
        - client-id
        - campaign-id
        - template-id
        - file-name
        - file-path
        - priority
      properties:
        client-id:
          type: string
          format: uuid
          description: Unique identifier for the client
        campaign-id:
          type: string
          description: Identifier for the campaign
        template-id:
          type: string
          format: uuid
          description: Unique identifier for the template to use
        file-name:
          type: string
          description: Name of the file to process
        file-path:
          type: string
          description: S3 path to the input file
        row-count:
          type: integer
          minimum: 1
          description: Number of rows to process
        expected-output-duration:
          type: integer
          minimum: 1
          description: Expected duration for output generation (in minutes)
        priority:
          type: integer
          description: Task priority level
    CreateTaskResponse:
      type: object
      properties:
        client-id:
          type: string
          format: uuid
          description: Unique identifier for the client
        campaign-id:
          type: string
          description: Identifier for the campaign
        template-id:
          type: string
          format: uuid
          description: Unique identifier for the template to use
        task-id:
          type: string
          format: uuid
          description: Unique identifier for the created task
        message:
          type: string
          description: Task created successfully
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````