About this article
The Templafy Public API is the gateway for other applications to interact with Templafy. It can be used to automate admin actions that otherwise would need to be done manually, for example uploading/synchronizing/deleting templates and assets in the Library or maintaining data sources.
Prerequisites
|
Use cases examples
Automatic synchronization with the Library
The ability to automatically synchronize external applications with Templafy bares a broad variety of use-cases.
-
Synchronizing DAM with Templafy
Automatically synchronizing images, templates & assets between an external DAM system and Templafy eliminates the necessity for the admin to manually upload the files. -
Automatic upload of slides on a daily basis
When companies have the need to upload slides daily for the purpose of keeping prices and like up-to-date this can be automated using the API. -
Automatic upload after approval
If companies have internal approval processes for new content such as slides, our API can help upload these pieces of content automatically once the last approval has been given.
Maintain and replicate data sources
- Creating a new data source
Create a data source from internal systems (such as HR platforms, CMS and others) without having to manually enter the data in Templafy Admin Center
- Updated company data everywhere
Synchronize data from internal systems (such as HR platforms, CMS and others) and Templafy data sources to ensure that the company data is always up-to-date. This allows to edit the data in internal systems or in Templafy while being ensured that both systems are updated.
- Synchronize the data sources between tenants
Creating the possibility of duplicating the data sources from one tenant to another in a simple way, smoothing the process of replicating data sources to cater for the creation of UAT tenants, test tenants, multi-brands...
Unattended Document generation
- Generating a document without interacting with the Templafy interface
Create the possibility of automating document creation by removing the need for users to interact with the Templafy interface to create static and dynamic documents.
Swagger documentation
You can access the swagger documentation from this link: https://api.templafy.com/
How to generate a token to interact with the Templafy API?
In order to interact with the API, one must create the necessary key in Templafy Admin Center:
- Navigate to the account section
- In the API Keys tab, click
Create key
- Provide a name to the key
- Click
Next
- Click
Add scope
and select-
library.read
to surface Templafy content
All GET actions inDocuments
,EmailElements
,Folders
,Images
,Libraries
,Links
,PDFs
,Presentations
,SlideElements
,Slides
,Spreadsheets
, andTextElements
-
library.readwrite
to interact with Templafy
All actions inDocuments
,EmailElements
,Folders
,Images
,Libraries
,Links
,PDFs
,Presentations
,SlideElements
,Slides
,Spreadsheets
, andTextElements
-
library.generate
to generate Templafy documents (Documents, Presentations, Spreadsheets)
POST actions with/generate
endpoint inDocuments
,Presentations
,Spreadsheets
-
datasources.read
to surface the data sources
All GET actions inDataSourceItems
andDataSources
-
datasources.readwrite
to interact with the data sources
All actions inDataSourceItems
andDataSources
-
spaces.read
to surface list of Templafy spaces
GET action inSpaces
-
- Click
Create
- Click
Copy key
|
Related articles
Comments
Article is closed for comments.