---
title: "Create a video object"
method: POST
path: "/videos"
tags: ["Videos"]
---

# Create a video object

`POST /videos`

Creates a video object. More information on video objects can be found [here](https://docs.api.video/reference/api/Videos).

## Request body

- VideoCreationPayload
  - `title` string, required — The title of your new video.
  - `description` string — A brief description of your video.
  - `source` string — You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create.
  - `public` boolean — Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/delivery/video-privacy-access-management)
  - `panoramic` boolean — Indicates if your video is a 360/immersive video.
  - `mp4Support` boolean — Enables mp4 version in addition to streamed version.
  - `playerId` string — The unique identification number for your video player.
  - `tags` string[] — A list of tags you want to use to describe your video.
  - `metadata` Metadata[] — A list of key value pairs that you use to provide metadata for your video.
    - `key` string — The constant that defines the data set.
    - `value` string — A variable which belongs to the data set.
  - `clip` VideoClip — Use this object to create a smaller clip from a video you upload. - You can only create video clips in the same request where you create the video container. - You cannot update the starting or ending timestamps of a video clip after you created the video container. - When you upload a video file into a container where you defined a starting and ending timestamp, the API trims the video according to those timestamps to create a clip.
    - `startTimecode` string — The timestamp that defines the beginning of the video clip you want to create. The value must follow the `HH:MM:SS` format.
    - `endTimecode` string — The timestamp that defines the end of the video clip you want to create. The value must follow the `HH:MM:SS` format.
  - `watermark` VideoWatermark
    - `id` string — id of the watermark
    - `top` string — Distance expressed in px or % between the top-border of the video and the watermark-image.
    - `left` string — Distance expressed in px or % between the left-border of the video and the watermark-image.
    - `bottom` string — Distance expressed in px or % between the bottom-border of the video and the watermark-image.
    - `right` string — Distance expressed in px or % between the right-border of the video and the watermark-image.
    - `width` string — Width of the watermark-image relative to the video if expressed in %. Otherwise a fixed width. NOTE: To keep intrinsic watermark-image width use `initial`.
    - `height` string — Height of the watermark-image relative to the video if expressed in %. Otherwise a fixed height. NOTE: To keep intrinsic watermark-image height use `initial`.
    - `opacity` string — Opacity expressed in % only to specify the degree of the watermark-image transparency with the video.
  - `language` 'ar' | 'ca' | 'cs' | 'da' | 'de' | 'el' | 'en' | 'es' | 'fa' | 'fi' | 'fr' | 'he' | 'hi' | 'hr' | 'hu' | 'it' | 'ja' | 'ko' | 'ml' | 'nl' | 'nn' | 'false' | 'pl' | 'pt' | 'ru' | 'sk' | 'sl' | 'te' | 'tr' | 'uk' | 'ur' | 'vi' | 'zh', nullable — Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language.
  - `transcript` boolean — Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video.
  - `transcriptSummary` boolean — Use this parameter to enable summarization. We recommend using this parameter together with `transcript: true`. - When `true`, the API generates a summary for the video, based on the transcription. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to summarize the video. If you do not define a language, the API detects it based on the video.
  - `transcriptSummaryAttributes` string[] — Use this parameter to define the elements of a summary that you want to generate. If you do not define this parameter, the API generates a full summary with all attributes. The possible values are `abstract` and `takeaways`.

## Response `201`

Created

- Video
  - `videoId` string, required — The unique identifier of the video object.
  - `createdAt` string, date-time — When a video was created, presented in ATOM UTC format.
  - `title` string — The title of the video content.
  - `description` string — A description for the video content.
  - `publishedAt` string, date-time — The date and time the API created the video. Date and time are provided using ATOM UTC format.
  - `updatedAt` string, date-time — The date and time the video was updated. Date and time are provided using ATOM UTC format.
  - `discardedAt` string, date-time, nullable — The date and time the video was discarded. The API populates this field only if you have the Video Restore feature enabled and discard a video. Date and time are provided using ATOM UTC format.
  - `deletesAt` string, date-time, nullable — The date and time the video will be permanently deleted. The API populates this field only if you have the Video Restore feature enabled and discard a video. Discarded videos are pemanently deleted after 90 days. Date and time are provided using ATOM UTC format.
  - `discarded` boolean — Returns `true` for videos you discarded when you have the Video Restore feature enabled. Returns `false` for every other video.
  - `language` string — Returns the language of a video in [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. You can set the language during video creation via the API, otherwise it is detected automatically.
  - `languageOrigin` 'api' | 'auto', nullable — Returns the origin of the last update on the video's `language` attribute. - `api` means that the last update was requested from the API. - `auto` means that the last update was done automatically by the API.
  - `tags` string[] — One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.
  - `metadata` Metadata[] — Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video.
    - `key` string — The constant that defines the data set.
    - `value` string — A variable which belongs to the data set.
  - `source` VideoSource — Source information about the video.
    - `uri` string — The URL where the video is stored.
    - `type` string
    - `liveStream` VideoSourceLiveStream — This appears if the video is from a Live Record.
      - `liveStreamId` string — The unique identifier for the live stream.
      - `links` VideoSourceLiveStreamLink[]
        - `rel` string
        - `uri` string
  - `assets` VideoAssets — Collection of details about the video object that you can use to work with the video object.
    - `hls` string, uri — This is the manifest URL. For HTTP Live Streaming (HLS), when a HLS video stream is initiated, the first file to download is the manifest. This file has the extension M3U8, and provides the video player with information about the various bitrates available for streaming.
    - `iframe` string — Code to use video from a third party website
    - `player` string, uri — Raw url of the player.
    - `thumbnail` string, uri — Poster of the video.
    - `mp4` string, uri — Available only if mp4Support is enabled. Raw mp4 url.
  - `playerId` string — The id of the player that will be applied on the video.
  - `public` boolean — Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos/).
  - `panoramic` boolean — Defines if video is panoramic.
  - `mp4Support` boolean — This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.

## Other responses

- `202` — Accepted
- `400` — Bad Request
- `429` — Too Many Requests

---

[API](https://skmtc.net/apivideo/apis/api-video.md) · [All operations](https://skmtc.net/apivideo/apis/api-video/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apivideo/api-video/revisions/45ec26f342b6/schema)
