Skip to content

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_forkinteger
max_memory_mibinteger
max_sandboxesinteger
max_timeout_sinteger
max_vcpusinteger
net_allow_maxarray | null
items
string
operationsarray
items
string
scopedboolean
Authentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.
Request
GET/whoami
cURL
curl '/whoami'
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
}
Was this page helpful?