For the complete documentation index, see llms.txt. This page is also available as Markdown.

Approvals [Beta]

List pending pipeline approvals for the activities in a scope

get

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.

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

myApprovalsbooleanOptional

When true, returns only approvals for activities triggered by the calling user. Equivalent to requestedBy=.

Default: false
pendingOnMebooleanOptional

When true, returns only approvals the calling user may act on (pending on the caller).

Default: false
requestedBystringOptional

When set, returns only approvals for activities triggered by this user identifier.

pendingOnUserIdstringOptional

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.

pendingOnOthersbooleanOptional

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.

Default: false
nextCursorstringOptional

Opaque forward cursor returned by the previous page's nextCursor field. Omit for the first page.

previousCursorstringOptional

Opaque backward cursor returned by the previous page's prevCursor field. Pass to navigate backward.

sortstringOptional

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.

sizeintegerOptional

Maximum number of approvals to return per page

Default: 20
Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Pending approvals for the waiting pipeline activities in the given scope

application/json

Cursor-paginated list of pending approvals

currentSizeintegerOptional

Number of items in this page

hasMorebooleanOptional

Whether additional pages are available

nextCursorstringOptional

Opaque forward cursor. Pass as nextCursor on the next request to continue pagination. Absent when hasMore is false.

prevCursorstringOptional

Opaque cursor for the previous backward page. Pass as previousCursor on the next request to navigate backward. Absent when this is the first page.

get/approvals/pending
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?