Effective policy for the caller
GET/whoami
Reports whether the token is scoped and, if so, the policy the daemon enforces for it.
Responses
200 OKOK
Whoami
policyPolicy
allow_profilesarray
items
string
max_forkintegermax_memory_mibintegermax_sandboxesintegermax_timeout_sintegermax_vcpusintegernet_allow_maxarray | null
items
string
operationsarray
items
string
scopedbooleanAuthentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.Request
▍GET/whoami
curl '/whoami'const response = await fetch("/whoami", {
method: "GET",
});
const data = await response.json();import requests
response = requests.get(
"/whoami",
)
data = response.json()Response
200 OK
{
"policy": {
"allow_profiles": [
"string"
],
"max_fork": 0,
"max_memory_mib": 0,
"max_sandboxes": 0,
"max_timeout_s": 0,
"max_vcpus": 0,
"net_allow_max": [
"string"
],
"operations": [
"string"
]
},
"scoped": false
}