Complaint Management
Explore how the WSO2 DPDP Accelerator supports complaint management, from submission by a Data Principal to investigation and resolution by a Data Protection Officer (DPO). The example continues the CarePulse (Data Fiduciary) story: Priya raises a complaint, and Ravi handles it.
For the complete list of endpoints and schemas, see the Complaint Server API specification.
Before you begin
- Ensure WSO2 Identity Server with the DPDP Accelerator is installed and running.
- Create these users and assign their roles, as described in Configuring Users and Roles:
- Priya (Data Principal), username
priya@example.com:dpdp-consent-user - Ravi (Data Protection Officer), username
ravi@example.com:dpdp-consent-dpo
- Priya (Data Principal), username
- Create one application for CarePulse and authorize it for the DPDP Complaint Management API, with the
complaints:read:anyandcomplaints:write:anyscopes.
This guide primarily uses the Consent Portal. REST API examples are also provided for the officer's operations.
Before running the API examples, set the base URL and access token. Obtain a client-credentials token using the CarePulse application's credentials, with the complaints:read:any and complaints:write:any scopes.
export BASE_URL="https://localhost:9443"
export ACCESS_TOKEN="<carepulse-client-credentials-token>"
The base URL is for the super tenant. For a specific tenant, use https://localhost:9443/t/<tenant-domain>.
Add -k to the curl commands if your local Identity Server uses the default self-signed certificate. Never use -k in production — configure a trusted CA certificate, or pass it with --cacert.
Step 1: Submit a complaint as Priya (Data Principal)
-
Sign in to the Consent Portal as Priya and open Complaints → My Complaints.
-
Select + Submit a complaint and enter the details:
- Category: for example, Consent withdrawal issue.
- Description: explain the issue without including unnecessary sensitive personal data. For example: "I revoked my consent for marketing purposes, but I am still receiving promotional messages."
- Attachments (optional): upload one file as supporting evidence, such as a screenshot. Supported formats are PNG, JPG, PDF, and DOCX, up to 10 MB. You can add more evidence later in follow-up messages, one file per message.
-
Select Submit complaint.

-
Confirm that the complaint appears in My Complaints with a reference ID (for example,
CMP-2026-00001), status, and submission date.
-
Open the complaint to review its status and statutory due date. The Activity tab shows the timeline and supports public follow-up messages; the Attachments tab lists the submitted evidence.

An application can also submit a complaint on Priya's behalf, using her own user token, through POST /api/dpdp/complaints/v1/me/complaints. See the Complaint Server API specification for the request format.
Step 2: Investigate and communicate as Ravi (Data Protection Officer)
Using the Consent Portal
-
Sign in as Ravi and open Administration → Complaints.

-
Find the complaint by its reference ID and open it.
-
Review the complaint details, due date, and evidence in the Attachments tab.
-
Use Reply to send a message visible to Priya, such as "We are reviewing your request." Use Internal note for investigation notes that only officers can see.

-
Sign back in as Priya and verify that the public reply appears in the activity timeline and the internal note is not visible.
Using the REST API (optional)
Use the CarePulse application's client-credentials token for officer-level requests. The token must include the complaints:read:any and complaints:write:any scopes. Replace <complaint-id> with the complaint's ID.
Retrieve the complaint details, including Priya's description and any associated attachments:
curl \
"${BASE_URL}/api/dpdp/complaints/v1/complaints/<complaint-id>" \
-H "Authorization: Bearer ${ACCESS_TOKEN}"
Post a public reply and move the complaint to IN_PROGRESS in one request:
curl -X POST \
"${BASE_URL}/api/dpdp/complaints/v1/complaints/<complaint-id>/comments" \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"message": "We are reviewing your request.",
"isPublic": true,
"toStatus": "IN_PROGRESS"
}'
To add an internal note instead, set "isPublic": false. Internal notes are visible to officers only.
Step 3: Resolve the complaint
-
As Ravi, open the complaint and use the status menu beside the comment composer.
-
Select Resolved, enter a final message describing the outcome, and submit it.
-
Confirm that the complaint shows Resolved.

-
Sign back in as Priya and verify that the resolution message and status appear in My Complaints.
To resolve the complaint through the API, send the same comments request with "toStatus": "RESOLVED" and a message describing the outcome. A message is required when resolving.
Next Steps
- Learn: Understanding Complaints: the concepts behind complaint handling.
- Try Out: Event Notifications: notify connected systems when a consent changes.
- Developer Guide: Grievances: full API details, attachment limits, and email template customization.