---
title: "Create an agreement template"
method: POST
path: "/templates"
tags: ["Templates"]
---

# Create an agreement template

`POST /templates`

## Request

- Base URL: `https://dataroom.corgi.com/api/v1`
- URL: `https://dataroom.corgi.com/api/v1/templates`
- Auth: HTTP bearer

Save a reusable agreement template from documents (or CLICKWRAP content). The returned id can be passed as `fromAgreementId` to POST /agreements. Templates have no recipients. Scope: `templates:write`.

## Request body

- object
  - `title` string, required
  - `documentIds` string[]
  - `kind` 'DOCUMENT' | 'CLICKWRAP'
  - `content` string: Markdown body for a CLICKWRAP template

## Response `201`

Created

## Other responses

- `400`: Validation error

---

[API](https://skmtc.dev/corgi/apis/dataroom-api.md) - [All operations](https://skmtc.dev/corgi/apis/dataroom-api/llms.txt) - [OpenAPI document](https://skmtc.dev/corgi/apis/dataroom-api/revisions/73f75ef04a00?raw)
