The v2 API is available to Enterprise customers only. Contact us to request access.
Pagination
Bulk‑fetch methods in Chkk use cursor‑based pagination. Two parameters control the flow:
Typical sequence
- First page – Omit continuation_token (and optionally set page_size).
- Next page – Pass the continuation_token returned in the prior response.
- Done – When the response no longer includes continuation_token, you have reached the end.
Errors
Chkk uses standard HTTP response codes to indicate the outcome of an API request. Codes in the 2xx range indicate a successful request. Codes in the 4xx range indicate a client error, such as a missing required parameter. Codes in the 5xx range indicate a server error on Chkk’s end (these are uncommon).API Usage Examples
The Go program below:- Calls
GET /risksto collect every detected Risk instance in a cluster. - For each Risk, calls
GET /risks/{id}/resourcesto enumerate affected resources. - Optionally shows only the resources that live in the namespace you pass with
-namespace. - Prints output to
stdoutand writes a CSV file calledrisks.csvto the current working directory with the output.