List the media library's folders

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-mediaorganise-folders-list"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/e40c968d-2c28-4bfc-94c1-fbf73203f242/social-card.svg?v=3e7ae33eec8b" alt="List the media library's folders" width="600" height="315"></a>
GET http://localhost:4000/api/v1/media/folders

Nested through parentId; each with the number of files directly in it.

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/media/folders" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
[
  {
    "id": "string",
    "organizationId": "string",
    "name": "string",
    "parentId": "string",
    "clientId": "string",
    "createdAt": "2024-01-01T00:00:00Z",
    "files": 0
  }
]
Schema
id
string
required
organizationId
string
required
name
string
required
parentId
string
required
clientId
string
required
createdAt
string
required
files
number
required
Updated