🚧 The Signature.nc API documentation in under construction, feel free to contact-us.
API Documentation
API
Templates
Create a template

Create a template

POST/templates

The API endpoint provides the functionality to create a fillable document template.

Request Body Properties

  • name String
    Name of the template
  • file File
    A template is composed of files
📘

Content-Type : multipart/form-data

NodeJS
var axios = require("axios").default;
 
let formData = new FormData()
formData.append('name', 'Test API template')
formData.append('file', '/Users/user/test.pdf')
formData.append('file', '/Users/user/test2.pdf')
 
var options = {
  method: 'POST',
  url: 'https://api.signature.nc/api/v1/templates',
  headers: {'Authorization': 'Bearer {apiKey}'},
  body: formData
};
 
axios.request(options).then(function (response) {
  console.log(response.data);
}).catch(function (error) {
  console.error(error);
});
json
{
    "name": "Test API Template",
    "createdAt": "2024-05-27T02:52:59.310Z",
    "updatedAt": "2024-05-27T02:52:59.310Z",
    "uuid": "e37e7113-6eb9-4eb7-840f-feffe528dd03",
    "documents": [
        {
            "name": "test.pdf",
            "uuid": "486b40fa-dc36-4a40-b057-9058b7056896",
            "fields": [],
            "url": "https://api.signature.nc/uploads/test.pdf"
        }
        {
            "name": "test2.pdf",
            "uuid": "a11418ef-f5e4-4dcc-82f2-3189840950e2",
            "fields": [],
            "url": "https://api.signature.nc/uploads/test2.pdf"
        }
    ]
}