API Quick Start

An Overview of the API Endpoints.

Sync, Image only

It's just an URL.

[GET] /v1/url/:templateID?:params

The quickest way to integrate our Cloud API infrastructure!

https://cloud.presenta.cc/v1/url/templateID/?main=Hello

Sync, Image only

Get the image with full control!

[POST] /v1/render/:templateID

To get images with more control, use the POST end-point.

fetch('https://cloud.presenta.cc/v1/render/templateID', {
    method: 'POST',
    body: JSON.stringify({title: 'Hello'})
})

Async, All formats

Merge your data, Choose the format.

[POST] /v1/export/:projectID

The /export end-point allows to merge multi-frames documents and get it as PDF, GIF and PNG as well.

fetch('https://cloud.presenta.cc/v1/export/projectID', {
    method: 'POST',
    body: JSON.stringify({
        title: 'Hello',
        footer: 'Common String present in all frames',
        exportFileFormat: 'pdf' // default pdf, can be gif or png
    })
})

Async, All formats

Structure Complex Documents

[POST] /v1/export/:projectID

By using the frames key, generate custom document structures and get it as PDF, GIF and PNG as well.

fetch('https://cloud.presenta.cc/v1/export/projectID', {
    method: 'POST',
    body: JSON.stringify({
        footer: 'Common String present in all frames',
        title: 'This is default title',
        frames:[
            {frameID: 'Aj4', title: 'Hello, new title'},
            {frameID: 'Aj4', title: 'Other, new title'},
            {frameID: 'Aj4'}, // default title
            {frameID: 'g5F', text: 'Other Text'},
        ]
    })
})