POST: Render from Studio Template
Learn how you can make a POST request to render from a custom template on Orshot
What are Studio Templates?
Templates that you've designed in Orshot Studio are Studio Templates. These templates are custom designs that you can customize and paramterize
You can render content from a custom template that you've designed using Orshot Studio by making POST
request to Orshot API
POST Request
Response Structure
Single Page Templates
- Templates with only one page
- Response can be accessed at the value at
data.content
, it's instring
format - (base64 format + binary type) response combination isn't supported
Multi Page Templates
- Templates with more than one pages
- Response can be accessed at
data.content
, it's inarray
format with content
Parameters
templateId
: Each Studio template has a unique templateId(integer) which you can see on Template's page or paygroundmodifications
: Object structure of the dynamic modidifcations that you've set in the template. Additionally, you can also use style parameters to dynamically set styles for your layers, learn moreresponse.format
response.type
response.fileName
: works only when the response format is eitherurl
orbinary
, can be used to specify custom file name for the output files. In carousel templates, the file name will be suffixed by-page-1
,-page-2
etc. Also ifresponse/format
is set tourl
, the custom file name will be suffixed with-[UNIQUE_HASH]
to make sure it's a unique file