Syndai Docs

Run a check now

POST
/api/v1/external/coding/repositories/{repository_id}/scans/{kind}/run

Scan now for a paid check (code, app), even when nothing changed and with its routine off: limit_usd (5 to 300, default 25) is the most this scan spends from credits (send the limit you showed); returns the new scan's run_id (201), and 409 CONFLICT while a scan of that kind is queued or running. Check now for a free check (dependencies, deploy, secrets): queued on Syndai's servers at no cost, answered 202 {queued: true}; its findings appear on the Findings page. Owners and admins only for a free check (403 otherwise). 400 for an unknown kind.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

repository_id*string
Formatuuid
kind*string

Query Parameters

customer_id?|null

Request Body

application/json
  1. body
limit_usd?number
Range5 <= value <= 300
Default25

Response Body

Document created, URL follows

application/json
  1. response
run_id*string
Formatuuid
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/repositories/497f6eca-6276-4993-bfeb-53cbbbba6f08/scans/string/run' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec"}
Was this page helpful?