List a repository's checks
Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.
GET
Every check the repository has: what it does, what it costs (free, or metered from credits), and when it runs. A paid check carries its per-run limit, its typical cost (median of its last runs, once it has 5), its monthly maximum while on, its next run and its last scan. Also what pays for the next paid scan (funding, an open string). Needs coding:repos:read; a project guest reads a granted project's. 404 for a repository that is not yours.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
repository_id*stringFormat
uuidcustomer_id?|nullRequest fulfilled, document follows
application/json- response
free_scan_state*stringfree_scan_usd*numberfull_subscription?string|nullfull_until?|nullfunding*stringkinds*array<>curl -X GET 'https://api.syndai.ai/api/v1/external/coding/repositories/497f6eca-6276-4993-bfeb-53cbbbba6f08/scans'Example Response
{ "free_scan_state": "string", "free_scan_usd": 0, "full_subscription": "string", "full_until": "2019-08-24T14:15:22Z", "funding": "string", "kinds": [ { "cadence": "string", "cadences": [ "string" ], "description": "string", "kind": "string", "label": "string", "last_scan": { "app": false, "app_check": "string", "charged_usd": 0, "completed_at": "2019-08-24T14:15:22Z", "files_planned": 0, "first_scan_areas": 0, "funded_by": "string", "groups_done": 0, "groups_planned": 0, "limit_usd": 0, "over_limit_groups": 0, "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec", "started_at": "2019-08-24T14:15:22Z", "stats": {}, "status": "string", "stopped_at_ceiling": false, "top_up_usd": 0, "waiting_on": "string" }, "limit_usd": 0, "monthly_max_usd": 0, "needs_consent": false, "next_run_at": "2019-08-24T14:15:22Z", "paused_no_credits": false, "price": "string", "scanning": false, "typical_usd": 0 } ]}