Creating Templates

Learn how to create a template for your contracts.



Templates are not needed to use the main features of Sealer.

Creating a template is really straightforward. You just have to upload a file that represents your template and give it a display name.



You need your API key to perform the actions on this page.
You also need the Sealer Admin Role.

Creating Templates

Create a template by performing a standard create template call with your API key in the header. Your API key must be valid for this to work. If you don't have an API key, follow this short tutorial to get one.

Let's try it out!

curl -X POST \{{PRODUCT_ID}}/templates \
  -H 'Accept: text/plain, application/json, text/json' \
  -H 'Content-Type: multipart/form-data' \
  -H 'x-api-key: {{YOUR_API_KEY}}' \
  -F 'file={{CONTRACT_FILE}}' \
  -F 'displayName={{CONTRACT_DISPLAY_NAME}}'

Replace the following parameters:

{{PRODUCT_ID}}: Your Product id
{{YOUR_API_KEY}}: Your own API key
{{TEMPLATE_FILE}}: The template file you want to upload
{{TEMPLATE_DISPLAY_NAME}}: The display name of the new template



You've created a template in Sealer!