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
POST/api/v1/documents/from-template#

Create document from template

ParameterTypeDescription
template_idrequiredstring
role_assignmentsoptionalobjectKeyed by the template role name. Each value is an object with the signer email. The signer's name is supplied later at send time.
prefilloptionalobjectKeyed by the field label (not field ID). Flat string values.
titleoptionalstring
external_idoptionalstringYour own record ID, stored on the document and returned in every webhook.
metadataoptionalobject
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"
  }'
GET/api/v1/templates#

List templates

GET /api/v1/templates
curl -X GET \
  https://www.sigpen.com/api/v1/templates \
  -H "Authorization: Bearer sp_test_your_key"
POST/api/v1/templates#

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}#

Get template details

ParameterTypeDescription
idrequiredpathstring
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}#

Update template

ParameterTypeDescription
idrequiredpathstring
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}#

Delete template

ParameterTypeDescription
idrequiredpathstring
DELETE /api/v1/templates/{id}
curl -X DELETE \
  https://www.sigpen.com/api/v1/templates/tpl_123 \
  -H "Authorization: Bearer sp_test_your_key"