Skip to content

Retrieves a single Template object referenced by its unique ID.

id string REQUIRED
The template id of the template that will be retrieved.

ParameterTypeDefaultDescription
includeLayersbooleanfalseInclude template layers in response
includePagesbooleanfalseInclude template pages and layers in response

Here’s a sample request to retrieve a template:

ENDPOINT
GET /v1/template/:id
fetch(`https://api.templated.io/v1/template/${id}?includeLayers=true`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${API_KEY}`
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));