# Direct Uploads

> Video API reference, generated from the OpenAPI spec.

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

## Retrieve a single direct upload's info

`GET https://api.mux.com/video/v1/uploads/{UPLOAD_ID}`

Fetches information about a single direct upload in the current environment.

Operation ID: `get-direct-upload`. HTML version: https://www.mux.com/docs/api-reference/video/direct-uploads/get-direct-upload

### Path parameters

- `UPLOAD_ID` (string, required): ID of the Upload

```sh
curl https://api.mux.com/video/v1/uploads/${UPLOAD_ID} \
  -X GET \
  -H "Content-Type: application/json" \
  -u ${MUX_TOKEN_ID}:${MUX_TOKEN_SECRET}
```

### Response `200`

OK

- `data` (object, required)
  - `id` (string, required): Unique identifier for the Direct Upload.
  - `timeout` (integer, required, format: int32, default: 3600, minimum: 60, maximum: 604800): Max time in seconds for the signed upload URL to be valid. If a successful upload has not occurred before the timeout limit, the direct upload is marked `timed_out`
  - `status` (string, required) Possible values: `"waiting"`, `"asset_created"`, `"errored"`, `"cancelled"`, `"timed_out"`.
  - `new_asset_settings` (object): The settings to be used when creating a new asset. You can use any of the usual settings when creating an asset normally, with the exception to not include file url for creating the asset in input. You could optionally add overlay_setting and input urls to add Subtitles / Captions.
  - `asset_id` (string): Only set once the upload is in the `asset_created` state.
  - `error` (object): Only set if an error occurred during asset creation.
    - `type` (string): Label for the specific error
    - `message` (string): Human readable error message
  - `cors_origin` (string, required): If the upload URL will be used in a browser, you must specify the origin in order for the signed URL to have the correct CORS headers.
  - `url` (string): The URL to upload the associated source media to.
  - `test` (boolean, format: boolean): Indicates if this is a test Direct Upload, in which case the Asset that gets created will be a `test` Asset.
