For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Template

This document explains how to create a template via the /api/v1/template endpoint, including the request body, template XML, and response fields.

Method

Method
POST

URL

/api/v1/template

Authorization

Bearer {token}

Content-Type

application/json

Mailbox UUID header

{uuid}

Body

{"access":"string","categories":[],"data":"string"}

Use this endpoint to create a template from XML. Send the template XML as a string inside the data field and pass the target mailbox in the mailboxUuid header.

How it works

Build the template as XML first. Then send that XML inside the JSON body.

The response returns the template UUID and version. Reuse those values later in envelope requests. Reuse the same role IDs, document IDs, and field names from the template structure.

Request body

Use these body fields:

  • access — template access level, such as mailbox

  • categories — category IDs, or an empty array

  • data — template XML string

{
  "access": "mailbox",
  "categories": [],
  "data": "template XML string"
}

Template example

This simplified template example shows the XML that goes inside the data field.

Use template fields to define which data recipients must fill or sign.

Response example

Pay attention to uuid and version. Use them in Send Envelope and Fill Envelope.

Last updated

Was this helpful?