Create Document from Template
POST/createdocument/:template_id
The Create Document API allows you to generate new documents by providing template_id.
Request
Path Parameters
template_id stringrequired
objectId of Template
- application/json
Body
required
Array [
]
signers
object[]
role string
email mail
name string
phone string
Responses
- 200
- 400
- 405
In success response you will get url in response if you are also signer in document otherwise only get objectId, messsage
- application/json
- Schema
- Example (from schema)
Schema
objectId string
url string
message string
{
"objectId": "hji2zxcv2P",
"url": "https://example.com",
"message": "Document sent successfully!"
}
If you haven't add widgets and signers in template or not provide signers along with their roles in body
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "Please setup template properly!"
}
Invalid API Token!
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "Invalid API token!"
}
Loading...