An access token is required for creating a template.

Create a template

Template - an entity that holds the structure of a document and serves for generating its copies.

Steps:

Upload a document to signNow

▶ Copy the document ID from the response

Convert the document into a template

▶ Get the template ID from the response

Endpoint Parameters
POST/document "file"
POST/template "document_id" "document_name"

▶ Upload a document to signNow

curl -X POST \
  https://api-eval.signnow.com/document \
  -H 'Authorization: Bearer {{access_token}}' \
  -H 'content-type: multipart/form-data' \
  -F 'file=@/path/to/your/document/pdf-test.pdf'

▶ Copy the document ID from the response

▶ Convert the document into a template

curl -X POST \
  https://api-eval.signnow.com/template \
  -H 'Authorization: Bearer {{access_token}}' \
  -H 'Content-Type: application/json' \
  -d '{
        "document_id":"{{document_id}}",
        "document_name":"my_template"
      }'

▶ Get the template ID from the response