Skip to main content
POST
/
api
/
spaces
/
{spaceId}
/
drive
/
connect-repo
cURL
curl --request POST \
  --url https://api.kazzle.app/api/spaces/{spaceId}/drive/connect-repo \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "repoUrl": "<string>",
  "branch": "<string>",
  "path": "<string>",
  "credentialId": "<string>"
}
'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Better Auth JWT token

Path Parameters

spaceId
string
required

Body

application/json
repoUrl
string
required
Minimum string length: 1
branch
string
path
string
credentialId
string

Response

200 - application/json

Repo connected

id
string
required