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}/gitThe site's Git connection (ADR 0027); never the token or the webhook secret
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 Connection
Content type: application/json
providerstring requiredAllowed values:"github""gitlab""gitea""bitbucket"urlstring requiredbranchstring requiredhas_tokenboolean requiredwebhook_pathstring requiredlast_commitstring requiredlast_statestring requiredAllowed values:"""succeeded""failed"last_errorstring requiredlast_atstring (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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required