Summary of "#ABDM M1 milestone API Integration Workflow"

Summary of the video (Milestone 1 ABDM API Integration Workflow)

The video walks through the API workflow and integration steps for ABDM Milestone 1, focusing on how to create, verify, and retrieve ABHA (Ayushman Bharat Digital Mission identifiers and profiles), and how to use Scan & Share to exchange patient profile data securely between systems.


1) ABDM ecosystem basics (concepts + roles)


2) Where to find integration guidance (tutorial workflow)

The speaker instructs viewers to use the ABDM sandbox website documentation:


3) UI walkthrough (ABHA creation)

Key UI behaviors described:


4) Postman setup (integration tooling)


5) API walkthrough: ABHA enrollment via Aadhaar (Milestone 1)

The workflow is presented as sequential API calls for enrollment, using encryption + session token + OTP verification + profile creation.

A. Retrieve public key (for encryption)

B. Create a session (get access token)

C. Enrollment step-by-step (OTP request + verify + profile creation)

  1. Request OTP (Aadhaar OTP)

    • POST with Bearer token authorization
    • Body contains:
      • scope = abha enroll
      • login_hint = encrypted Adar/Aadhaar
      • otp_system = Adar
  2. Encrypt Aadhaar/OTP values

    • Demo tool described:
      • Use RSA encryption with:
        • RSA key type
        • public key retrieved earlier
        • algorithm using SHA1 + MGF1 padding
      • Output is encrypted Aadhaar/OTP used in API bodies
  3. Verify OTP (link Aadhaar to ABHA enrollment)

    • POST with Bearer token
    • Body includes OTP verification block:
      • OTP method = OTP
      • includes txn ID from request OTP response
      • OTP value = encrypted OTP
      • mobile field included to ensure OTP destination
      • code = abha enrollment
      • protocol version stated as 1.4
    • Handles “account already exists” vs “new user” behaviors.
  4. Mobile update: send OTP (for updating communication mobile)

    • POST (same endpoint as OTP flow but different body fields)
    • Body changes:
      • scope includes mobile verify
      • login_hint = encrypted mobile
      • otp_system updated to follow ABDM process
    • Expects 200 OK + txn ID, OTP sent to entered mobile.
  5. Mobile update: verify OTP

    • POST with OTP verification:
      • scope includes mobile verify
      • OTP value = encrypted OTP
    • On success → mobile linked and ABHA details returned (as described).
  6. Email verification

    • POST to verify email via a verification link
    • Uses X-token from OTP verification response
    • Body includes:
      • emailing query (email verification query)
      • login_hint = encrypted email
      • otp_system = abdm
  7. Fetch ABHA address suggestions

    • GET request
    • Requires txn/request headers (no body)
    • Errors mapped:
      • invalid access token → “unclassified authentication failure”
      • invalid txn ID → “invalid transaction ID”
  8. Confirm ABHA address

    • POST
    • Body includes:
      • txn ID
      • chosen ABHA address
      • preferred = one to indicate selection
  9. Retrieve full profile

    • GET profile details
    • Uses x-token from token response section
    • Returns ABHA number/address, name, DOB, mobile, gender, photo, full address, creation date
  10. Download ABHA card

    • Uses “account / ABHA card” endpoint
    • Returns the card in response

6) ABHA verification methods (authentication options)

The video lists five verification scenarios for ABHA authentication:

  1. Adhaar OTP
  2. ABHA OTP
  3. Password
  4. Mobile number verification
  5. Adhaar verification (Adar)

It then demonstrates the Adhaar OTP-based login/verification flow:


7) Profile management & benefit APIs (overview)

The video mentions additional APIs and that some are handled earlier in the flow:


8) Scan & Share functionality (patient data sharing via QR)

Purpose

Allow a patient to share basic profile information with healthcare facilities via QR code and consent/token flow.

HIP/Facility registration prerequisites (important steps)

Before Scan & Share:

API flow described

  1. Create session (already covered earlier)
  2. Update bridge URL
    • POST with access token
    • Requires xcm ID = SBX along with request ID/timestamp
    • Returns 202 Accepted
  3. Bridge service API (verify callback/registration)
    • GET with access token
    • Confirms registered HIP/callback URLs

QR code generation & token validity

Callback + data retrieval (10-second rule)

Consent UI in PHR app


Main speakers/sources

Category ?

Technology


Share this summary


Is the summary off?

If you think the summary is inaccurate, you can reprocess it with the latest model.

Video