---
title: "Create clip"
method: POST
path: "/v1/clips/create"
tags: ["clips"]
---

# Create clip

`POST /v1/clips/create`

## Request

- Base URL: `https://api.comma.ai`
- URL: `https://api.comma.ai/v1/clips/create`
- Auth: HTTP bearer

Create a clip from a route.

## Request body

- ClipProperties
  - `id` integer, required: Unique identifier for a clip
  - `create_time` integer, required: Unix timestamp when clip was created, in milliseconds
  - `dongle_id` string, required: A unique 16-character hexadecimal string. Can represent a device or a user.
  - `route_name` string, required: Contains a dongle ID and timestamp of the beginning of the route
  - `start_time` integer, required: Unix timestamp when clip starts, in milliseconds
  - `end_time` integer, required: Unix timestamp when clip ends, in milliseconds
  - `title` string, nullable: Optional title for clip
  - `video_type` 'q' | 'f' | 'e' | 'd' | '360', required: - `q` = QCamera - `f` = Road camera - `e` = Wide road camera - `d` = Driver camera - `360` = 360 video
  - `is_public` boolean: Clip is publicly accessible

## Response `200`

JSON object containing clip ID, or an error message

- union
  - object
    - `success` true, required
    - `clip_id` integer, required: Unique identifier for a clip
  - object
    - `error` 'too_many_pending', required: Error code

## Changes

- **2022-12-04** `7d0e2f46b81a`: 1 info
  - the request property `is_public` became optional
- **2022-12-03** `d13c9189b880`: 4 breaking, 1 warning, 9 info
  - request property `status` was restricted to a list of enum values
  - request property `video_type` was restricted to a list of enum values
  - removed `subschema #1: Pending, subschema #2: Done, subschema #3: Failed` from the `status` request property `oneOf` list
  - removed `subschema #1: QCamera, subschema #2: Road camera, subschema #3: Wide road camera, subschema #4: Driver camera, subschema #5: 360` from the `video_type` request property `oneOf` list
  - …10 more
- **2022-11-27** `c955909ce683`: 1 breaking, 1 info
  - added `subschema #1, subschema #2` to the response body `oneOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the response body `oneOf` list for the response status `200`
- **2022-11-27** `5b1478ce801f`: 1 info
  - api tag `clips` added
- **2022-11-27** `04af598547de`: 1 info
  - the endpoint scheme security `AuthUser` was added to the API

[Operation history](https://skmtc.dev/comma/apis/comma-api/changes/v1/clips/create/post.md)

---

[API](https://skmtc.dev/comma/apis/comma-api.md) - [All operations](https://skmtc.dev/comma/apis/comma-api/llms.txt) - [OpenAPI document](https://skmtc.dev/comma/apis/comma-api/revisions/24f7dbc922ad?raw)
