Security
10 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.
The org's security checklist from its own settings, with passed/total#
GET
Responses/v1/security/posturescope audit:read200401403
curl -s -X GET https://api.kosa8.com/v1/security/posture \ -H "Authorization: Bearer $KOSA8_API_KEY"
Every API key and member, with the sandboxes and functions each made#
GET
Responses/v1/security/inventoryscope audit:read200401403
curl -s -X GET https://api.kosa8.com/v1/security/inventory \ -H "Authorization: Bearer $KOSA8_API_KEY"
A JSON bundle of the posture and audit events in a range, with its SHA-256#
GET
Parameters/v1/security/evidencescope audit:readsincequery · stringsince
untilquery · stringuntil
200400401403
curl -s -X GET https://api.kosa8.com/v1/security/evidence \ -H "Authorization: Bearer $KOSA8_API_KEY"
Whether the org is frozen#
GET
Responses/v1/security/freezeany key200401403
curl -s -X GET https://api.kosa8.com/v1/security/freeze \ -H "Authorization: Bearer $KOSA8_API_KEY"
Freeze the org: refuse new work, sleep running sandboxes, optionally suspend keys#
POST
JSON body/v1/security/freezescope adminconfirmrequiredstringThe organization's name, typed
reasonstring—
suspend_keysboolean—
200400401403409
curl -s -X POST https://api.kosa8.com/v1/security/freeze \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
Unfreeze the org; suspended keys are restored unless restore_keys is false#
POST
JSON body/v1/security/unfreezescope adminconfirmrequiredstring—
restore_keysboolean—
200400401403409
curl -s -X POST https://api.kosa8.com/v1/security/unfreeze \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
Where the audit log streams#
GET
Responses/v1/security/siemscope admin200401403
curl -s -X GET https://api.kosa8.com/v1/security/siem \ -H "Authorization: Bearer $KOSA8_API_KEY"
Stream the audit log as OCSF API Activity to a webhook (any HTTPS endpoint), Splunk HEC, Datadog, or an S3 or R2 bucket#
POST
JSON body/v1/security/siemscope adminkindrequired"webhook" | "splunk_hec" | "datadog" | "s3" | "r2"—
namestring—
urlstring—
bucketstrings3, r2
regionstrings3 (default us-east-1)
endpointstrings3: an S3-compatible store's https origin
account_idstringr2: your Cloudflare account id
jurisdiction"eu" | "fedramp"r2
access_key_idstring—
secret_access_keystring—
prefixstrings3, r2: default kosa8-audit/; objects are <prefix><org_id>/YYYY/MM/DD/<seq range>.ndjson
tokenstring—
api_keystring—
sitestring—
indexstring—
sourcetypestring—
start"beginning" | "now"—
200400401403409
curl -s -X POST https://api.kosa8.com/v1/security/siem \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
Stop streaming to a destination#
DELETE
Parameters/v1/security/siem/{id}scope adminidrequiredpath · stringId
200401403404
curl -s -X DELETE https://api.kosa8.com/v1/security/siem/$SBX \ -H "Authorization: Bearer $KOSA8_API_KEY"
Send one test event now#
POST
Parameters/v1/security/siem/{id}/testscope adminidrequiredpath · stringId
200401403404
curl -s -X POST https://api.kosa8.com/v1/security/siem/$SBX/test \ -H "Authorization: Bearer $KOSA8_API_KEY"