Skip to main content

List all folders

Returns a list of your folders. The folders are returned sorted by creation date, with the most recently created folders appearing first.

Parameters

state
enum
The state of folders to return. The default is active. One of all, active, archived.

Returns

Return a paginated response that contains an array of up to the specified limit of folders.

get
/api/folders
curl https://{workspace}.kitchen.co/api/folders \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"data": [
{
"archived_at": null,
"created_at": "2024-03-12T14:18:37+00:00",
"id": "fo_19b9108c92d98f81224ece44",
"name": "New Folder",
"updated_at": "2024-03-12T14:18:37+00:00",
"visibility": "internal"
}
],
"links": {
"first": "/api/folders?page=1",
"last": "/api/folders?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/api/folders?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/api/folders",
"per_page": 20,
"to": 1,
"total": 1
}
}