# Assets

> Video API reference, generated from the OpenAPI spec.

HTML version: https://www.mux.com/docs/api-reference/video/assets. Full OpenAPI spec: https://www.mux.com/api-spec.json

## Generate shots

`POST https://api.mux.com/video/v1/assets/{ASSET_ID}/shots`

Generate shot boundaries and shot preview images.

Operation ID: `generate-asset-shots`. HTML version: https://www.mux.com/docs/api-reference/video/assets/generate-asset-shots

### Path parameters

- `ASSET_ID` (string, required): The asset ID.

### Request body


Example request body:

```json
{}
```

### Response `201`

Created

- `data` (object, required): The results of generating shots on the video
  - `status` (string, required): The status of the shot detection process Possible values: `"pending"`, `"completed"`, `"errored"`, `"skipped"`, `"deleted"`.
  - `created_at` (string, required, format: int64): Time the shot detection process was created, defined as a Unix timestamp (seconds since epoch).
  - `shots_manifest_url` (string): A URL to a JSON manifest describing the shot changes detected in the video along with shot preview images for each shot. This field is only present when `status` is `completed`.
  - `errors` (object): An object describing any errors encountered during the shot detection process. This field is only present when `status` is `errored`.
    - `type` (string): The type of error that occurred
    - `messages` (array of string): A list of error messages describing the errors that occurred in more detail
