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

HTTP API / Own hosts

Own hosts

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.

List host registration tokens#

GET/v1/byoc/tokensscope admin
Responses
200401403
curl -s -X GET https://api.kosa8.com/v1/byoc/tokens \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Create a host registration token (k8r_…, shown once)#

POST/v1/byoc/tokensscope admin
JSON body
namerequiredstring
—
ttl_sinteger
Min 60. Max 2592000.
Responses
201401403
curl -s -X POST https://api.kosa8.com/v1/byoc/tokens \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

Revoke a host registration token#

DELETE/v1/byoc/tokens/{id}scope admin
Parameters
idrequiredpath · string
Id
Responses
200401403404
curl -s -X DELETE https://api.kosa8.com/v1/byoc/tokens/$SBX \
  -H "Authorization: Bearer $KOSA8_API_KEY"

The org's own hosts#

GET/v1/byoc/hostsscope sandboxes:read
Parameters
allquery · "1"
1 includes removed hosts
Responses
200401403
curl -s -X GET https://api.kosa8.com/v1/byoc/hosts \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Remove an own host#

DELETE/v1/byoc/hosts/{id}scope admin
Parameters
idrequiredpath · string
Id
Responses
200401403404
curl -s -X DELETE https://api.kosa8.com/v1/byoc/hosts/$SBX \
  -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