Endpoint Examples
Get User Grievances
Get all grievances for a specific user with pagination support
GET
Retrieves all grievances associated with a specific user, with support for pagination. This endpoint allows you to fetch either all grievances for a user or paginate through them using the query parameters.
Pagination
The endpoint supports the following query parameters for pagination:
fetch_all
(boolean): When set totrue
, returns all grievances for the user without pagination. Default isfalse
.page
(integer): The page number to retrieve. Default is 1.size
(integer): Number of grievances per page. Default is 10, maximum is 100.
Response
The response includes:
status
: Operation statustotal
: Total number of grievances for the userpage
: Current page numbersize
: Number of items per pagegrievances
: Array of grievance objects with complete details
If the user is not found, a 404 error is returned.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID of the user whose grievances to fetch
Query Parameters
Whether to fetch all grievances or paginate
Page number for pagination
Required range:
x >= 1
Number of items per page
Required range:
1 <= x <= 100
Response
200
application/json
List of user grievances
The response is of type object
.