kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

HTTP API / Security

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/v1/security/posturescope audit:read
Responses
200401403
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/v1/security/inventoryscope audit:read
Responses
200401403
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/v1/security/evidencescope audit:read
Parameters
sincequery · string
since
untilquery · string
until
Responses
200400401403
curl -s -X GET https://api.kosa8.com/v1/security/evidence \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Whether the org is frozen#

GET/v1/security/freezeany key
Responses
200401403
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/v1/security/freezescope admin
JSON body
confirmrequiredstring
The organization's name, typed
reasonstring
—
suspend_keysboolean
—
Responses
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/v1/security/unfreezescope admin
JSON body
confirmrequiredstring
—
restore_keysboolean
—
Responses
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/v1/security/siemscope admin
Responses
200401403
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/v1/security/siemscope admin
JSON body
kindrequired"webhook" | "splunk_hec" | "datadog" | "s3" | "r2"
—
namestring
—
urlstring
—
bucketstring
s3, r2
regionstring
s3 (default us-east-1)
endpointstring
s3: an S3-compatible store's https origin
account_idstring
r2: your Cloudflare account id
jurisdiction"eu" | "fedramp"
r2
access_key_idstring
—
secret_access_keystring
—
prefixstring
s3, r2: default kosa8-audit/; objects are <prefix><org_id>/YYYY/MM/DD/<seq range>.ndjson
tokenstring
—
api_keystring
—
sitestring
—
indexstring
—
sourcetypestring
—
start"beginning" | "now"
—
Responses
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/v1/security/siem/{id}scope admin
Parameters
idrequiredpath · string
Id
Responses
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/v1/security/siem/{id}/testscope admin
Parameters
idrequiredpath · string
Id
Responses
200401403404
curl -s -X POST https://api.kosa8.com/v1/security/siem/$SBX/test \
  -H "Authorization: Bearer $KOSA8_API_KEY"

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · AI Agent Sandbox: Secure and Sovereign for Enterprise · Local models served by llamay · Agent gateway: MAQPNA