Skip to content

List all folders

Lists all folders of an user.
You can filter and customize the results using query parameters.

Query Parameters

ParameterTypeDefaultDescription
querystring-Filter folders by name
pageinteger0Page number for pagination
limitinteger25Number of results per page

Sample Request

Here’s a sample request to list all user’s folders:

ENDPOINT
GET /v1/folders
fetch(`https://api.templated.io/v1/folders`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`
},
// Example with all query parameters
params: {
query: 'Folder 1',
page: 0,
limit: 25
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Response

The API returns an array of JSON objects with the folder details.

[
{
"id": "fld_123abc",
"name": "My Templates",
"createdAt": "2024-03-20T10:30:00Z",
"updatedAt": "2024-03-20T10:30:00Z"
},
{
"id": "fld_456def",
"name": "Brand Assets",
"createdAt": "2024-03-19T15:45:00Z",
"updatedAt": "2024-03-20T09:15:00Z"
}
]

Each folder object contains the following properties:

id string
The unique identifier of the folder.

name string
The name of the folder.

createdAt string
The timestamp when the folder was created.

updatedAt string
The timestamp when the folder was last updated.