---
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

## Other responses

- `400` — Standard error response
- `401` — Standard error response
- `403` — Standard error response
- `404` — Standard error response
- `415` — Standard error response
- `429` — Standard error response
- `500` — Standard error response
- `501` — Standard error response
- `503` — Standard error response
- `504` — Standard error response

## Changes

- **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/2e8500e069bb/schema)
