Get Pipeline
curl --request GET \
--url https://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}', 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://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pipeline": {
"aggregates": [
{
"groupBy": "<string>",
"key": "<string>",
"kinds": [
"<string>"
],
"label": "<string>",
"op": "<string>",
"source": "<string>",
"stages": [
"<string>"
]
}
],
"color": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"fieldSchema": [
{
"budget": 123,
"deprecated": true,
"description": "<string>",
"entity": "<string>",
"format": "<string>",
"formula": "<string>",
"items": "<unknown>",
"key": "<string>",
"kind": "<string>",
"label": "<string>",
"onCard": true,
"options": [
{
"color": "<string>",
"deprecated": true,
"label": "<string>",
"value": "<string>"
}
],
"ours": true,
"required": true,
"section": "<string>",
"set": true,
"system": true,
"unit": "<string>"
}
],
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"revenueFormula": "<string>",
"revenueUnit": "<string>",
"rollups": [
{
"key": "<string>",
"kind": "<string>",
"label": "<string>",
"series": [
{
"key": "<string>",
"label": "<string>",
"value": "<unknown>"
}
],
"unit": "<string>",
"value": "<unknown>"
}
],
"stageRollups": {},
"stages": [
{
"aggregates": [
{
"groupBy": "<string>",
"key": "<string>",
"kinds": [
"<string>"
],
"label": "<string>",
"op": "<string>",
"source": "<string>",
"stages": [
"<string>"
]
}
],
"color": "<string>",
"deprecated": true,
"id": "<string>",
"kind": "<string>",
"name": "<string>",
"next": [
"<string>"
]
}
],
"type": "<string>"
}
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}Pipelines (boards)
Get Pipeline
One board whole: its funnel, its card (fieldSchema, each field under its section heading), its aggregates and their values over the deals on it.
GET
/
organization
/
{organizationId}
/
pipelines
/
{pipelineId}
Get Pipeline
curl --request GET \
--url https://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}', 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://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sonar.turtle.xyz/v1/organization/{organizationId}/pipelines/{pipelineId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pipeline": {
"aggregates": [
{
"groupBy": "<string>",
"key": "<string>",
"kinds": [
"<string>"
],
"label": "<string>",
"op": "<string>",
"source": "<string>",
"stages": [
"<string>"
]
}
],
"color": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"fieldSchema": [
{
"budget": 123,
"deprecated": true,
"description": "<string>",
"entity": "<string>",
"format": "<string>",
"formula": "<string>",
"items": "<unknown>",
"key": "<string>",
"kind": "<string>",
"label": "<string>",
"onCard": true,
"options": [
{
"color": "<string>",
"deprecated": true,
"label": "<string>",
"value": "<string>"
}
],
"ours": true,
"required": true,
"section": "<string>",
"set": true,
"system": true,
"unit": "<string>"
}
],
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"revenueFormula": "<string>",
"revenueUnit": "<string>",
"rollups": [
{
"key": "<string>",
"kind": "<string>",
"label": "<string>",
"series": [
{
"key": "<string>",
"label": "<string>",
"value": "<unknown>"
}
],
"unit": "<string>",
"value": "<unknown>"
}
],
"stageRollups": {},
"stages": [
{
"aggregates": [
{
"groupBy": "<string>",
"key": "<string>",
"kinds": [
"<string>"
],
"label": "<string>",
"op": "<string>",
"source": "<string>",
"stages": [
"<string>"
]
}
],
"color": "<string>",
"deprecated": true,
"id": "<string>",
"kind": "<string>",
"name": "<string>",
"next": [
"<string>"
]
}
],
"type": "<string>"
}
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}Authorizations
bearerAuthapiKeyAuth

