Skip to main content
GET
/
api
/
v1
/
reports
ListReports
curl --request GET \
  --url https://your-sift-api-url.com/api/v1/reports \
  --header 'Authorization: Bearer <token>'
{
  "reports": [
    {
      "reportId": "<string>",
      "reportTemplateId": "<string>",
      "runId": "<string>",
      "organizationId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "createdByUserId": "<string>",
      "modifiedByUserId": "<string>",
      "createdDate": "2023-11-07T05:31:56Z",
      "modifiedDate": "2023-11-07T05:31:56Z",
      "summaries": [
        {
          "ruleId": "<string>",
          "ruleClientKey": "<string>",
          "ruleVersionId": "<string>",
          "ruleVersionNumber": 123,
          "reportRuleVersionId": "<string>",
          "numOpen": 123,
          "numFailed": 123,
          "numPassed": 123,
          "status": "REPORT_RULE_STATUS_UNSPECIFIED",
          "statusDetails": {
            "created": {},
            "live": {},
            "finished": {
              "stdout": "<string>",
              "stderr": "<string>"
            },
            "failed": {
              "errorMessage": "<string>",
              "exitCode": 123,
              "stdout": "<string>",
              "stderr": "<string>"
            },
            "canceled": {},
            "error": {
              "errorMessage": "<string>",
              "exitCode": 123,
              "stdout": "<string>",
              "stderr": "<string>"
            }
          },
          "createdDate": "2023-11-07T05:31:56Z",
          "modifiedDate": "2023-11-07T05:31:56Z",
          "assetId": "<string>",
          "deletedDate": "2023-11-07T05:31:56Z"
        }
      ],
      "tags": [
        {
          "tagName": "<string>"
        }
      ],
      "rerunFromReportId": "<string>",
      "jobId": "<string>",
      "archivedDate": "2023-11-07T05:31:56Z",
      "metadata": [
        {
          "key": {
            "name": "<string>",
            "type": "METADATA_KEY_TYPE_UNSPECIFIED",
            "archivedDate": "2023-11-07T05:31:56Z"
          },
          "stringValue": "<string>",
          "numberValue": 123,
          "booleanValue": true,
          "archivedDate": "2023-11-07T05:31:56Z"
        }
      ]
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

pageSize
integer

The maximum number of reports to return. The service may return fewer than this value. If unspecified, at most 50 reports will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. Optional.

pageToken
string

A page token, received from a previous ListReports call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListReports must match the call that provided the page token. Optional.

filter
string

A Common Expression Language (CEL) filter string. Available fields to filter by are report_id, report_template_id, tag_name, name, run_id, and archived_date. For further information about how to use CELs, please refer to this guide. For more information about the fields used for filtering, please refer to this definition. Optional.

organizationId
string

This field is only required if your user belongs to multiple organizations.

orderBy
string

How to order the retrieved reports. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". Available fields to order_by are name, created_date and modified_date. If left empty, items are ordered by created_date in descending order (newest-first). For more information about the format of this field, read this Example: "created_date desc,modified_date"

Response

A successful response.

The response of a call to ReportService_ListReportsResponse.

reports
object[]
nextPageToken
string