Cloud - Upload Template using cURL via API

This example shows how to upload a template to the cloud using cURL.  It calls the Docmosis REST API to upload a local template file to the cloud.

The sample code includes the instructions to get started. You will need a Free Trial and then plug your Docmosis Cloud access key into the code below, then run.

Note: This code sample is written to specifically work with DWS4.

The linux command:

curl -F templateFile=@NewTemplate.docx -F accessKey=XXXX https://us1.dws4.docmosis.com/api/uploadTemplate

will call the cloud service to upload the template from the local file NewTemplate.docx.

The access key above is XXX which you should replace with your access key.

The region url above is for USA, for EU use https://eu1.dws4.docmosis.com/api/uploadTemplate
for AUS use https://au1.dws4.docmosis.com/api/uploadTemplate

Feedback

Invalid Input

Sorry, this field will only accept letters and numbers, and not special characters, to limit spam. Please also consider contacting support@docmosis.com if you need help with this article.

Sorry, this field will only accept letters and numbers, and not special characters, to limit spam.

Invalid Input

API Overview

Docmosis offers a high-performance, template-based PDF generation API. Suitable for use with custom software applications built using Java, C#/.Net, Python, Ruby and more. See a side-by-side comparison of the API for our SaaS and self-hosted products.