Signature Templates

Create signature template

Changed on

Creates a template: documents with fields for roles (client, company) instead of named signers. Only name is required, so it can start empty and be built later, also in the embedded builder (POST /sign/templates/{id}/builder_sessions). Fields go by position or anchor, resolved now. It is ready once it has documents and a signature field for every role.

post/sign/templates

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

SignatureTemplateCreateRequest required

documents, roles and fields each replace the whole list. Requests already made from the template keep their own copy.

name, string required
title, string nullable

Shown to signers. Default: the name

message, string nullable
signing_order, 'parallel' | 'sequential'
documents, object[]

The PDFs, in order. Each is an uploaded document (document_id), a PDF inline (filename and base64 content, at most 25 MB and 500 pages), or a PDF in the media library (file). Inline and media-library PDFs become documents you can reuse.

roles, object[]
fields, object[]

Response

Template created

SignatureTemplate required
id, string required
object, string required
name, string required
title, string nullable required
message, string nullable required
signing_order, 'parallel' | 'sequential' required
created_at, string date-time required
updated_at, string date-time required
documents, object[] required
roles, object[] required
fields, SignatureTemplateField[] required
ready, boolean required

Has documents and a signature field for every role, so requests can be made from it

share_url, string nullable required

The public page where anyone can sign their own copy. Null while the link is off

Changes