# Stream videos in five minutes

Upload a video file to Mux and play it in your application in five minutes or less. Start here when you add video on demand, for example a course platform or user uploads.

### In this guide:

1. [Get an API Access Token](/content/docs/core/stream-video-files#1-get-an-api-access-token/index.html)
2. [POST a video](/content/docs/core/stream-video-files#2-post-a-video/index.html)
3. [Wait for `ready`](/content/docs/core/stream-video-files#3-wait-for-ready/index.html)
4. [Watch your Video](/content/docs/core/stream-video-files#4-watch-your-video/index.html)
5. [Manage your Mux assets](/content/docs/core/stream-video-files#5-manage-your-mux-assets/index.html)

This quickstart shows the fastest path from a video file to playback with Mux. You create an access token, upload a video, and play it with a playback URL. Use this guide when you add video on demand to your application, for example a course platform or a UGC product.

## 1. Get an API Access Token

The Mux Video API uses a token key pair that consists of a **Token ID** and **Token Secret** for authentication. If you haven't already, generate a new Access Token in the [Access Token settings](https://dashboard.mux.com/settings/access-tokens) of your Mux account dashboard.

You'll be presented with a form to create your new Access Token.

- **Access Tokens** belong to an **Environment** — a container for the various Access Tokens, Signing Keys, and assets that you'll come to add to Mux. For this guide, you can keep the **Production** environment selected.
- **Access Tokens** can have varying permissions to control what kinds of changes they have the ability to make. For this guide, your **Access Token** should have Mux Video **Read** and **Write** permissions.
- You can give your **Access Token** an internal-only name like "Onboarding" so you know where you've used it within your application.

Now, click the **Generate token** button.

You'll be presented with your new **Access Token ID** and **Secret Key**.

Once you have your new **Access Token ID** and **Secret Key**, you're ready to upload your first video.

## 2. POST a video  
Videos stored in Mux are called [assets](/content/docs/api-reference/video/assets/index.html). To create your first video asset, you need to send a [POST request to the /assets endpoint](/content/docs/api-reference/video/assets/create-asset/index.html) and set the `input` value to the URL of a video file that's accessible online.

Here are a few demo videos you can use that are stored on common cloud storage services:

- Amazon S3: [https://muxed.s3.amazonaws.com/leds.mp4](https://muxed.s3.amazonaws.com/leds.mp4)
- Google Drive: [https://drive.google.com/uc?id=13ODlJ-Dxrd7aJ7jy6lsz3bwyVW-ncb3v](https://drive.google.com/uc?id=13ODlJ-Dxrd7aJ7jy6lsz3bwyVW-ncb3v)
- Dropbox: [https://www.dropbox.com/scl/fi/l2sm1zyk6pydtosk3ovwo/get-started.mp4?rlkey=qjb34b0b7wgjbs5xj9vn4yevt&dl=0](https://www.dropbox.com/scl/fi/l2sm1zyk6pydtosk3ovwo/get-started.mp4?rlkey=qjb34b0b7wgjbs5xj9vn4yevt&dl=0)

To start making API requests to Mux, you might want to install one of our officially supported API SDKs. These are lightweight wrapper libraries that use your API credentials to make authenticated HTTP requests to the Mux API.

For an example of how to make API Requests from your local environment, see the [Make API Requests](/content/docs/core/make-api-requests/index.html) guide.

The response will include an **Asset ID** and a **Playback ID**.

- Asset IDs are used to manage assets using `api.mux.com` (e.g. to read or delete an asset).
- [Playback IDs](/content/docs/api-reference/video/playback-id/index.html) are used to stream an asset to a video player through `stream.mux.com`. You can add multiple playback IDs to an asset to create playback URLs with different viewing permissions.

Mux does not store the original file in its exact form, so if your original quality files are important to you, don't delete them after submitting them to Mux.

## 3. Wait for `ready`  
As soon as you make the `POST` request, Mux begins downloading and processing the video. For shorter files, this often takes just a few seconds. Very large files over poor connections may take a few minutes (or longer).

When the video is ready for playback, the asset `status` changes to `ready`. You should wait until the asset status is `ready` before you attempt to play the video.

The best way to be notified of asset status updates is via **webhooks**. Mux can send a webhook notification as soon as the asset is ready.

If you can't use webhooks for some reason, you can manually **poll** the [asset API](/content/docs/api-reference/video/assets/get-asset/index.html) to see asset status. Note that this only works at low volume.

### Try an example request

Enter the Asset ID from the API response:

Please don't poll this API more than once per second.

## 4. Watch your Video

To play back an asset, create a playback URL using the `PLAYBACK_ID` you received when you created the asset.

### Preview in a player

See the [playback guide](/content/docs/guides/play-your-videos/index.html) for more information about how to integrate with a video player.

### Preview with `stream.new`

[Stream.new](https://stream.new/) is an open source project by Mux that allows you to add a video and get a shareable link to stream it. Go to `stream.new/v/{PLAYBACK_ID}` to preview your video streaming.

After you have everything working, [integrate Mux Data](/content/docs/guides/track-your-video-performance/index.html) with your player for monitoring playback performance.

## 5. Manage your Mux assets

After you have assets created in your Mux environment, you may find some of these other endpoints handy:

- [Create an asset](/content/docs/api-reference/video/assets/create-asset/index.html)
- [List assets](/content/docs/api-reference/video/assets/list-assets/index.html)
- [Retrieve an asset](/content/docs/api-reference/video/assets/get-asset/index.html)
- [Delete an asset](/content/docs/api-reference/video/assets/delete-asset/index.html)
- [Retrieve asset input info](/content/docs/api-reference/video/assets/get-asset-input-info/index.html)
- [Create asset playback ID](/content/docs/api-reference/video/assets/create-asset-playback-id/index.html)
- [Retrieve asset playback ID](/content/docs/api-reference/video/assets/get-asset-playback-id/index.html)
- [Delete asset playback ID](/content/docs/api-reference/video/assets/delete-asset-playback-id/index.html)
- [Update MP4 support on asset](/content/docs/api-reference/video/assets/update-asset-mp4-support/index.html)
- [Update master access on asset](/content/docs/api-reference/video/assets/update-asset-master-access/index.html)
- [Update asset track](/content/docs/api-reference/video/assets/create-asset-track/index.html)
- [Delete an asset track](/content/docs/api-reference/video/assets/delete-asset-track/index.html)

More Video methods and descriptions are available at the [API Docs](/content/docs/api-reference/video/index.html).

## Next Steps

#### Play your videos
Set up your iOS application, Android application or web application to start playing your Mux assets

#### Preview your video
Now that you have Mux assets, build rich experiences into your application by previewing your videos with Thumbnails and Storyboards

#### Integrate Mux Data
Add the Mux Data SDK to your player and start collecting playback performance metrics.
