hosting

GET /v1/sites/{siteId}/repo

Get the repository a site deploys from.

Gbogbo àwọn hosting endpoints

Ìfàṣẹ́pọ̀

Fi bọ́ọ̀lù (bearer token) ranṣẹ gẹ́gẹ́ bí kọ́kọ́rọ́ API. Kọ́kọ́rọ́ náà gbọ́dọ̀ ní ìyọ̀ǹda sites.view; a ó kọ̀ ọ́ silẹ pẹlu 403, kii ṣe 404, ti kọ́kọ́rọ́ náà kò bá ní i.

Ojú abánisọ̀rọ̀ yìí kò gba id ajọ kankan. Kọ́kọ́rọ́ rẹ ti mọ ajọ ti o jẹ ti e, a o si fèsì nipa rẹ̀.

Gbiyanju rẹ

Rọ́pọ̀ èyíkéyìí nínú àwọn àmì ìtọ́ka < > pẹ̀lú iye tirẹ̀, àti àmì ìdánimọ̀ bọ́tìnnì náà pẹ̀lú bọ́tìnnì kan láti inú dásibọ̀ọ̀dù rẹ.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/repo \
  -H "Authorization: Bearer zdk_live_…"

Ṣé o ti wọlé? Iwọ̀n api ní nú ìgbékalẹ̀ rẹ kún id àjọ gidi rẹ ati bọtini tirẹ, o si nṣiṣẹ ibeere na lòdì si api gidi ki o le rii esi gidi na. Ṣí ojú abáná yìí sílẹ̀ nínú kọnsólù API

Àwọn kúlẹ̀kúlẹ̀

A 404 means no repository is connected, which is an ordinary state the dashboard renders as the connect form — deliberately not an empty object, because a payload of blanks cannot be told apart from a failed load. The response carries no secret: the webhook secret is derived from the connection id, never stored. Requires `sites.view`.

Àwọn ìpìlẹ̀

OrúkọIruTí a nílòKini o jẹ
siteId (path)UuidBẹẹniSite ID (UUIDv7).

Idahun

OrúkọIruTí a nílòKini o jẹ
site_idUuidBẹẹniUUIDv7 identifier — sortable by creation time (docs/02 §8).
providerstringBẹẹniThe git provider — `github` or `gitlab`. A machine identifier.
ownerstringBẹẹniThe account or namespace the repository lives under.
repostringBẹẹni
full_namestringBẹẹni`owner/repo`, or just the repo when the account owns its namespace.
branchstringBẹẹniThe branch a push deploys from.
build_modeBuildModeBẹẹniHow the published files are produced. `publish` serves the repository's own files — right for plain HTML and for a repo whose generator output is committed. `ci` runs the build…
build_commandstringBẹẹniBlank in `publish` mode — a stored command nothing runs would read as a build.
output_dirstringBẹẹniWhich directory is published. Blank means the repository root.
publish_branchstringBẹẹniWhere CI commits the built output in `ci` mode.
auto_deploybooleanBẹẹniWhether a push deploys automatically. Off still records every delivery, so a customer can watch pushes arriving before letting us act on them.
webhook_urlstringBẹẹniThe URL the provider was told to deliver to. Computed, never stored — a stored copy would keep naming the origin that was current when the row was written. Blank on an environme…
webhook_registeredbooleanBẹẹniWhether a provider-side hook actually exists. False here with a connection present means pushes are NOT being watched.
last_delivery_atobjectBẹẹniWhen the provider last delivered anything, or null for NEVER. Null is the single most useful diagnostic on this screen: "connected but never delivered" is what a mis-scoped toke…
last_delivery_notestringBẹẹniWhat we did with the last delivery, including when we ignored it. Written for every delivery, because "never delivered" and "delivering, ignored" are different problems with dif…
connected_accountstringBẹẹniThe label of the credential connection this repository is read with.

Awọn aṣiṣe ti ibudo ipari yii le da pada

401 · 403 · 404 · 429