SignEnvoy docs

API reference / Templates

Templates

GET /v1/templates

List Templates

D46(f): the CLI's `template list`.

Query

Responses

POST /v1/templates

Create Template

Request body (application/json, required)

MemberTypeNotes
fieldsarray of FieldSpecFieldSpec
name requiredstring (min length 1, max length 300)
pdf_base64 requiredstring
recipientsarray of RecipientSpecRecipientSpec

Responses

GET /v1/templates/{tpl_id}

Get Template

D46(f): the CLI's `template pull` — the definition round-trips.

Path

Responses

PATCH /v1/templates/{tpl_id}

Patch Template

D54/TE-6: replaces the parts given and bumps `version`. Documents already created from the template are unaffected.

Path

Request body (application/json, required)

MemberTypeNotes
fieldsarray of FieldSpec | nullFieldSpec
namestring (min length 1, max length 300) | null
recipientsarray of RecipientSpec | nullRecipientSpec

Responses

DELETE /v1/templates/{tpl_id}

Delete Template

D54: soft delete — the template disappears from list/get/use; documents created from it are unaffected.

Path

Responses

POST /v1/templates/{tpl_id}/duplicate

Duplicate Template

T-5: a new template (version 1) from the same PDF and definition.

Path

Request body (application/json)

Type: DuplicateTemplateIn | null

Responses

POST /v1/templates/{tpl_id}/use

Use Template

Path

Request body (application/json, required)

MemberTypeNotes
date_formatstring | null
display_timezonestring | null
form_valuesobject of stringPrefill values keyed by field name, or by field index as a string in the template's field order ("0", "1", …). An unknown key fails the request with 422.
recipients requiredarray of RecipientSpecRecipientSpec
redirect_urlstring | null
titlestring | null

Responses