Resources
Templates
Reusable documents with role-based fields. Create them once, then mint pre-filled documents from them by API.
Available on Developer+Roles map to signers at send time
Create document from template
| Parameter | Type | Description |
|---|---|---|
template_idrequired | string | |
role_assignmentsoptional | object | Keyed by the template role name. Each value is an object with the signer email. The signer's name is supplied later at send time. |
prefilloptional | object | Keyed by the field label (not field ID). Flat string values. |
titleoptional | string | |
external_idoptional | string | Your own record ID, stored on the document and returned in every webhook. |
metadataoptional | object |
POST /api/v1/documents/from-template
curl -X POST \
https://www.sigpen.com/api/v1/documents/from-template \
-H "Authorization: Bearer sp_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"template_id": "tpl_123",
"title": "Mutual NDA",
"external_id": "crm-7841"
}'List templates
GET /api/v1/templates
curl -X GET \ https://www.sigpen.com/api/v1/templates \ -H "Authorization: Bearer sp_test_your_key"
Create template from document
POST /api/v1/templates
curl -X POST \ https://www.sigpen.com/api/v1/templates \ -H "Authorization: Bearer sp_test_your_key"
GET /api/v1/templates/{id}
curl -X GET \ https://www.sigpen.com/api/v1/templates/tpl_123 \ -H "Authorization: Bearer sp_test_your_key"
PATCH /api/v1/templates/{id}
curl -X PATCH \ https://www.sigpen.com/api/v1/templates/tpl_123 \ -H "Authorization: Bearer sp_test_your_key"
DELETE /api/v1/templates/{id}
curl -X DELETE \ https://www.sigpen.com/api/v1/templates/tpl_123 \ -H "Authorization: Bearer sp_test_your_key"