Complete reference for integrating MedGrid with government portals, HMIS systems, and pharmacy ERPs.
All requests require Bearer token in Authorization header
Authorization: Bearer YOUR_API_KEYAll endpoints are relative to
https://api.medgrid.india/v1API requests are rate-limited
1000 requests/hour/api/integrations/government/syncSync shortage data with government health portals
{
"success": true,
"synced": 15,
"timestamp": "2026-01-11T10:30:00Z"
}/api/integrations/hmis/ingestIngest patient demand and bed occupancy data from HMIS
{
"success": true,
"processed": 342,
"predictions": "updated"
}/api/integrations/pharmacy-erp/updateUpdate inventory from pharmacy ERP systems
{
"success": true,
"updated": 284,
"conflicts": 0
}/api/integrations/statusCheck integration connection status
{
"connected": true,
"lastSync": "2026-01-11T10:15:00Z",
"nextSync": "2026-01-11T10:30:00Z"
}400 Bad Request
Invalid parameters or malformed request body
401 Unauthorized
Missing or invalid API key
429 Too Many Requests
Rate limit exceeded. Implement exponential backoff retry strategy
500 Server Error
Contact support with request ID from response headers
Contact our integration support team for custom requirements
integrations@medgrid.india