Skip to content

List folder templates

Lists all templates of a folder.

Parameters

id string REQUIRED The folder id that you want to retrieve the templates.

Sample Request

Here’s a sample request to list all templates of a folder:

ENDPOINT
GET /v1/folder/:id/templates
REQUEST
fetch(`https://api.templated.io/v1/folder/${id}/templates`, {
method: 'GET',
headers: {
'Authorization' : `Bearer ${API_KEY}`
}
})

Response

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

[
{
"id": "tpl_123abc",
"name": "Instagram Post",
"width": 1080,
"height": 1080,
"thumbnail": "https://templated-assets.s3.amazonaws.com/thumbnail-123.png",
"folderId": "fld_456def",
"layersCount": 5,
"createdAt": "2024-03-20T10:30:00Z",
"updatedAt": "2024-03-20T10:30:00Z",
}
]