---
title: "POST /abdm/v1/consents/create"
method: POST
path: "/abdm/v1/consents/create"
---

# POST /abdm/v1/consents/create

`POST /abdm/v1/consents/create`

## Headers

- `X-Pt-Id` string
- `X-Partner-Pt-Id` string
- `X-Hip-Id` string

## Request body

- ConsentCreateConsentRequest
  - `appointment_id` string
  - `care_contexts` CommonsCareContextIdentifier[]
    - `cc_ref` string
    - `patient_ref` string
  - `hip_identifier` CommonsHipIdentifier
    - `id` string
    - `name` string
  - `hiu` ConsentEkaHiuIdentifier
    - `clinic_id` string
    - `d_oid` string
    - `requester` ConsentRequester
      - `identifier` ConsentRequesterIden
        - `system` string
        - `type` string
        - `value` string
      - `name` string
  - `patient` CommonsEkaPatientReference
    - `health_id` string
    - `oid` string
  - `period` CommonsPeriodWithExpiry
    - `expiry` string, date-time
    - `from` string, date-time
    - `to` string, date-time
  - `purpose` 'Self Requested' | 'Care management' | 'Public Health' | 'Disease Specific Health Research'
  - `record_types` string[] — Available options: OPConsultation, Prescription, DischargeSummary, DiagnosticReport, ImmunizationRecord, HealthDocumentRecord, WellnessRecord Invoice

## Response `204`

No Content

- ConsentCreateConsentResponse
  - `consent_init_id` string

## Other responses

- `4XX`
- `5XX`

---

[API](https://skmtc.net/eka/apis/eka-developer-apis.md) · [All operations](https://skmtc.net/eka/apis/eka-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eka/eka-developer-apis/versions/9ea23456f722/schema)
