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

Reports [Beta]

Download Report

get

Download the generated Excel report. The report must be in COMPLETED status. Returns the Excel file as a binary download.

Path parameters
reportIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Report file download (Excel/XLSX)

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Responsestring · binary
get/release/report/{reportId}/download
GET /api/release/report/{reportId}/download HTTP/1.1
Harness-Account: text
Accept: */*
binary

Get Report Status

get

Get the status of a report generation job. Returns the current status, timestamps, and error information if the job failed.

Path parameters
reportIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Report status information

application/json
completedAtinteger · int64 · nullableOptional
createdAtinteger · int64Optional
errorMessagestring · nullableOptional
reportIdstringRequired
statusstring · enumRequiredPossible values:
totalReleasesinteger · nullableOptional
get/release/report/{reportId}/status
GET /api/release/report/{reportId}/status HTTP/1.1
Harness-Account: text
Accept: */*
{
  "completedAt": 1,
  "createdAt": 1,
  "errorMessage": "text",
  "reportId": "text",
  "status": "PENDING",
  "totalReleases": 1
}

Generate Report for Release

post

Generate an Excel report for a specific release within a time period. The report generation is asynchronous and returns a report job ID that can be used to track status and download the report.

Path parameters
releaseIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
endTsinteger · int64Required

End timestamp in milliseconds (Unix epoch)

startTsinteger · int64Required

Start timestamp in milliseconds (Unix epoch)

Responses
200

Report generation job created successfully

application/json
reportIdstringRequired
statusstring · enumRequiredPossible values:
post/release/{releaseId}/report/generate
POST /api/release/{releaseId}/report/generate HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "endTs": 1,
  "startTs": 1
}
{
  "reportId": "text",
  "status": "PENDING"
}

Generate Report for Release Group

post

Generate an Excel report for all releases in a release group within a time period. The report generation is asynchronous and returns a report job ID that can be used to track status and download the report.

Path parameters
releaseGroupIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
endTsinteger · int64Required

End timestamp in milliseconds (Unix epoch)

startTsinteger · int64Required

Start timestamp in milliseconds (Unix epoch)

Responses
200

Report generation job created successfully

application/json
reportIdstringRequired
statusstring · enumRequiredPossible values:
post/releaseGroup/{releaseGroupId}/report/generate
POST /api/releaseGroup/{releaseGroupId}/report/generate HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "endTs": 1,
  "startTs": 1
}
{
  "reportId": "text",
  "status": "PENDING"
}

Generate Pending Actions Report

post

Generate an Excel report of the approvals and manual activity tasks pending in the given scope, as one workbook with an Approvals sheet and a Tasks sheet. Accepts the same filters as /approvals/pending and /tasks/pending (every matching row is exported, up to a cap per sheet). The report is built in the background; poll /release/report/{reportId}/status and download it from /release/report/{reportId}/download once COMPLETED.

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

myActionsbooleanOptional

When true, includes only approvals and tasks for activities triggered by the calling user. Equivalent to requestedBy=; mutually exclusive with requestedBy.

Default: false
pendingOnMebooleanOptional

When true, includes only approvals and tasks the calling user may act on.

Default: false
requestedBystringOptional

When set, includes only approvals and tasks for activities triggered by this user identifier.

pendingOnUserIdstringOptional

When set, includes only approvals and tasks pending on this specific user identifier.

pendingOnOthersbooleanOptional

When true, includes only approvals and tasks that are NOT pending on the specified user (pendingOnUserId) or, if pendingOnUserId is absent, NOT pending on the calling user.

Default: false
Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Report generation job created successfully

application/json
reportIdstringRequired
statusstring · enumRequiredPossible values:
post/report/pending-actions/generate
POST /api/report/pending-actions/generate HTTP/1.1
Harness-Account: text
Accept: */*
{
  "reportId": "text",
  "status": "PENDING"
}

Last updated

Was this helpful?