List the scan presets (scan types) the project can launch
GET
/projects/{projectId}/scan-presets
const url = 'https://zkao.io/api/v1/projects/example/scan-presets';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://zkao.io/api/v1/projects/example/scan-presets \ --header 'Authorization: Bearer <token>'Requires scope: read. Use a preset’s ref as presetRef when launching.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”projectId
required
string
Responses
Section titled “ Responses ”OK
Media typeapplication/json
object
presets
required
Array<object>
object
ref
required
Pass as presetRef when launching.
string
name
required
string
description
string | null
minCredits
required
Minimum budget for a launch. 0 = use the default floor.
integer
modelTier
required
string
Examplegenerated
{ "presets": [ { "ref": "example", "name": "example", "description": "example", "minCredits": 1, "modelTier": "example" } ]}Missing, malformed, expired, or revoked token
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "unauthorized" }}The token lacks the required scope
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "unauthorized" }}Resource not in this token’s project or repo allowlist
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "unauthorized" }}
