Attack tests
3 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.
Agent attack scorecards uploaded by the org, newest first#
GET
Parameters/v1/attack/scorecardsscope sandboxes:readlimitquery · integerAt most 50; default 10
200401403
curl -s -X GET https://api.kosa8.com/v1/attack/scorecards \ -H "Authorization: Bearer $KOSA8_API_KEY"
Upload a signed scorecard from `kosa8 attack run`; the signature is checked before it is stored#
POST
JSON body/v1/attack/scorecardsscope sandboxes:writesignedrequiredobject—
201400401403413422
curl -s -X POST https://api.kosa8.com/v1/attack/scorecards \ -H "Authorization: Bearer $KOSA8_API_KEY" \ -H 'Content-Type: application/json' -d @body.json
One scorecard, with the signed file as uploaded#
GET
Parameters/v1/attack/scorecards/{id}scope sandboxes:readidrequiredpath · stringId
200401403404
curl -s -X GET https://api.kosa8.com/v1/attack/scorecards/$SBX \ -H "Authorization: Bearer $KOSA8_API_KEY"