Create Document
POST/createdocument
The Create Document API allows users to generate new documents by providing data with base64 encoded file.
Upload you pdf in Debug PDF here you can draw widgets and copy co-oridnate, page number of them. also you can copy base64 of PDF
Request
- application/json
Body
required
Array [
Array [
]
]
signers
object[]
required
widgets
object[]
This parameter allows you to specify whether you want emails to be sent to signers. The default value is "true". If the value of this parameter is "true" and no 'email_subject'/'email_body' parameters are specified default email templates will be used.
Custom mail subject for signature request. Can include the following {{document_title}} {{sender_name}}, {{sender_mail}}, {{sender_phone}}, {{receiver_name}}, {{receiver_email}}, {{receiver_phone}}, {{expiry_date}}, {{company_name}}, {{signing_url}}.
Custom signature request email body. Can include the following {{document_title}} {{sender_name}}, {{sender_mail}}, {{sender_phone}}, {{receiver_name}}, {{receiver_email}}, {{receiver_phone}}, {{expiry_date}}, {{company_name}}, {{signing_url}}.
Responses
- 200
- 400
- 405
Document created successfully!
- application/json
- Schema
- Example (from schema)
Schema
{
"objectId": "hji2zxcv2P",
"url": "https://url-to-sign-document.com"
}
Something went wrong, please try again later!
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "Something went wrong, please try again later!"
}
Invalid API Token!
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "Invalid API token!"
}