Signature invite for one template and multiple signers

Steps

▶ Get template_id of a template with more than one role. See the Create a Template article

You cannot send a template for signing, you have to generate a copy and send a copy of the template.

Create a document copy out of the template
▶ Get document_id from the response
Send a signature invite for the document you’ve generated

Endpoint Parameter
GET /template Find the “template_id” for the template that serves for a document copy
POST /template/{{template_id}}/copy “template_id”
POST /document/{{document_id}}/invite “document_id”
“email”
“role_id”
“role”
“order”

▶ Create a document copy from the template

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

Get document ID from the response.

▶ Signature invite

curl -X POST \
  https://api-eval.signnow.com/document/{{document_id}}/invite \
  -H 'Authorization: Bearer {{access_token}}' \
  -H 'Content-Type: application/json' \
  -d '{"to": [
    {
      "email": "signer1.email@gmail.com",
      "role_id": "",
      "role": "Signer1",
      "order": 1
    },
    {
      "email": "signer2.email@gmail.com",
      "role_id": "",
      "role": "Signer2",
      "order": 1
    }
  ],
  "from": "sender@gmail.com",
  "cc": [],
  "subject": "Signature Request",
  "message": "Email body for the signature request"
}'

You can only use the email address associated with your signNow account (login email) as “from” address.