API referenceSections

The site's Git connection

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

The site's Git connection (ADR 0027); never the token or the webhook secret

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired

Responses

200 Connection

Content type: application/json

  • provider string required
    Allowed values: "github" "gitlab" "gitea" "bitbucket"
  • url string required
  • branch string required
  • has_token boolean required
  • webhook_path string required
  • last_commit string required
  • last_state string required
    Allowed values: "" "succeeded" "failed"
  • last_error string required
  • last_at string (date-time) | null required
Example
{
  "provider": "github",
  "url": "string",
  "branch": "string",
  "has_token": true,
  "webhook_path": "string",
  "last_commit": "string",
  "last_state": "",
  "last_error": "string",
  "last_at": "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