Machines
5 endpoints at https://api.kosa8.com, sent with Authorization: Bearer $KOSA8_API_KEY. Generated from the API's own OpenAPI description, which a test holds to the router.
Sandbox and function counts, this month's usage and credit, recent activity and host capacity#
GET
Responses/v1/overviewscope sandboxes:read200401403
curl -s -X GET https://api.kosa8.com/v1/overview \ -H "Authorization: Bearer $KOSA8_API_KEY"
Secure, Safe and Sovereign posture scores from this org's own settings, the active fleet by state, region and template, the threat feed and swarm summary, 14 days of sandboxes started and sandbox-hours (trend), the home region and placement (place), and 14 days of audit activity with commands run (activity is null without audit:read). Reads the database only#
GET
Responses/v1/overview/posturescope sandboxes:read200401403
curl -s -X GET https://api.kosa8.com/v1/overview/posture \ -H "Authorization: Bearer $KOSA8_API_KEY"
What this org's hosts can do: dataplane (checkpoints, rewind, fork, files), containers, custom images#
GET
Responses/v1/capabilitiesscope sandboxes:read200401403
curl -s -X GET https://api.kosa8.com/v1/capabilities \ -H "Authorization: Bearer $KOSA8_API_KEY"
Sandboxes with their fork parents, for drawing the fork tree#
GET
Responses/v1/lineagescope sandboxes:read200401403
curl -s -X GET https://api.kosa8.com/v1/lineage \ -H "Authorization: Bearer $KOSA8_API_KEY"
Images behind the templates this org's hosts offer, with tag and digest when the reference names them#
GET
Responses/v1/imagesscope sandboxes:read200401403
curl -s -X GET https://api.kosa8.com/v1/images \ -H "Authorization: Bearer $KOSA8_API_KEY"