---
title: "Create signature template"
method: POST
path: "/sign/templates"
tags: ["Signature Templates"]
---

# Create signature template

`POST /sign/templates`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/sign/templates`
- Auth: API key in header `Authorization`

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.

## Headers

- `Idempotency-Key` string

## Request body

- SignatureTemplateCreateRequest: `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.
    - `document_id` string: `sigdoc_...`
    - `filename` string: Ends in .pdf
    - `content` string, byte
    - `file` string: A PDF in the media library (`file_...`)
  - `roles` object[]
    - `key` string: Letters, digits, `_` or `-`. Default: from the name
    - `name` string, required: e.g. Client
  - `fields` object[]
    - `type` 'signature' | 'initials' | 'date_signed' | 'name' | 'email' | 'text' | 'checkbox' | 'company' | 'phone' | 'textarea' | 'select', required: `signature` and `initials` take the adopted image, `date_signed` is filled with the signing date, `name` and `email` start with the signer's own, `text` takes up to 1000 characters, `checkbox` must be ticked when required. `company`, `phone`, `textarea` and `select` (needs `options`) are Crevio extras.
    - `required` boolean
    - `label` string, nullable
    - `document` union: Index into `documents` (default 0), or a document id (`sigdoc_...`)
      - integer
      - string
    - `page` integer: Page number, from 1
    - `x` number
    - `y` number
    - `width` number: Default: the type's usual size, or the anchor text's width
    - `height` number: Default: the type's usual size, or the anchor text's height
    - `anchor` string: Text in the PDF to place the field over, e.g. `{{signature:client}}`
    - `offset_x` number: Points to move an anchored field right
    - `offset_y` number: Points to move an anchored field down
    - `options` string[]: The choices of a `select` field
    - `role` string, required: The role key that fills it
    - `merge_key` string, nullable: `text` fields only: filled from `merge_fields[merge_key]` when a request is made, shown read-only. Without a value, the signer fills it

## Response `201`

Template created

- SignatureTemplate
  - `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
    - `id` string, required
    - `filename` string, required
    - `sha256` string, required
    - `page_count` number, required
    - `pages` object[], required
      - `width` number, required
      - `height` number, required
  - `roles` object[], required
    - `key` string, required
    - `name` string, required
  - `fields` SignatureTemplateField[], required
    - `id` string, required
    - `role` string, required
    - `type` 'signature' | 'initials' | 'date_signed' | 'name' | 'email' | 'text' | 'checkbox' | 'company' | 'phone' | 'textarea' | 'select', required
    - `page` number, required
    - `x` number, required
    - `y` number, required
    - `width` number, required
    - `height` number, required
    - `required` boolean, required
    - `label` string, nullable, required
    - `merge_key` string, nullable, required
    - `document_id` string, required
    - `options` string[], 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

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

## Changes

- **2026-11-24** `6f825a6bd243`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/sign/templates/post.md)

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) - [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/ccbd8fcbd6d7?raw)
