Get the Git Sync configuration and status for a space
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$Responses
200
The Git Sync info for the space
application/json
repoNamestringOptional
Repository name.
installationStatusstring · enumRequiredPossible values:
installationProviderstring · enumRequiredPossible values:
The provider of the Git Sync installation.
integrationstringOptionalDeprecated
The integration name providing the Git Sync.
installationIdstringRequired
The ID of the Git Sync installation.
parentInstallationIdstringOptional
The ID of the parent Git Sync installation, if any.
urlstringOptional
The URL to the repository tree, used when rendering public content.
operationTimeoutintegerOptional
How long an operation is allowed to run before it is terminated (in milliseconds).
updatedAtstring · date-timeOptional
When the Git provider details were last updated
404
No Git provider currently set up on the space
application/json
get/spaces/{spaceId}/git/info
GET /v1/spaces/{spaceId}/git/info HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"repoName": "text",
"installationStatus": "unauthenticated",
"installationProvider": "github",
"installationId": "text",
"parentInstallationId": "text",
"url": "text",
"operation": {
"state": "running",
"direction": "export",
"startedAt": "2026-01-01T00:00:00.000Z",
"endedAt": "2026-01-01T00:00:00.000Z",
"error": "text",
"errorAction": {
"label": "text",
"url": "https://example.com"
}
},
"operationTimeout": 1,
"updatedAt": "2026-01-01T00:00:00.000Z"
}Last updated
Was this helpful?