---
title: "Create Consent Record"
method: POST
path: "/v1/compliance/consent/{claim_id}"
tags: ["compliance"]
---

# Create Consent Record

`POST /v1/compliance/consent/{claim_id}`

## Request

- Base URL: `https://api.claims.zicron.ai`
- URL: `https://api.claims.zicron.ai/v1/compliance/consent/{claim_id}`
- Auth: none declared

Create a consent record for a claim.

A contact channel (sms, voice, email) is the claimant's contact consent (``conversations/consent.py``): a
person records it and says how it was obtained (``obtained_via``; 422 without), ``granted: false`` records
a withdrawal; refused (409) for texts or calls after the claimant texted STOP. It then counts for outreach.

## Path parameters

- `claim_id` string, required

## Request body

- ConsentCreateRequest
  - `consent_type` string, required
  - `granted` boolean
  - `obtained_via` string, nullable
  - `note` string, nullable
  - `granted_by` string, nullable
  - `expires_at` string, date-time, nullable
  - `scope` string, nullable
  - `metadata` object

## Response `201`

Successful Response

- ConsentRecord
  - `id` string, required
  - `claim_id` string, required
  - `consent_type` string, required
  - `granted` boolean
  - `granted_by` string, nullable
  - `granted_at` string, required
  - `expires_at` string, nullable
  - `revoked_at` string, nullable
  - `scope` string, nullable
  - `metadata` object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zicron/apis/zicron-api.md) · [All operations](https://skmtc.dev/zicron/apis/zicron-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zicron/apis/zicron-api/revisions/abe62e22aa46?raw)
