2

Integrate with Documentero Cloud API

Customer Support

Last Update 7 bulan yang lalu

You can integrate or automate Documentero with your system or automation flow using our Cloud Service.

Template API Panel

To enter cloud service panel for specific template

  • Go to Document
  • Find document that you would like to create using API
  • Click on cloud icon

In template API Panel you can create new document using JSON Editor or preview how to create proper API Request for specific template

API Request

Once you upload your template you can call our RESTful API with template identifier, apiKey assigned to your account and JSON data for the document. Our Cloud service will generate ready-to-use document in seconds

API Request properties:


Required:

document - template identifier (each template has a unique identifier)

apiKey - your API secret key that you can find in account settings

data - JSON with data that you want to pass to generate a document


Optional:

format - format of output document "docx" or "pdf" - Default: Inherited from Template Setting

email - email address that generates document is going to be sent as an attachment - Default: Document is not send to any email

emailSubject - You can override the default email subject - Default: New Document - [document name]

emailMessage - You can override the default email message - Default: You will find the attachment below

API Response

Our api will generate expirable link after succesfull document generation. If it encounter errors with data, apiKey, documentID it will throw 200 http error and message in response object

API Response properties:


message - information about status of document generation (including errors)

data - Expirable Document Download Link

Multiline Text

If you want to pass breakline into your documents you should use special character \n 

Was this article helpful?

0 out of 0 liked this article