Skip to content

Templated API Documentation

With the Templated API you can automate the generation of images and PDFs.
This guide will help you get started integrating with our simple API.

  1. Sign up for an account.

  2. Design your template in our editor.

  3. Get your API KEY in your dashboard in the API Integration tab.

  4. Make a call to generate a render (image or PDF).

    SAMPLE REQUEST
    fetch('https://api.templated.io/v1/render', {
    method: 'POST',
    body: JSON.stringify({
    template: TEMPLATE_ID,
    layers: {
    'text-1': {
    text: 'This is my text to be rendered',
    color: '#FFFFFF',
    background: '#0000FF',
    },
    'image-1': {
    image_url: 'https://pathtomyphoto.com/123.jpg',
    },
    },
    }),
    headers: {
    'Content-Type': 'application/json',
    'Authorization' : `Bearer ${API_KEY}`
    },
    });
  5. Render multiple images and PDFs from your template.