For Agents
Route consent requests, care-context discovery, and health-data flows between Indian Consent Managers, Health Information Providers, and Health Information Users on the NDHM network.
Get started with Gateway in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"initiate ndhm patient consent request"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with Gateway API.
Discover patient care contexts across registered Health Information Providers
Initiate consent requests on behalf of Health Information Users
Notify HIPs and HIUs of consent grant, revocation, and expiry events
Coordinate health-data transfer flows including encryption key exchange
Resolve patient identifiers to ABHA Health IDs for cross-provider linkage
GET STARTED
Use for: I need to initiate a consent request for a patient's lab reports, Discover care contexts for a patient across HIPs, Notify a HIP that consent was granted by the patient, Fetch a consent artefact by its ID
Not supported: Does not host patient records, issue ABHA Health IDs, or run the patient-facing consent UI — use for orchestration of discovery, consent, and data flows between HIPs, HIUs, and CMs only.
Jentic publishes the only available OpenAPI specification for Gateway, keeping it validated and agent-ready.
Jentic publishes the only available OpenAPI specification for Gateway, keeping it validated and agent-ready. The NDHM Gateway is the central hub of India's National Digital Health Mission that routes interactions between Consent Managers (CMs), Health Information Providers (HIPs), and Health Information Users (HIUs). The 48-endpoint surface covers care-context discovery, account linking, consent flows, health-data flow, identification, and monitoring — split across CM-facing, HIP-facing, and HIU-facing roles. Authorisation uses signed JWTs distributed via the Gateway's openid-configuration and certs endpoints.
Provide JWT verification certificates and OpenID configuration for relying parties
Patterns agents use Gateway API for, with concrete tasks.
★ Cross-Provider Health Record Discovery
An HIU (e.g., a teleconsultation app) queries the NDHM Gateway to discover which HIPs hold records for a patient identified by ABHA. POST /v0.5/care-contexts/discover broadcasts the request and HIPs respond asynchronously through /on-discover. This replaces ad-hoc point-to-point integrations between hospitals and apps.
Call POST /v0.5/care-contexts/discover with the patient's ABHA identifier and listen for the corresponding /on-discover callback
Consent-Based Data Sharing Workflow
An HIU requests consent from a Consent Manager to access patient records for a specific HIP and date range. POST /v0.5/consent-requests/init starts the flow, the patient grants or denies via the CM app, and POST /v0.5/consents/hiu/notify delivers the consent artefact when granted. The Gateway orchestrates the full lifecycle including status checks via /consent-requests/status.
Call POST /v0.5/consent-requests/init with the HIU id, purpose, and time range; poll /v0.5/consent-requests/status until the artefact is available
Health Information Transfer Coordination
Once consent is granted, the Gateway coordinates the encrypted health-information transfer between HIP and HIU including key exchange and delivery notifications. The data-flow endpoints publish lifecycle events that auditors and analytics pipelines subscribe to. Built around the NDHM data-flow protocol.
Listen for /v0.5/health-information/notify events with status DATA_DELIVERED and reconcile against the original consent artefact
Agent-Driven NDHM Integration
Health-tech teams use AI agents through Jentic to bootstrap an integration with the NDHM Gateway. The agent searches for the right consent or discovery endpoint, loads its schema, and submits the request, while Jentic handles the JWT-based bearer authorisation. Useful for building proof-of-concept HIUs and HIPs.
Search Jentic for 'initiate NDHM consent request' and execute POST /v0.5/consent-requests/init with the required HIU and patient fields
48 endpoints — jentic publishes the only available openapi specification for gateway, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/v0.5/care-contexts/discover
Discover patient accounts across HIPs
/v0.5/consent-requests/init
Create a consent request
/v0.5/consents/fetch
Fetch a consent artefact
/v0.5/consents/hiu/notify
Notify HIU of consent decision
/v0.5/.well-known/openid-configuration
Get OpenID configuration
/v0.5/certs
Get JWT verification certificates
/v0.5/care-contexts/discover
Discover patient accounts across HIPs
/v0.5/consent-requests/init
Create a consent request
/v0.5/consents/fetch
Fetch a consent artefact
/v0.5/consents/hiu/notify
Notify HIU of consent decision
/v0.5/.well-known/openid-configuration
Get OpenID configuration
Three things that make agents converge on Jentic-routed access.
Credential isolation
JWT signing keys and Gateway client credentials are stored encrypted in the Jentic vault. Agents receive scoped execution tokens — private keys and raw bearer tokens never enter the agent's context.
Intent-based discovery
Agents search by intent (e.g., 'initiate NDHM consent request') and Jentic returns POST /v0.5/consent-requests/init with its schema, so the agent supplies HIU id and purpose without browsing 48 paths across CM, HIP, and HIU roles.
Time to first call
Direct NDHM Gateway integration: 2-4 weeks including JWT setup, callback servers, and certification testing. Through Jentic: under a day to wire up the search, load, execute pattern for the core consent and discovery flows.
Alternatives and complements available in the Jentic catalogue.
NDHM Health Data Consent Manager
The CM-facing counterpart of the Gateway — implements the patient-facing consent and account-linking flow.
Use the Gateway for HIU-side orchestration; use the Health Data Consent Manager when building a patient-facing CM application.
NDHM Health ID Service
Issues and manages the ABHA Health ID that the Gateway uses to identify patients.
Use Health ID Service to create or look up ABHA records; use the Gateway for the discovery, consent, and data-flow lifecycle that follows.
NDHM HIP Specifications
Defines the HIP-side endpoints that pair with Gateway HIP-facing operations.
Implement the HIP spec when your service holds patient records; use the Gateway as the orchestrator.
Specific to using Gateway API through Jentic.
Why is there no official OpenAPI spec for Gateway?
NDHM does not publish a maintained OpenAPI specification — only Markdown reference docs and a deprecated apis.guru import. Jentic generates and maintains this spec so that AI agents and developers can call Gateway via structured tooling. It is validated against the live API and kept up to date. Get started at https://app.jentic.com/sign-up.
What authentication does the NDHM Gateway use?
The Gateway uses signed JWTs issued through its OpenID-style flow. Clients fetch the public verification certificates from GET /v0.5/certs and validate Gateway-issued tokens against them. The OpenAPI spec leaves `securitySchemes` empty because authorisation is handled at the JWT layer rather than via standard HTTP schemes.
Can I initiate a consent request through this API?
Yes. POST /v0.5/consent-requests/init starts a consent request as an HIU. The Consent Manager then prompts the patient and notifies the HIU via POST /v0.5/consents/hiu/notify when the artefact is ready, or your service can poll /v0.5/consent-requests/status.
What are the rate limits for the NDHM Gateway?
NDHM does not publish hard rate limits in the spec. The sandbox at dev.ndhm.gov.in applies fair-use throttling appropriate for development and certification testing. Production rate limits depend on the client's onboarding tier with the National Health Authority.
How do I discover patient care contexts through Jentic?
Search Jentic for 'discover NDHM care contexts', load the schema for POST /v0.5/care-contexts/discover, and execute with the patient's ABHA identifier. The Gateway broadcasts to registered HIPs and your callback URL receives /on-discover responses.
Is the NDHM Gateway free to use?
Yes. The Gateway is operated by India's National Health Authority and is free for accredited HIUs, HIPs, and CMs. Production access requires onboarding and certification through the NHA.
/v0.5/certs
Get JWT verification certificates