# Folder List

### <mark style="background-color:yellow;">**Get User's Profile List**</mark>

```
GET http://127.0.0.1:2268/folders
```

### Example

* Curl example

```
curl GET localhost:2268/folders
```

* Javascript example

```
const hidemyacc = new Hidemyacc();
const response = await hidemyacc.folders();
```

### <mark style="background-color:yellow;">Success response</mark>

**Success response - `Success 200`**

| Name | Type       | Description          |
| ---- | ---------- | -------------------- |
| data | `Object[]` | folders List of user |

### <mark style="background-color:yellow;">Success response example</mark>

**Success response example - `Success-Example`**

```
Status code: 200 OK
{
    "code": 1,
    "data": [
        {
            "id": "63bfd88852d4f7546b26d7ae",
            "name": "Test 1"
        },
        {
            "id": "63d5656b52d4f7546b5d5037",
            "name": "Test 2"
        }
    ]
}

```

### <mark style="background-color:yellow;">Error response</mark>

**Error response - `Error 4xx`**

<table><thead><tr><th width="204.33333333333331">Name</th><th width="196">Type</th><th>Description</th></tr></thead><tbody><tr><td>402</td><td></td><td>API supported from Team plan</td></tr></tbody></table>

### <mark style="background-color:yellow;">Error response example</mark>

**Error response example - `Response (example):`**

```
Status code 402: Payment required
{
    "code": 0
}
```
