> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/release-orchestration/api-reference/approvals-beta.md).

# Approvals \[Beta]

## List pending pipeline approvals for the activities in a scope

> 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.

```json
{"openapi":"3.0.0","info":{"title":"rms","version":"1.0"},"tags":[{"name":"Approvals"}],"servers":[{"url":"/api"}],"paths":{"/approvals/pending":{"get":{"description":"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.","operationId":"ListPendingApprovals","parameters":[{"$ref":"#/components/parameters/AccountParam"},{"$ref":"#/components/parameters/OrgParam"},{"$ref":"#/components/parameters/ProjectParam"},{"description":"When true, returns only approvals for activities triggered by the calling user. Equivalent to requestedBy=<callerId>.","in":"query","name":"myApprovals","schema":{"default":false,"type":"boolean"}},{"description":"When true, returns only approvals the calling user may act on (pending on the caller).","in":"query","name":"pendingOnMe","schema":{"default":false,"type":"boolean"}},{"description":"When set, returns only approvals for activities triggered by this user identifier.","in":"query","name":"requestedBy","schema":{"type":"string"}},{"description":"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.","in":"query","name":"pendingOnUserId","schema":{"type":"string"}},{"description":"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.","in":"query","name":"pendingOnOthers","schema":{"default":false,"type":"boolean"}},{"description":"Opaque forward cursor returned by the previous page's nextCursor field. Omit for the first page.","in":"query","name":"nextCursor","schema":{"type":"string"}},{"description":"Opaque backward cursor returned by the previous page's prevCursor field. Pass to navigate backward.","in":"query","name":"previousCursor","schema":{"type":"string"}},{"description":"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.","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Maximum number of approvals to return per page","in":"query","name":"size","schema":{"default":20,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingApprovalList"}}},"description":"Pending approvals for the waiting pipeline activities in the given scope"},"400":{"$ref":"#/components/responses/ErrorResponse"},"403":{"$ref":"#/components/responses/ErrorResponse"},"500":{"$ref":"#/components/responses/ErrorResponse"}},"summary":"List pending pipeline approvals for the activities in a scope","tags":["Approvals"]}}},"components":{"parameters":{"AccountParam":{"description":"Account Identifier","in":"header","name":"Harness-Account","required":true,"schema":{"type":"string"}},"OrgParam":{"description":"Organisation Identifier","in":"query","name":"orgIdentifier","schema":{"type":"string"}},"ProjectParam":{"description":"Project Identifier","in":"query","name":"projectIdentifier","schema":{"type":"string"}}},"schemas":{"PendingApprovalList":{"description":"Cursor-paginated list of pending approvals","properties":{"content":{"items":{"$ref":"#/components/schemas/PendingApproval"},"type":"array"},"currentSize":{"description":"Number of items in this page","type":"integer"},"hasMore":{"description":"Whether additional pages are available","type":"boolean"},"nextCursor":{"description":"Opaque forward cursor. Pass as nextCursor on the next request to continue pagination. Absent when hasMore is false.","type":"string"},"prevCursor":{"description":"Opaque cursor for the previous backward page. Pass as previousCursor on the next request to navigate backward. Absent when this is the first page.","type":"string"}},"type":"object"},"PendingApproval":{"description":"A pipeline approval that is waiting, together with the RMG execution it belongs to","properties":{"accountIdentifier":{"description":"Account the pipeline execution belongs to","type":"string"},"approvalId":{"description":"Identifier of the approval instance in the pipeline service","type":"string"},"approvalMessage":{"type":"string"},"createdAt":{"format":"int64","type":"integer"},"deadline":{"description":"Epoch millis after which the approval expires","format":"int64","type":"integer"},"errorMessage":{"type":"string"},"executionContext":{"$ref":"#/components/schemas/PendingApprovalExecutionContext"},"lastModifiedAt":{"format":"int64","type":"integer"},"nodeExecutionId":{"description":"Node execution ID in the pipeline execution graph","type":"string"},"orgIdentifier":{"description":"Organisation the pipeline execution belongs to","type":"string"},"pipelineIdentifier":{"type":"string"},"planExecutionId":{"description":"Pipeline plan execution the approval belongs to","type":"string"},"projectIdentifier":{"description":"Project the pipeline execution belongs to","type":"string"},"runSequence":{"description":"Sequential run number of the pipeline execution","type":"integer"},"stageIdentifier":{"description":"Pipeline stage identifier containing the approval step","type":"string"},"status":{"description":"Approval instance status, e.g. WAITING","type":"string"},"stepIdentifier":{"description":"Pipeline step identifier for the approval step","type":"string"},"triggeredBy":{"$ref":"#/components/schemas/TriggeredByDTO"},"type":{"description":"Approval type, e.g. HARNESS_APPROVAL, JIRA_APPROVAL","type":"string"}},"required":["approvalId","type","status","planExecutionId","executionContext"],"type":"object"},"PendingApprovalExecutionContext":{"properties":{"activityExecutionId":{"description":"Activity execution that is waiting for the approval","type":"string"},"activityId":{"description":"Identifier (slug) of the activity definition","type":"string"},"activityName":{"description":"Name of the activity","type":"string"},"orgId":{"type":"string"},"parentActivityExecutionId":{"description":"Parent activity execution, present only for grouped activities","type":"string"},"parentPhaseExecutionId":{"description":"Parent phase execution, present only for nested phases","type":"string"},"phaseExecutionId":{"description":"Phase execution the waiting activity belongs to","type":"string"},"phaseId":{"description":"Identifier (slug) of the phase definition","type":"string"},"phaseName":{"description":"Name of the phase","type":"string"},"processExecutionId":{"description":"Process execution the waiting activity belongs to","type":"string"},"processId":{"description":"Present when the activity belongs to a directly-triggered process (no release)","type":"string"},"processName":{"description":"Name of the process definition","type":"string"},"projectId":{"type":"string"},"releaseId":{"description":"Present when the activity belongs to a release","type":"string"},"releaseName":{"description":"Human-readable name of the release","type":"string"},"releaseVersion":{"description":"Version label of the release","type":"string"}},"required":["processExecutionId","phaseExecutionId","activityExecutionId"],"type":"object"},"TriggeredByDTO":{"description":"Details of the user who triggered the activity.","properties":{"avatar":{"description":"Avatar URL of the person.","type":"string"},"email":{"description":"Email of the person who triggered the activity.","type":"string"},"id":{"description":"Identifier of the person who triggered the activity.","type":"string"},"name":{"description":"Name of the person who triggered the activity.","type":"string"},"triggerType":{"$ref":"#/components/schemas/TriggerType"}},"type":"object"},"TriggerType":{"description":"Unit of time used for repeating releases.","enum":["MANUAL","WEBHOOK","WEBHOOK_CUSTOM","ARTIFACT","MANIFEST","SCHEDULER_CRON"],"type":"string"},"Error":{"description":"Error Response","properties":{"code":{"description":"canonical error code name","enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","NOT_FOUND","INTERNAL_SERVER_ERROR"],"type":"string"},"explanation":{"description":"additional context about why the error occurred","type":"string"},"governanceMetadata":{"$ref":"#/components/schemas/GovernanceMetadata"},"message":{"description":"error message detail","type":"string"},"probable_fixes":{"description":"suggested actions to resolve the error","items":{"type":"string"},"type":"array"}},"required":["message"],"title":"Error Response","type":"object"},"GovernanceMetadata":{"properties":{"accountId":{"type":"string"},"action":{"type":"string"},"created":{"type":"string"},"deny":{"type":"boolean"},"details":{"items":{"$ref":"#/components/schemas/PolicySetMetadata"},"type":"array"},"entity":{"type":"string"},"id":{"type":"string"},"message":{"type":"string"},"orgId":{"type":"string"},"projectId":{"type":"string"},"status":{"type":"string"},"timestamp":{"type":"string"},"type":{"type":"string"}},"type":"object"},"PolicySetMetadata":{"properties":{"accountId":{"type":"string"},"created":{"type":"string"},"deny":{"type":"boolean"},"description":{"type":"string"},"identifier":{"type":"string"},"orgId":{"type":"string"},"policyMetadata":{"items":{"$ref":"#/components/schemas/PolicyMetadata"},"type":"array"},"policySetId":{"type":"string"},"policySetName":{"type":"string"},"projectId":{"type":"string"},"status":{"type":"string"}},"type":"object"},"PolicyMetadata":{"properties":{"accountId":{"type":"string"},"created":{"type":"string"},"denyMessages":{"items":{"type":"string"},"type":"array"},"error":{"type":"string"},"identifier":{"type":"string"},"orgId":{"type":"string"},"policyId":{"type":"string"},"policyName":{"type":"string"},"projectId":{"type":"string"},"severity":{"type":"string"},"status":{"type":"string"},"updated":{"type":"string"}},"type":"object"}},"responses":{"ErrorResponse":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error Response body"}}}}
```
