⌨️
API Documentation
HomeBuilderPricingSupportContact
  • Introduction
  • Getting Started
  • API Conventions
  • API Reference
    • Documents
      • Template
    • Conversion
      • Convert
    • Ai
      • Compare
        • Result
      • Summary
        • Result
  • Specification
Powered by GitBook
On this page

Was this helpful?

  1. API Reference
  2. Documents

Template

PreviousDocumentsNextConversion

Last updated 11 months ago

Was this helpful?

Create a new Office document by merging an office template with text, images, documents and tables.

The template provided needs to have been created based on the simple templating approach described in the article .

Note: While this article describes how to use Power Automate, the JSON tab which can be selected throughout the article makes it a great reference for developers.

Document Response Format

The document response format described the format you would like the File to be returned in.

Supported conversion types are:

  • PDF - Adobe PDF.

  • HTML - HTML Format, text and formatting only, images are not included.

  • TXT - Text only, with very limited formatting and no images.

  • Original - The same format as the template sent in the request. No conversion.

The following values should be provided in the Configuration object:

  • PDF

  • HTML

  • TXT

  • Original (default)

Required Properties

  • Template

Its expected that one of Images, Rows, Text or Substitute Documents would also be included, since these are necessary to process the template.

Create documents with Power Automate

Create a new document from a template

post

Create a new Office document by merging an office template with text, images, documents and tables.

Authorizations
Body
Responses
200
Success
403
The request is not authorized to make the template request
404
Service has not been found, please contact support@tendocs.com
500
Something has gone wrong, please contact support@tendocs.com
post
POST //documents/v1/template HTTP/1.1
Host: api.tendocs.com
X-API-KEY: YOUR_API_KEY
Accept: */*

No content

  • Document Response Format
  • Required Properties
  • POSTCreate a new document from a template