---
# System prepended metadata

title: Untitled

---

## **Title**

GENERATE ADAPTIVE RESOLUTIONS. By passing a video file to this route, we can generate adaptive resolutions which could be used with any HLS video Library to watch our video according to user Network Bandwidth.

- **URL**

  `/transcode`

- **Method:**

  `POST`

- **Data Params**

  request body must contain socketId as `randomId` and a video file as `file`

  **Required:**

  `randomId=[alphanumeric]`
  `file=[file]`

- **Success Response:**

  - **Code:** 200 <br />
    **Content:** `{ videoId : 9916d3ed-4f68-488a-a633-4877d5414f30 }`

- **Error Response:**

  - **Code:** 401 UNAUTHORIZED <br />
    **Content:** `{ error : "No authorization token was found" }`

- **Sample Call:**

  ```
  axios.post('/transcode', {
    body: {
      randomId: aj7abst1,
      file: <video_filePath>
    }
  })
  .then(function (response) {
    console.log(response);
  })
  ```
