CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Government & Public Sector

πŸ›οΈ Government & Public Sector Β· Sequence

Aadhaar-Style Identity Verification

How a service verifies a person's identity with a national ID and OTP (e-KYC), with consent and without storing the ID number.

More Government & Public Sector templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • The user gives explicit consent before verification
  • OTP goes to the mobile linked with the national ID
  • The service stores a reference token, not the ID number

Prompt used

Identity verification sequence: the user enters their national ID number and gives consent, the service's authentication agency (ASA/AUA) forwards the request to the national ID authority, which sends an OTP to the linked mobile, the user enters the OTP, the authority returns a yes/no plus e-KYC data (name, address, photo) signed digitally, and the service stores only a reference token and the verified details.

Mermaid code
sequenceDiagram
  actor U as User
  participant S as Service Portal
  participant A as Authentication Agency
  participant ID as National ID Authority
  U->>S: Enter ID number, give consent
  S->>A: e-KYC request
  A->>ID: Request OTP
  ID-->>U: OTP to linked mobile
  U->>S: Enter OTP
  S->>A: Verify OTP
  A->>ID: Authenticate
  ID-->>A: Verified, signed e-KYC data
  A-->>S: Name, address, photo
  S->>S: Store reference token, not ID number
  S-->>U: Identity verified

Inside this diagram

A sequence diagram with 4 participants and 11 messages, in the order they happen.

People

  • User

Systems

  • Service Portal
  • Authentication Agency
  • National ID Authority

Steps in order

  • 1. User β†’ Service Portal: Enter ID number, give consent
  • 2. Service Portal β†’ Authentication Agency: e-KYC request
  • 3. Authentication Agency β†’ National ID Authority: Request OTP
  • 4. National ID Authority β†’ User: OTP to linked mobile (reply)
  • 5. User β†’ Service Portal: Enter OTP
  • 6. Service Portal β†’ Authentication Agency: Verify OTP
  • 7. Authentication Agency β†’ National ID Authority: Authenticate
  • 8. National ID Authority β†’ Authentication Agency: Verified, signed e-KYC data (reply)
  • 9. Authentication Agency β†’ Service Portal: Name, address, photo (reply)
  • 10. Service Portal β†’ Service Portal: Store reference token, not ID number
  • 11. Service Portal β†’ User: Identity verified (reply)

Make your own diagram like this

Describe your own system in plain English and the AI sequence diagram generator draws it in seconds, in the same style as this template.

Related templates

C4 ArchitectureProGovernment & Public Sector

Citizen Services Portal Architecture

A single online portal where citizens apply for government services: identity login, a service catalogue, document storage and payments to the treasury.

FlowchartGovernment & Public Sector

Permit and Licence Approval Workflow

How a building permit or trade licence application moves through a government office: scrutiny, site inspection, fees and the final certificate.

SequenceGovernment & Public Sector

Online Tax Return Filing

How a taxpayer files an income tax return online: pre-filled data, computation, payment of any balance tax and e-verification.

State MachineGovernment & Public Sector

Public Grievance Redressal Lifecycle

The states of a citizen complaint in a public grievance system: registration, assignment to a department, resolution, citizen feedback and escalation.

Database ERDGovernment & Public Sector

Land Records Database Schema

A schema for digitised land records: parcels with survey numbers, owners and shares, mutations, encumbrances and map references.

C4 ArchitectureProGovernment & Public Sector

Integrated Command and Control Centre

A city's integrated command and control centre (ICCC): one operations room that brings together traffic, surveillance, emergency response and utilities.