List engines in the latest successful scan, including the primary engine

Request

GET

https://appsec.sourcecraft.tech/v1/engines

Query parameters

Name

Description

gitRepo

Type: string

Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid).

Pattern: \S

Example: 0199140f-4343-7c06-a7e3-b835c305b629

scanType

Type: string | null

Scan kind; omitted or blank means SCAN_TYPE_DEFAULT.

Example: ``

type

Type: string

Required exact engine type, for example SAST, SCA, SECRETS or DAST.

Pattern: \S

Example: ``

Responses

200 OK

OK

Body

application/json
{
  "engines": [
    {
      "id": "example",
      "name": "example"
    }
  ],
  "primaryEngineId": "example"
}

Name

Description

engines

Type: EngineDto[]

Example
[
  {
    "id": "example",
    "name": "example"
  }
]

primaryEngineId

Type: string

Example: example

EngineDto

Name

Description

id

Type: string

Example: example

name

Type: string

Example: example

Example
{
  "id": "example",
  "name": "example"
}
Предыдущая
Следующая