List the environments a coding agent connection may launch in
curl --request GET \
--url https://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environmentsimport requests
url = "https://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments', 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://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"supported": true,
"environments": [
{
"id": "<string>",
"name": "<string>",
"scope": "team",
"defaultBranch": "<string>",
"repositories": [
{
"url": "<string>",
"fullName": "<string>"
}
],
"readiness": {
"ready": true,
"reason": "<string>"
}
}
]
}Integrations
List the environments a coding agent connection may launch in
List the vendor environments a coding agent connection’s key may launch a fix in (Replicas organization environments), each with the GitHub repositories it holds. Read live from the vendor; never launches work; personal environments are left out. Pass one’s id as environmentId to issues.fixes.create or agentDispatches.projectDefault.update. An agent without environments answers supported: false.
GET
https://api.sazabi.com/v1
/
integrations
/
connections
/
{connectionId}
/
coding-agent-environments
List the environments a coding agent connection may launch in
curl --request GET \
--url https://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environmentsimport requests
url = "https://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments', 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://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sazabi.com/v1/integrations/connections/{connectionId}/coding-agent-environments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"supported": true,
"environments": [
{
"id": "<string>",
"name": "<string>",
"scope": "team",
"defaultBranch": "<string>",
"repositories": [
{
"url": "<string>",
"fullName": "<string>"
}
],
"readiness": {
"ready": true,
"reason": "<string>"
}
}
]
}Path Parameters
A coding agent connection ID.
Query Parameters
Organization the connection belongs to. Auto-filled from CLI and SDK context when omitted. User tokens must supply it unless the credential's fixed scope resolves it; secret keys may omit it (the key's organization applies).
Minimum string length:
1