Approvals [Beta]
Collects the pipeline plan execution IDs of every pipeline activity in the given scope that is waiting for a user action, and returns the approval instances currently pending on them. Scope matching is exact: with no orgIdentifier/projectIdentifier only account-level activities are considered. Results are cursor-paginated; pass the lastSeenId and lastSeenCreatedAt from the previous response to fetch the next page.
Organisation Identifier
Project Identifier
When true, returns only approvals for activities triggered by the calling user. Equivalent to requestedBy=.
falseWhen true, returns only approvals the calling user may act on (pending on the caller).
falseWhen set, returns only approvals for activities triggered by this user identifier.
When set, the pipeline service is asked to return only approvals pending on this specific user identifier (i.e. the user is in the approver list). Distinct from pendingOnMe, which resolves to the calling user.
When true, returns only approvals that are NOT pending on the specified user (pendingOnUserId) or, if pendingOnUserId is absent, NOT pending on the calling user.
falseOpaque forward cursor returned by the previous page's nextCursor field. Omit for the first page.
Opaque backward cursor returned by the previous page's prevCursor field. Pass to navigate backward.
Sort criteria: FIELD,DIRECTION — e.g. DEADLINE,ASC or CREATED_AT,DESC. Valid fields: DEADLINE, CREATED_AT. Valid directions: ASC, DESC. Defaults to DEADLINE,ASC when absent.
Maximum number of approvals to return per page
20Account Identifier
Pending approvals for the waiting pipeline activities in the given scope
Cursor-paginated list of pending approvals
Number of items in this page
Whether additional pages are available
Opaque forward cursor. Pass as nextCursor on the next request to continue pagination. Absent when hasMore is false.
Opaque cursor for the previous backward page. Pass as previousCursor on the next request to navigate backward. Absent when this is the first page.
Error Response body
Error Response body
Error Response body
GET /api/approvals/pending HTTP/1.1
Harness-Account: text
Accept: */*
{
"content": [
{
"accountIdentifier": "text",
"approvalId": "text",
"approvalMessage": "text",
"createdAt": 1,
"deadline": 1,
"errorMessage": "text",
"executionContext": {
"activityExecutionId": "text",
"activityId": "text",
"activityName": "text",
"orgId": "text",
"parentActivityExecutionId": "text",
"parentPhaseExecutionId": "text",
"phaseExecutionId": "text",
"phaseId": "text",
"phaseName": "text",
"processExecutionId": "text",
"processId": "text",
"processName": "text",
"projectId": "text",
"releaseId": "text",
"releaseName": "text",
"releaseVersion": "text"
},
"lastModifiedAt": 1,
"nodeExecutionId": "text",
"orgIdentifier": "text",
"pipelineIdentifier": "text",
"planExecutionId": "text",
"projectIdentifier": "text",
"runSequence": 1,
"stageIdentifier": "text",
"status": "text",
"stepIdentifier": "text",
"triggeredBy": {
"avatar": "text",
"email": "text",
"id": "text",
"name": "text",
"triggerType": "MANUAL"
},
"type": "text",
"userGroups": [
"text"
]
}
],
"currentSize": 1,
"hasMore": true,
"nextCursor": "text",
"prevCursor": "text"
}Last updated
Was this helpful?