Skip to main content

Setup your development environment

Learn how to set up your environment and start using the CPGRAMS Simulation API for the Maker Residency 2025 program.

API Access and Authentication

To access the CPGRAMS Simulation API, you’ll need an API key. You can generate your API key by following these steps:
  1. Visit https://grm-unkey.vercel.app/
  2. Log in to the platform
  3. Create a new API key
By default, the generated API keys have access to all available APIs in the system.Your API key should be included in all API requests to the server in a header that looks like the following:
Authorization: Bearer YOUR_API_KEY
Once you have your API key, you can make your first API call. Here’s an example using curl to get the list of users:
curl -X GET \
  https://api.cpgrams-simulation.opennyai.org/users \
  -H 'Authorization: Bearer YOUR_API_KEY'
Or using JavaScript fetch:
fetch('https://api.cpgrams-simulation.opennyai.org/users', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Core API Functionality

The API provides endpoints for creating, retrieving, and managing users with different roles:
  • Citizens: Regular users who can submit grievances
  • Officers: Government officials who handle grievances
  • Admins: System administrators with full access
View User Management API →
Citizens can submit grievances through the API, providing details such as:
  • Grievance category and subcategory
  • Description of the issue
  • Supporting documents
  • Personal information
View Grievance Submission API →
Officers can update the status of grievances and assign them to other officers. The API supports the complete grievance lifecycle from submission to resolution.View Status Update API →

Building with the API

The CPGRAMS Simulation API is designed to help you build innovative solutions for public grievance redressal in India. Here are some key resources to get you started:

Innovation Showcase

The Maker Residency will culminate in a final-day event on June 6, 2025, featuring:
  • Live demos of tools in action
  • Impact narratives from citizens and GROs
  • Engagement with DARPG, PMO, funders, and civic leaders
  • Launch of public-facing materials and Digital Public Goods