Skip to main content
You are viewing the documentation of release 26.1, which is no longer the current one. Go to the documentation of the current release 26.2.

Requirements

  • Authentication token
  • File hash

1. Create a document from existing file

To create a new document from an existing file, you can use the following API call:
This call will create a new document, configure its basic information, and assign it to a specified folder. Before making this call, you must first create the file and obtain its file hash. In the body of the request, you will need to specify the following information:
  • documentType: The type of document you want to create. (e.g. “d_default”)
  • documentTitle: The title of the document.
  • pdfFile: An object containing the content (file hash) of the existing file you want to use.
You can also specify folder path in following way: "path":"my_folder/nested_folder" etc… If the folders do not exist, they will be created automatically The response of the API call will include the ID of the newly created document:

2. Create an eDoc document

To create a new eDoc document, you can use the following API call:
This call will create a new eDoc document, configure its basic information, and assign it to a specified folder. An eDoc document is composed of an HTML template and user inputs. The specific template used is determined by the documentType specified in the request. In the body of the request, you will need to specify the following information:
  • documentType: The type of eDoc document you want to create. (e.g. d_integration)
  • documentTitle: The title of the document.
  • myField: A custom value for a field specific to this document definition.
The response of the API call will include the ID of the newly created document:
Please note that in both cases, an authentication token is required as a parameter in the API call. Also, the user must also specify a definitionType, documentType and workflow in order to properly configure and store the document.