# List the folders made in the portal

> Page: https://docs.plotwork.dev/api/get-orgs-org-folders. Index of every page: https://docs.plotwork.dev/llms.txt

Folders members made in the portal, so an empty folder still shows.

`GET /orgs/{org}/folders`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | List the folders made in the portal. |
| What does it take? | `org` in the path. |
| What does it return? | Status 200 with a body of type [`FolderRecordList`](https://docs.plotwork.dev/api/schemas.md#folderrecordlist). |
| What can go wrong? | `401` not signed in; `404` no such organisation, or the caller is not a member of it; `429` too many requests; `503` organisations are not set up on this server. Every failure uses the one error envelope. |

## What it does

Folders members made in the portal, so an empty folder still shows. Folders diagrams are filed in are read from the diagrams. A folder a rule keeps from the caller is left out.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `org` | `string` | yes | The organisation's id or its slug. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | The folders. | [`FolderRecordList`](https://docs.plotwork.dev/api/schemas.md#folderrecordlist) |
| 401 | Not signed in. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 404 | No such organisation, or the caller is not a member of it. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 429 | Too many requests. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |
| 503 | Organisations are not set up on this server. | [`ErrorResponse`](https://docs.plotwork.dev/api/schemas.md#errorresponse) |

## Response body

A 200 answer has the type [`FolderRecordList`](https://docs.plotwork.dev/api/schemas.md#folderrecordlist).

| Field | Type | Required | Description |
|---|---|---|---|
| `items` | `FolderRecord[]` | yes | By path, at most 500. The folders diagrams are filed in are read from the diagrams and are not listed here unless someone made them. |
| `items[].path` | `string` | yes | The folder, in the form diagrams carry in their `folder`. |
| `items[].createdAt` | `integer` | yes | Milliseconds since the epoch, when it was made. |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.plotwork.dev/api/reference.md) | Every endpoint, and the error envelope |
| [Schemas](https://docs.plotwork.dev/api/schemas.md) | Every request and response type |
| [Tool reference](https://docs.plotwork.dev/mcp/tools.md) | The operations as callable tools |
