# Folders API

## Deprecation notice ❗️

Below APIs are deprecated and new version of APIs are available at <https://dashboard.docupilot.app/api-docs/swagger-ui/>

{% hint style="info" %}
Reach out to <support@docupilot.app> for more help on the APIs
{% endhint %}

## Get list of Folders

<mark style="color:blue;">`GET`</mark> `https://api.docupilot.app/api/v1/folders`

This endpoint allows you to get list of folders.

#### Headers

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| apikey | string | API Key     |

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

```
{
  "status": "success",
  "data": [
    {
      "id": 26,
      "name": "Contracts"
    },
    {
      "id": 36,
      "name": "Client"
    },
    {
      "id": 38,
      "name": "testing"
    },
    {
      "id": 60,
      "name": "Excel"
    },
    {
      "id": 155,
      "name": "Deliveries"
    }
  ]
}
```

{% endtab %}
{% endtabs %}

## Create a new Folder

<mark style="color:green;">`POST`</mark> `https://api.docupilot.app/api/v1/folders`

This endpoint allows you to add a new folder

#### Headers

| Name         | Type   | Description      |
| ------------ | ------ | ---------------- |
| apikey       | string | API key          |
| Content-Type | string | application/json |

#### Request Body

| Name | Type   | Description |
| ---- | ------ | ----------- |
| name | string | Folder Name |

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

```
{
    "status": "success",
    "data": {
        "id": 423,
        "name": "Folder Name"
    }
}
```

{% endtab %}
{% endtabs %}
