Skip to main content

Endpoint

GET /v1/dpdp/grievances/:grievanceId

Authentication

Requires a developer API key in the Authorization header.

Request Headers

HeaderValue
AuthorizationBearer <api_key>

Path Parameters

ParameterTypeRequiredDescription
grievanceIdstringYesThe grievance ID

Example Request

curl https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/dpdp/grievances/grv_01HXYZ... \
  -H "Authorization: Bearer gx_..."

Response — 200 OK

{
  "grievanceId": "grv_01HXYZ...",
  "dataPrincipalId": "user_abc123",
  "recordId": "cr_01HXYZ...",
  "type": "unauthorized-processing",
  "description": "Data was processed beyond the consented purposes",
  "evidence": {
    "observedAction": "marketing emails sent without consent",
    "timestamp": "2026-04-04T10:00:00.000Z"
  },
  "status": "submitted",
  "referenceNumber": "GRV-2026-00042",
  "expectedResolutionBy": "2026-04-12T14:00:00.000Z",
  "resolvedAt": null,
  "resolution": null,
  "createdAt": "2026-04-05T14:00:00.000Z"
}

Response Fields

FieldTypeDescription
grievanceIdstringUnique grievance ID
dataPrincipalIdstringThe data principal who filed the grievance
recordIdstring | nullRelated consent record ID (if applicable)
typestringGrievance type
descriptionstringDetailed description
evidenceobjectSupporting evidence
statusstringCurrent status: submitted, in-progress, resolved, or rejected
referenceNumberstringHuman-readable reference number
expectedResolutionBystringISO-8601 resolution deadline
resolvedAtstring | nullISO-8601 resolution timestamp (if resolved)
resolutionstring | nullResolution details (if resolved)
createdAtstringISO-8601 creation timestamp

Error Responses

StatusCodeDescription
401UNAUTHORIZEDInvalid or missing API key
404NOT_FOUNDGrievance not found

SDK Examples

import Grantex from '@grantex/sdk';

const grantex = new Grantex({ apiKey: 'gx_...' });

const grievance = await grantex.dpdp.getGrievance('grv_01HXYZ...');
// grievance.status → "submitted" | "in-progress" | "resolved" | "rejected"