Skip to main content
Retrieve a template

Authorizations

Authorization
string
header
required

Authorize using an API key. Send it in the Authorization: Bearer <api-key> header. Only API keys are accepted — session tokens are rejected. Create your first API key in the Circularo web app; further keys can be managed through this API.

Path Parameters

id
string
required

Identifier of the template to retrieve.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"cba71ea5-9a68-431a-a5c2-6d9932792ec7"

Response

Returns the requested template.

A template: reusable document defaults (title, source file, metadata definition), and for a signing template also the placed fields, the recipient roles and their routing.

annotationFields
object[]
required

Annotation fields the template places on the document.

category
string | null
required

Category the template is filed under.

Example:

"Contract"

createdAt
string<date-time> | null
required

When the template was created.

Example:

"2024-11-02T09:15:30.000Z"

createdBy
object | null
required

The user who owns the template. Null when it cannot be determined.

id
string
required

Identifier of the template.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"cba71ea5-9a68-431a-a5c2-6d9932792ec7"

imageFields
object[]
required

Image fields the template places on the document.

isLocked
boolean
required

Whether the template is enforced when used. Creating a transaction from a locked template binds the transaction to it — the binding is recorded on the document and the fields are validated against the template on the server. An unlocked template only provides the blueprint and leaves no binding. The binding is recorded when the document is sent to recipients; a transaction completed by apply alone leaves none.

mainFileId
string | null
required

Identifier of the template's source file — the default main file of a document created from the template. Null when the template carries no file.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

metadataDefinition
string | null
required

The metadata definition a document created from the template is created with. Null when the template sets none; the document is then created with d_default.

Required string length: 1 - 100
Pattern: ^[A-Za-z0-9_-]+$
Example:

"d_default"

name
string | null
required

Name of the template — the default title of a document created from it.

Example:

"Employment agreement"

roles
object[]
required

The recipient roles of a signing template. Fill every role when creating a transaction from the template — cast recipients into it via role, or assign its fields to recipients via fieldIds. Empty for a document template.

sequential
boolean
required

Whether a transaction created from the template runs sequentially — recipients act one after another in their role's order — or in parallel.

signatureFields
object[]
required

Signature fields the template places on the document.

type
enum<string>
required

The kind of the template, determined by its content rather than by how it was labelled when it was created.

  • document: A document template: a reusable source file, title and metadata definition. It defines no recipient roles or placed fields.
  • signing: A signing template: a complete transaction blueprint. On top of the document defaults it locks the placed fields and defines the recipient roles and their routing.
Available options:
document,
signing
Example:

"signing"

webUrl
string<uri> | null
required

Link to open the template in the Circularo web app. Requires an authenticated Circularo session.

Example:

"https://sandbox.circularo.com/templates?selected=cba71ea5-9a68-431a-a5c2-6d9932792ec7"