Documentation
  • Welcome to Documentero Docs
  • General
    • Usage Limits and Quotas
    • Manage Account & Plans
    • Documentero Roadmap / Changelog
    • Privacy Policy
    • Frequently Asked Questions
  • templates
    • Templates Introduction & Tutorial
    • Template Upload/Re-upload
    • Organize Templates into Folders
    • Fields
    • Fields - Images
    • Fields - QRCodes
    • Fields - Links
    • Fields - HTML Support
    • Fields - Markdown Support
    • Fields - Mermaid Support
    • Fields - Formatters
    • Sections
    • Sections - Types & Options
    • Smart Fields
    • Smart Sections
    • Template Variables
  • Charts & Diagrams
  • Forms
    • Create Documents using Form
    • How to customize document form
    • Fields/Sections - General Settings
    • Field- Types & Options
      • Field - Multi Checkbox
      • Field - Checkbox
      • Field - Radio Button
      • Field - Datepicker
      • Field - Radio Select
      • Field - Select
      • Field - Multiline
      • Field - Number
      • Field - TextField
    • Conditional Fields & Sections
    • Shared Forms
      • Sharing Forms
      • Shared Form Configuration
      • Consent Form (GDPR)
      • Embeed & customize shared form on your website
  • Spreadsheet
    • Create Documents using Spreadsheet
  • API
    • Create Documents using API & JSON
    • Integrate with Documentero Cloud API
  • ChatGPT
    • Create Documents using ChatGPT
  • Integrations
    • Zapier
    • Make.com
    • Integrately
    • Pabbly Connect
    • Albato
    • Bubble.io Plugin
    • Webflow
    • Flutterflow
Powered by GitBook
On this page
  • Template API Panel
  • API Request
  • API Response
  • Multiline
  1. API

Integrate with Documentero Cloud API

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

PreviousCreate Documents using API & JSONNextCreate Documents using ChatGPT

Last updated 1 year ago

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 (limited HTML formatting supported)

emailFooter - You can override the default email footer - Default: Powered by Documentero (limited HTML formatting supported)

emailSender - You can override the default email sender - Default: Documentero

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

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

You can preview sample request for specific template inside the app