Mint environment workload token
Mints a short-lived workload identity token for a running local sandbox environment. Returns a 15-minute environment-scoped workload identity token that kosem sbx mounts at /run/kosem/identity/token so kosem-envd inside the local container can open its tunnel and issue granted credentials without exposing the user's sign-in token. Only the creator of a running local sandbox can mint its workload token.
Mints a short-lived workload identity token for a running local sandbox environment.
Returns a 15-minute environment-scoped workload identity token that kosem sbx mounts at /run/kosem/identity/token so kosem-envd inside the local container can open its tunnel and issue granted credentials without exposing the user's sign-in token. Only the creator of a running local sandbox can mint its workload token.
bearerAuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$environment*stringThe environment's ID.
^env_[0-7][0-9a-hjkmnp-tv-z]{25}$OK
application/json- response
environment*stringResource name of the local environment.
expireTime*stringWhen the workload identity token expires.
date-timetoken*stringShort-lived workload identity token written to /run/kosem/identity/token inside the local sandbox.
curl -X POST 'https://api.kosem.ai/v1/projects/string/environments/string/workloadToken'{
"environment": "string",
"expireTime": "2019-08-24T14:15:22Z",
"token": "string"
}