Create Template
POST/createtemplate
The Template Creation API allows users to create customizable templates, which serve as blueprints for generating documents with predefined structures. Upon successful template creation, the API returns a unique template_id that can be used to generate documents based on the specified template.
Upload you pdf in our Debug UI 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
You can provide signer optionally if you it as default signer
widgets
object[]
Allowed values - signature, stamp.
The page number on which the widget should appear. use our Debug UI to calculate the value.
x co-ordinate (left upper corner) from which widget should appear. use our Debug UI to calculate the value.
y co-ordinate (left upper corner) from which widget should appear. use our Debug UI to calculate the value.
Width of widget. use our Debug UI to calculate the value.
Height of widget. use our Debug UI to calculate the value.
Responses
- 200
- 400
- 405
Template created successfully!
- application/json
- Schema
- Example (from schema)
Schema
{
"objectId": "Bh2Hspnmch",
"message": "Template created successfully!"
}
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!"
}