Skip to content

List all templates

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

Query Parameters

ParameterTypeDefaultDescription
querystring-Filter templates by name
pageinteger0Page number for pagination
limitinteger25Number of results per page
widthinteger-Filter templates by width
heightinteger-Filter templates by height
tagsstring-Filter templates by tags (comma-separated)
includeLayersbooleanfalseInclude template layers in response

Sample Request

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

ENDPOINT
GET /v1/templates
fetch(`https://api.templated.io/v1/templates`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`
},
// Example with all query parameters
params: {
query: 'Template Name',
page: 0,
limit: 25,
width: 1920,
height: 1080,
tags: 'tag1,tag2',
includeLayers: true
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));