---
title: "Create a consent"
method: POST
path: "/consents"
tags: ["Consents"]
---

# Create a consent

`POST /consents`

## Request body

- CreateConsentRequestDto
  - `language` string, required — The language of the consent. Supported languages: Dutch, Turkish, Swedish, Indonesian, Filipino, Czech, Romanian, Danish, Malay, Slovak, Croatian, English, Polish, German, Spanish, French, Italian, Portuguese

## Response `201`

Created

- CreateConsentResponseDto
  - `id` string, required — The ID of the consent
  - `created_at` string, required — Consent creation time as iso-8601 string
  - `created_by` string, required — The user id of the user that created the consent
  - `text` string, required — A random text with 3 words to be used as a consent

## Other responses

- `401` — AuthorizationError

---

[API](https://skmtc.net/d-id/apis/realtime-endpoints.md) · [All operations](https://skmtc.net/d-id/apis/realtime-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-id/realtime-endpoints/versions/2f2425e1b6b6/schema)
