Get Git auto-deployment settings
Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment.
Returns the Git auto-deployment settings of the website: which repository and branch deploy
into which directory, and whether pushes trigger a deployment. is_enabled false keeps the
repository link but ignores pushes.
When the website has no auto-deployment configured every field is null. Save settings with
Update Git auto-deployment settings.
API Token authentication
u123456789Domain name
mydomain.tldSuccess response
Every field is null when the website has no Git auto-deployment configured.
Git installation the repository is accessed through
018f5e2a-1234-7890-abcd-1234567890abWhether pushes to the branch deploy automatically
trueRepository owner login
octocatRepository name
my-siteBranch that is deployed
mainSubdirectory under the website document root the repository deploys into. Empty means the document root.
my-apiUnauthenticated response
Error response
GET /api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"installation_uuid": "018f5e2a-1234-7890-abcd-1234567890ab",
"is_enabled": true,
"owner": "octocat",
"repository": "my-site",
"branch": "main",
"directory": "my-api"
}Last updated
Was this helpful?