---
title: "Create Consent Template"
method: POST
path: "/consentTemplates"
tags: ["Consent Templates"]
---

# Create Consent Template

`POST /consentTemplates`

Create a consent template

## Request body

- ConsentTemplateCreateRequest
  - `consentType` string, required — The type of consent template, e.g. Terms and Conditions
  - `title` string — The name of the consent document that will be visible to end users if you choose to make it visible.
  - `version` string, required — The version of the consent template
  - `consentMethod` string — The method of consent
  - `consentText` string, required — The content of the consent template

## Response `201`

OK

- ConsentTemplateCreateResponse
  - `code` 'OK' | 'CREATED' | 'INVALID_CREDENTIALS' | 'INVALID_PARAMETERS' | 'INVALID_TOKEN' | 'UNAUTHORIZED_ACCESS' | 'MISSING_RESOURCE' | 'REQUEST_LIMIT_EXCEEDED' | 'SERVER_ERROR' | 'UNSUPPORTED_METHOD' | 'SERVER_UNAVAILABLE' | 'TIME_LIMIT_EXCEEDED' — Request status code
  - `message` string — Message response to the request
  - `requestId` string — Unique ID that is added to the body of every response for easy traceability of the request in our logs.
  - `data` ConsentTemplate
    - `id` string — Unique id for this consent template
    - `createdAt` string, date-time
    - `consentType` string
    - `title` string
    - `version` string
    - `consentMethod` string
    - `consentText` string

## Changes

> 51 revisions in range; 2 could not be searched.

- **2026-07-15** (v1) `3bcbeecafbab` — 10 info
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`
  - …6 more
- **2024-08-05** (v1) `5cff755a0d41` — 2 info
  - added the new optional request property `title`
  - added the optional property `data/title` to the response with the `201` status

[Change history](https://skmtc.dev/smileapi/apis/smile-api/changes/consentTemplates/post.md)

---

[API](https://skmtc.dev/smileapi/apis/smile-api.md) · [All operations](https://skmtc.dev/smileapi/apis/smile-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smileapi/smile-api/revisions/a4930eb49f4d/schema)
