Scan the site's own access levels and offer permission presets
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
GET
/api/v1/tenants/{tid}/sites/{id}/permissionsScan the site's own access levels and offer permission presets (ADR 0108)
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required |
Responses
200 OK
Content type: application/json
appstring requiredsuggestedstring requiredAllowed values:"wordpress""laravel""readonly""default"presetsarray<string> requiredAllowed values:"wordpress""laravel""readonly""default"ownarray<object> requiredpathstring requiredkindstring requiredAllowed values:"file""dir"accessstring requiredAllowed values:"read""write""blocked"
probedboolean requiredFalse where access lists cannot be read
truncatedboolean requiredidstring requiredpresetstring requiredpathstring requiredtargetstring requiredAllowed values:"dir""file"fromstring requiredtostring requiredAllowed values:"read""write""blocked"reasonstring requiredresultstring optionalok, kept, or an error code (applied records only)
keptboolean optional
hardenarray<string> requiredhiddenarray<string> requiredcreated_atstring (date-time) requiredreverted_atstring (date-time) | null optional
Fields of PermissionChange are shown above.
hardeningmap<string, string> requiredrecipestring required
Example
{
"app": "string",
"suggested": "wordpress",
"presets": [
"wordpress"
],
"own": [
{
"path": "string",
"kind": "file",
"access": "read"
}
],
"probed": true,
"truncated": true,
"last": {
"id": "string",
"preset": "string",
"changes": [
{
"path": "string",
"target": "dir",
"from": "string",
"to": "read",
"reason": "string",
"result": "string",
"kept": true
}
],
"harden": [
"string"
],
"hidden": [
"string"
],
"created_at": "2026-01-01T00:00:00Z",
"reverted_at": "2026-01-01T00:00:00Z"
},
"undo": [
{
"path": "string",
"target": "dir",
"from": "string",
"to": "read",
"reason": "string",
"result": "string",
"kept": true
}
],
"hardening": {
"key": "string"
},
"recipe": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required