API referenceSections

List a directory; links are shown and never followed

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

List a directory; links are shown and never followed

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
pathquerystringoptional

Responses

200 Entries

Content type: application/json

  • truncated boolean required
  • entries array<object> required
    • writable boolean required
    • writable_inherited boolean required
    • access string optional

      What the site's code may do with this folder (ADR 0034) or file (ADR 0108)

      Allowed values: "read" "write" "blocked"
    • access_inherited boolean optional
    • name string required
    • kind string required
      Allowed values: "file" "dir" "link"
    • size integer (int64) required
    • modified string (date-time) required
Example
{
  "truncated": true,
  "entries": [
    {
      "writable": true,
      "writable_inherited": true,
      "access": "read",
      "access_inherited": true,
      "name": "string",
      "kind": "file",
      "size": 0,
      "modified": "2026-01-01T00:00:00Z"
    }
  ]
}

default Error

Content type: application/json

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