TestsList tests

List tests

Returns continuous automated tests and cloud tests for the authenticated tenant. Status includes the Tests UI Affected overlay: a passing CAT test with a failing Automated Tests observability integration is affected. Entities come from each test's associated products. Request extra columns with fields (comma-separated), including ticketsCount. List responses are a JSON array in data. There is no cursor pagination on this endpoint. Requires scope test:read or test:write.

curl -X GET "https://api.scrut.io/v1/tests?status=fix_required%2Caffected&frameworkIds=14c4c45d-6c31-4097-a02a-ad9cfd04850e%2C3a10a604-b942-43e5-8294-d418a0448ee5&assigneeEmails=alex%40example.com%2Calex%40example.com&applications=AWS%2CGCP&fields=mappedFrameworkIds%2CeffortEstimate%2CignoreReason" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)"
{
  "data": [
    {
      "testId": "test_authorized-users-access-tracked-log-sinks-gcp",
      "testName": "Authorized users' access to log sinks is tracked (GCP)",
      "status": "ignored",
      "applications": [
        {
          "name": "AWS"
        }
      ],
      "assignees": [
        {
          "name": "Alex Rivera",
          "email": "alex@example.com",
          "isPrimary": true
        }
      ],
      "entities": [
        {
          "entityId": "8fa88e7b-eb16-4999-854a-2f407958740a",
          "entityName": "Organization Wide"
        }
      ],
      "mappedFrameworkIds": [
        "14c4c45d-6c31-4097-a02a-ad9cfd04850e"
      ],
      "effortEstimate": "low",
      "ignoreReason": "A compensating control covers this check.",
      "addedOn": 1704067200000,
      "modifiedOn": 1704067200000,
      "ticketsCount": 1
    }
  ],
  "meta": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000"
  }
}
GET
/v1/tests
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

Machine access token from POST /oauth/token. Send Authorization: Bearer $SCRUT_ACCESS_TOKEN on every /v1 request.

Machine access token from POST /oauth/token. Send Authorization: Bearer $SCRUT_ACCESS_TOKEN on every /v1 request.
query
statusstring

Filter by computed test status. Pass a comma-separated list (no spaces required). Allowed values: ignored, fix_required, passing, affected.

query
frameworkIdsstring

Filter to resources mapped to these framework IDs. Pass a comma-separated list (no spaces required).

query
assigneeEmailsstring

Filter by assignee email addresses. Matches any assignees[].email. URL-encode + in plus-addressed emails as %2B. Pass a comma-separated list (no spaces required).

query
applicationsstring

Filter by integration or application name. Pass a comma-separated list (no spaces required). Matches applications[].name.

query
fieldsstring

Additional list columns. Default list items omit these keys until requested. Pass a comma-separated list (no spaces required). Allowed values: mappedFrameworkIds, effortEstimate, ignoreReason, addedOn, modifiedOn, ticketsCount.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). Machine access token from POST /oauth/token. Send Authorization: Bearer $SCRUT_ACCESS_TOKEN on every /v1 request.

Query Parameters

statusstring

Filter by computed test status. Pass a comma-separated list (no spaces required). Allowed values: ignored, fix_required, passing, affected.

Example:
fix_required,affected
frameworkIdsstring

Filter to resources mapped to these framework IDs. Pass a comma-separated list (no spaces required).

Example:
14c4c45d-6c31-4097-a02a-ad9cfd04850e,3a10a604-b942-43e5-8294-d418a0448ee5
assigneeEmailsstring

Filter by assignee email addresses. Matches any assignees[].email. URL-encode + in plus-addressed emails as %2B. Pass a comma-separated list (no spaces required).

Example:
alex@example.com,alex@example.com
applicationsstring

Filter by integration or application name. Pass a comma-separated list (no spaces required). Matches applications[].name.

Example:
AWS,GCP
fieldsstring

Additional list columns. Default list items omit these keys until requested. Pass a comma-separated list (no spaces required). Allowed values: mappedFrameworkIds, effortEstimate, ignoreReason, addedOn, modifiedOn, ticketsCount.

Example:
mappedFrameworkIds,effortEstimate,ignoreReason

Responses

dataarray
Required
metaobject
Required