Skip to main content

Get Approval Stage Comments

Retrieve a paginated list of comments posted on a specific approval stage, ordered from oldest to newest.

URL: GET /api/v1/approval/{id}/stage/{stage_number}/comment

URL Example: http://172.16.15.185/api/v1/approval/118/stage/1/comment

Path Variables

VariableTypeDescription
{id}longApproval ID.
{stage_number}intStage number.
Comment Ordering

Comments are returned in ascending order by createdAt (oldest first).

Request Headers

KeyDescription
AuthorizationBearer {access token obtained after authorization}
Content-Typeapplication/json

Example Request

curl --location 'http://172.16.15.185/api/v1/approval/118/stage/1/comment' \
--header 'Authorization: Apikey wGjCygm6LvI7J1LT%40HHW%2Bs0ighXw7TeP5biyBL1uvBkzRnKMidKLUsz%2FIHEIn9w%3D%3D'

Example Response (200 OK)

{
"objectList": [
{
"id": 858,
"comment": "Approved Note : approve",
"commentBy": "Rosy",
"createdAt": 1786692992565
},
{
"id": 861,
"comment": "The ticket is valid and will taken on priority.",
"commentBy": "Rosy",
"createdAt": 1786699193432
}
],
"totalCount": 2
}

Response Fields

FieldTypeDescription
objectListarrayPaginated list of comment objects.
totalCountintTotal number of comments on the stage.
idlongUnique comment ID.
commentstringComment text.
commentBystringDisplay name of the user who posted the comment.
createdAtlong or stringWhen the comment was posted. Epoch milliseconds by default; formatted string when ?pretty=true is set.

Error Responses

ScenarioHTTP StatusWhen It Occurs
Invalid {id} (less than or equal to 0)400 Bad RequestA negative or zero approval ID was provided.
Stage not found400 Bad RequestNo stage with the given stage_number exists on the approval.
Unauthorized401 UnauthorizedSession expired or no valid credentials were provided.