Discover workspace repositories
curl --request POST \
--url https://lanesync.dev/api/sync/discover \
--cookie connect.sid=import requests
url = "https://lanesync.dev/api/sync/discover"
headers = {"cookie": "connect.sid="}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {cookie: 'connect.sid='}};
fetch('https://lanesync.dev/api/sync/discover', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lanesync.dev/api/sync/discover",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_COOKIE => "connect.sid=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lanesync.dev/api/sync/discover"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cookie", "connect.sid=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://lanesync.dev/api/sync/discover")
.header("cookie", "connect.sid=")
.asString();require 'uri'
require 'net/http'
url = URI("https://lanesync.dev/api/sync/discover")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'connect.sid='
response = http.request(request)
puts response.read_body{
"discovered": [
{
"owner": "example-org",
"repos": [
"service-api",
"web-app"
]
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}Sync
Discover workspace repositories
Refreshes repositories for installations already linked to the authenticated, selected workspace. Uses each installation’s saved Full or Lite tier and paginates all accessible repositories. Requires workspace membership. Does not grant GitHub access or create workspaces. Starts repository synchronization in the background; HTTP 200 does not confirm synchronization or setup completion. An empty discovered array means no linked active installation was processed. An installation with no accessible repositories returns an owner entry with an empty repos array.
POST
/
api
/
sync
/
discover
Discover workspace repositories
curl --request POST \
--url https://lanesync.dev/api/sync/discover \
--cookie connect.sid=import requests
url = "https://lanesync.dev/api/sync/discover"
headers = {"cookie": "connect.sid="}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {cookie: 'connect.sid='}};
fetch('https://lanesync.dev/api/sync/discover', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lanesync.dev/api/sync/discover",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_COOKIE => "connect.sid=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lanesync.dev/api/sync/discover"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cookie", "connect.sid=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://lanesync.dev/api/sync/discover")
.header("cookie", "connect.sid=")
.asString();require 'uri'
require 'net/http'
url = URI("https://lanesync.dev/api/sync/discover")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'connect.sid='
response = http.request(request)
puts response.read_body{
"discovered": [
{
"owner": "example-org",
"repos": [
"service-api",
"web-app"
]
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}