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
Responses/v1/byoc/tokensscope admin200401403
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
JSON body/v1/byoc/tokensscope adminnamerequiredstring—
ttl_sintegerMin 60. Max 2592000.
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
Parameters/v1/byoc/tokens/{id}scope adminidrequiredpath · stringId
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
Parameters/v1/byoc/hostsscope sandboxes:readallquery · "1"1 includes removed hosts
200401403
curl -s -X GET https://api.kosa8.com/v1/byoc/hosts \ -H "Authorization: Bearer $KOSA8_API_KEY"
Remove an own host#
DELETE
Parameters/v1/byoc/hosts/{id}scope adminidrequiredpath · stringId
200401403404
curl -s -X DELETE https://api.kosa8.com/v1/byoc/hosts/$SBX \ -H "Authorization: Bearer $KOSA8_API_KEY"