It's great to see the API is currently working with GET requests. I'd love to see a GET /api/templates route added.
On top of that, the biggest feature I'd use the API for would be triggering sending of a document based off a template.
Something along the lines of:
GET /api/templates/<templateId>
Response Body:
{
"name": "NDA Template",
"signers": [
{
"signerId": "<signerId1>",
"name": "x Signatory 1",
"customFields": [
{
"id": "job_title",
"type": "string",
"name": "Job Title"
}
]
},
{
"signerId": "<signerId2>",
"name": "x Signatory 2",
},
]
}
POST /api/documents
Request Body:
{
"templateId": "<templateId>",
"externalId": "<externalId>",
"name": "NDA 1",
"signers": [
{
"signerId": "<signerId1>",
"name": "x Signatory 1",
"email": "signatory1@example.com",
"redirectUrl": "https://example.com/thank-you",
"customFields": [
{
"id": "job_title",
"value": "General Manager"
}
]
},
{
"signerId": "<signerId2>",
"name": "x Signatory 2",
"email": "signatory2@example.com",
"redirectUrl": "https://example.com/thank-you"
}
]
}
A couple of things worth noting:
Happy to help with testing too!
Thanks again.