# Get list of uploaded ScaleChem model files

## Get list of packages in a private channel

<mark style="color:blue;">`GET`</mark> `https://api.olisystems.com/channel/scalechem`

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Authorization | String | Bearer {access\_tokentabl |

#### Parameters

<table><thead><tr><th width="173">Name</th><th>Type</th><th width="170">Description</th><th>Default Value</th><th>Max Value</th></tr></thead><tbody><tr><td>page (optional)</td><td>Integer</td><td>Start page</td><td>0</td><td>100000</td></tr><tr><td>count (optional)</td><td>Integer</td><td>Results per page</td><td>20</td><td>100</td></tr></tbody></table>

{% tabs %}
{% tab title="200: OK " %}

```json
{
  "data": {
    "files": [
      {
        "createdAt": "Tue, 15 Mar 2022 17:28:01 GMT",
        "createdBy": "bbb27a13-bf4b-45c3-af76-a8a4ea8fd27d",
        "creatorName": "creater name",
        "fileId": "6d73c011-8eaf-4a1c-9ced-27aa1e27e614",
        "name": "mixerAll.zip",
        "path": "OLI_APP_FILES/00130000000JsxhAAC/scalechem/bbb27a13-bf4b-45c3-af76-a8a4ea8fd27d/6d73c011-8eaf-4a1c-9ced-27aa1e27e614/mixerAll.zip",
        "status": "ACTIVE",
        "updatedAt": "Tue, 15 Mar 2022 17:28:01 GMT",
        "updatedBy": "bbb27a13-bf4b-45c3-af76-a8a4ea8fd27d",
        "updatorName": "update name"
      },
      {
        "createdAt": "Tue, 15 Mar 2022 17:30:10 GMT",
        "createdBy": "bbb27a13-bf4b-45c3-af76-a8a4ea8fd27d",
        "creatorName": "creater name",
        "fileId": "3a078037-2bd8-4e75-91d0-c10ba322d3b0",
        "name": "mixerAll2.zip",
        "path": "OLI_APP_FILES/00130000000JsxhAAC/scalechem/bbb27a13-bf4b-45c3-af76-a8a4ea8fd27d/3a078037-2bd8-4e75-91d0-c10ba322d3b0/mixerAll.zip",
        "status": "ACTIVE",
        "updatedAt": "Tue, 15 Mar 2022 17:30:10 GMT",
        "updatedBy": "bbb27a13-bf4b-45c3-af76-a8a4ea8fd27d",
        "updatorName": "update name"
      }]
    },
  "message": "Channel file and package list returned successfully",
  "status": "SUCCESS"
  }
}
```

{% endtab %}
{% endtabs %}

## Download package by file id

<mark style="color:blue;">`GET`</mark> `https://api.olisystems.com/channel/download/file/{fileId}`

#### Headers

| Name          | Type   | Description            |
| ------------- | ------ | ---------------------- |
| Authorization | String | Bearer {access\_token} |

## Delete uploaded package by file id

<mark style="color:red;">`DELETE`</mark> `https://api.olisystems.com/channel/file/{fileId}`

#### Headers

| Name          | Type   | Description            |
| ------------- | ------ | ---------------------- |
| Authorization | String | Bearer {access\_token} |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "message": "File deleted successfully",
  "status": "SUCCESS"
}
```

{% endtab %}
{% endtabs %}
