---
title: "Care context linking"
method: POST
path: "/abdm/v1/care-contexts/link"
---

# Care context linking

`POST /abdm/v1/care-contexts/link`

This API is used by HIP to link care contexts.

## Headers

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

## Request body

- LinkCareContextLinkingRequest
  - `abha_address` string
  - `care_contexts` LinkCareContextMeta[]
    - `care_context_id` string
    - `data` string — Base64 encoded ABDM compliant FHIR bundle (optional, required if not opting for webhook based implementation)
    - `display` string
    - `hi_type` 'OPConsultation' | 'Prescription' | 'DischargeSummary' | 'DiagnosticReport' | 'ImmunizationRecord' | 'HealthDocumentRecord' | 'WellnessRecord'
    - `hi_types` string[] — List of HI types if care context fhir bundle is present in data field
  - `oid` string
  - `partner_user_id` string

## Response `202`

Accepted

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