API referenceSections

Take a zip, or download one from an https link, and tell what it holds

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/tenants/{tid}/sources

Take a zip, or download one from an https link, and tell what it holds (ADR 0025)

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content types: application/zip, application/json

application/zip

string (binary)

application/json

object
  • url string required

    https only; private and reserved addresses are refused

Example
{
  "url": "string"
}

Responses

201 Kept for an hour

Content type: application/json

  • id string required
  • sha256 string required
  • size integer (int64) required
  • created_at string (date-time) required
  • detection object required
    • kind string required
      Allowed values: "static" "php" "wordpress" "aspnet" "asp" "node" "dotnet" "python" "java" "go" "unknown"
    • root string required

      Folder inside the zip that holds the site

    • version string required
    • entry string required
    • needs_build boolean required
    • build string required

      The build the files need, when they need one

    • evidence array<string> required
Example
{
  "id": "string",
  "sha256": "string",
  "size": 0,
  "created_at": "2026-01-01T00:00:00Z",
  "detection": {
    "kind": "static",
    "root": "string",
    "version": "string",
    "entry": "string",
    "needs_build": true,
    "build": "string",
    "evidence": [
      "string"
    ]
  }
}

default Error

Content type: application/json

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