From d9d264c65c799850eb61cd9788614bd8159c5ddf Mon Sep 17 00:00:00 2001 From: Shyamjith Palakkandy Date: Wed, 26 Nov 2025 15:48:49 +0530 Subject: [PATCH 1/2] abha search --- .../abdm-connect/profile/search/search.mdx | 4 ++ .../user-app/abdm-connect/registration.yml | 66 +++++++++++++++++++ docs.json | 1 + 3 files changed, 71 insertions(+) create mode 100644 api-reference/user-app/abdm-connect/profile/search/search.mdx diff --git a/api-reference/user-app/abdm-connect/profile/search/search.mdx b/api-reference/user-app/abdm-connect/profile/search/search.mdx new file mode 100644 index 00000000..4b6a9abf --- /dev/null +++ b/api-reference/user-app/abdm-connect/profile/search/search.mdx @@ -0,0 +1,4 @@ +--- +openapi: get /abdm/v1/profile/search +title: Search ABHA +--- \ No newline at end of file diff --git a/api-reference/user-app/abdm-connect/registration.yml b/api-reference/user-app/abdm-connect/registration.yml index 2c8bc379..09fb0b64 100644 --- a/api-reference/user-app/abdm-connect/registration.yml +++ b/api-reference/user-app/abdm-connect/registration.yml @@ -3477,6 +3477,50 @@ paths: description: OK security: - authApiKey: [] + /abdm/v1/profile/search: + get: + description: Search KYCed ABHA profiles using mobile number + parameters: + - description: Eka User ID (OID) + in: header + name: X-Pt-Id + schema: + type: string + - description: Partner User ID + in: header + name: X-Partner-Pt-Id + schema: + type: string + - description: Partner HIP ID + in: header + name: X-Hip-Id + schema: + type: string + - in: query + name: mobile + schema: + type: string + responses: + 4XX: + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + 5XX: + content: + application/json: + schema: + $ref: '#/components/schemas/GenericError' + description: "" + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ProfileDiscoverAbhaResponse' + description: OK + security: + - authApiKey: [] /abdm/v1/profile/share: post: description: Fetch the token from a hospital. Get the hip_id and counter_id @@ -4715,6 +4759,17 @@ components: format: date-time type: string type: object + DiscoverAbha: + properties: + ABHANumber: + type: string + gender: + type: string + index: + type: integer + name: + type: string + type: object DiscoverCareContext: properties: display: @@ -6121,6 +6176,17 @@ components: - Jharkhand type: string type: object + ProfileDiscoverAbhaResponse: + properties: + abha: + items: + $ref: '#/components/schemas/DiscoverAbha' + type: + - array + - "null" + txnId: + type: string + type: object ProfileResponse: properties: abha_address: diff --git a/docs.json b/docs.json index ad954875..3336bf80 100644 --- a/docs.json +++ b/docs.json @@ -560,6 +560,7 @@ "icon": "user", "pages": [ "api-reference/user-app/abdm-connect/profile/getting-started", + "api-reference/user-app/abdm-connect/profile/search/search", "api-reference/user-app/abdm-connect/profile/cards/qr-code", "api-reference/user-app/abdm-connect/profile/cards/abha-card", "api-reference/user-app/abdm-connect/profile/details/profile-details", From 78a1f83d6909289d9108ce368d2bd42ccdd13f22 Mon Sep 17 00:00:00 2001 From: Shyamjith Palakkandy Date: Wed, 26 Nov 2025 15:53:43 +0530 Subject: [PATCH 2/2] lint --- api-reference/user-app/abdm-connect/registration.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api-reference/user-app/abdm-connect/registration.yml b/api-reference/user-app/abdm-connect/registration.yml index 09fb0b64..ce6fee74 100644 --- a/api-reference/user-app/abdm-connect/registration.yml +++ b/api-reference/user-app/abdm-connect/registration.yml @@ -4762,12 +4762,20 @@ components: DiscoverAbha: properties: ABHANumber: + examples: + - xx-xxxx-xxxx-1525 type: string gender: + examples: + - M type: string index: + examples: + - 1 type: integer name: + examples: + - John Doe type: string type: object DiscoverCareContext: