Get the linked repository
The link and its last deploy. Never returns the webhook secret.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
functionIdstringrequiredZavu Function ID.
Responses
200The link.
linkobjectrequiredA GitHub repository bound to a function. A push to
branchdeploys the function. A function holds at most one link.16 properties
idstringrequiredfunctionIdstringrequiredproviderstringrequiredOne ofgithubownerstringrequiredrepostringrequiredbranchstringrequiredOnly pushes to this branch deploy.
rootDirstringSubdirectory holding the project, for monorepos. Null when the project is at the repository root.
autoDeploybooleanrequiredWhen false the link is kept and pushes are ignored.
connectionstringrequiredHow this link authenticates, decided by the server rather than by the caller. -
app: the Zavu GitHub App is installed on the account. Pushes arrive on the app's webhook and private repositories work. Nothing to configure in the repository. -manual: no installation. The link carries its own secret and you add the webhook to the repository yourself.One ofappmanuallastStatusstringOne ofdeployingdeployedfailednulllastCommitShastringlastCommitMessagestringlastErrorstringWhy the last deploy failed. Null otherwise.
lastDeployAtstring<date-time>createdAtstring<date-time>requiredupdatedAtstring<date-time>required
webhookUrlstring<uri>requiredEndpoint that receives GitHub's push deliveries. Only needed on a
manuallink, where you add it to the repository yourself.webhookSecretstringShared secret for the repository's webhook. Returned only when creating a
manuallink, and only there — every later read strips it, and re-linking mints a new one. Absent entirely on anapplink, which needs no secret of its own.
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404No repository is linked to this function.
codestringrequiredmessagestringrequireddetailsobject