API referenceSections

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}/permissions

Scan the site's own access levels and offer permission presets (ADR 0108)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired

Responses

200 OK

Content type: application/json

  • app string required
  • suggested string required
    Allowed values: "wordpress" "laravel" "readonly" "default"
  • presets array<string> required
    Allowed values: "wordpress" "laravel" "readonly" "default"
  • own array<object> required
    • path string required
    • kind string required
      Allowed values: "file" "dir"
    • access string required
      Allowed values: "read" "write" "blocked"
  • probed boolean required

    False where access lists cannot be read

  • truncated boolean required
  • last PermissionRecord | null optional
    • id string required
    • preset string required
    • changes array<PermissionChange> required
      • path string required
      • target string required
        Allowed values: "dir" "file"
      • from string required
      • to string required
        Allowed values: "read" "write" "blocked"
      • reason string required
      • result string optional

        ok, kept, or an error code (applied records only)

      • kept boolean optional
    • harden array<string> required
    • hidden array<string> required
    • created_at string (date-time) required
    • reverted_at string (date-time) | null optional
  • undo array<PermissionChange> required

    Fields of PermissionChange are shown above.

  • hardening map<string, string> required
  • recipe string 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

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required