Skip to content

List gallery templates

Lists all templates available in the public Template Gallery.
Gallery templates are professionally designed templates that you can use as a starting point for your projects**.**

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

Returns an array of template objects. Each template includes the following notable fields:

FieldTypeDescription
idstringUnique identifier of the template
namestringName of the template
descriptionstringDescription of the template
widthintegerWidth of the template in pixels
heightintegerHeight of the template in pixels
thumbnailstringURL of the template thumbnail image
categoryobjectCategory information (name, description)
tagsarrayList of tags associated with the template
backgroundstringThe background color of the template
layersarrayList of template layers (only when includeLayers=true)

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

ENDPOINT
GET /v1/templates/gallery
fetch('https://api.templated.io/v1/templates/gallery', {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
fetch('https://api.templated.io/v1/templates/gallery?category=Certificate', {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`
}
})
// Get Instagram post templates (1080x1080)
fetch('https://api.templated.io/v1/templates/gallery?width=1080&height=1080', {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`
}
})
fetch('https://api.templated.io/v1/templates/gallery?query=certificate', {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`
}
})

You can launch the Templated editor with a gallery template pre-loaded using the gallery URL parameter:

https://app.templated.io/editor?gallery={galleryTemplateId}

This will automatically create a copy of the gallery template in the user’s account and open it for editing.

For embedded editor integrations, you can use:

https://app.templated.io/editor?embed={embedConfigId}&gallery={galleryTemplateId}