---
title: "Create new task for video transcoding."
method: POST
path: "/tasks/create"
tags: ["tasks"]
---

# Create new task for video transcoding.

`POST /tasks/create`

Create new task for video transcoding.

## Request body

- OpenseawaveComRasboraInternalDataTask
  - `callback` object — Callback struct holds details for a callback associated with the task.
    - `callback_data` unknown, required
    - `callback_url` string, required — URL to send callback.
  - `created_at` integer — Timestamp indicating when the task was created.
  - `failed_at` integer — Timestamp indicating when the task failed.
  - `finished_at` integer — Timestamp indicating when the task finished.
  - `started_at` integer — Timestamp indicating when the task started.
  - `task_id` string — Unique identifier for the task.
  - `task_label` string, required — Label for task.
  - `task_priority` number, required — Priority level assigned to the task.
  - `video_transcoder` object — VideoTranscoder contains details about video transcoding for the task.
    - `input` object
      - `input_file_name` string, required — Name of the input video file.
      - `input_file_path` string, required — Path to the input video file.
      - `input_file_system` 'LocalStorage' | 'ObjectStorage', required
    - `output` object — holds information how should be the video output.
      - `args` object[], required
      - `container` string, required
      - `handler` string, required

## Response `200`

OK

- OpenseawaveComRasboraInternalDataResponse
  - `error` boolean
  - `message` string
  - `payload` unknown

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/openseawave/apis/rasbora-task-manager-api.md) · [All operations](https://skmtc.dev/openseawave/apis/rasbora-task-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openseawave/rasbora-task-manager-api/revisions/a3877faab71a/schema)
