curl --request GET \
--url https://sonar.turtle.xyz/v1/organization/{organizationId}/engagements \
--header 'Authorization: Bearer <token>'import requests
url = "https://sonar.turtle.xyz/v1/organization/{organizationId}/engagements"
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}/engagements', 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}/engagements",
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}/engagements"
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}/engagements")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sonar.turtle.xyz/v1/organization/{organizationId}/engagements")
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{
"engagements": [
{
"counterparty": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
},
"counterpartyId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"createdAt": "2023-11-07T05:31:56Z",
"derived": [
"<string>"
],
"drafts": {
"disposition": "<string>",
"future": {},
"present": {},
"proposals": [
{
"allowance": "<string>",
"allowedBy": "248df4b7-aa70-47b8-a036-33ac447e668d",
"allower": {
"name": "<string>"
},
"amended": [
"<string>"
],
"causedBy": "248df4b7-aa70-47b8-a036-33ac447e668d",
"changedAt": "2023-11-07T05:31:56Z",
"changes": {},
"createdAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z",
"decidedBy": "248df4b7-aa70-47b8-a036-33ac447e668d",
"decider": {
"name": "<string>"
},
"entity": {
"name": "<string>"
},
"entityId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"entityType": "<string>",
"evidence": [
{
"eventId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"messageId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"quotes": [
"<string>"
],
"sealed": "<string>",
"stance": "<string>"
}
],
"heldByAgent": true,
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"mine": true,
"op": "<string>",
"owner": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
},
"proposal": {},
"rationale": "<string>",
"reason": "<string>",
"refs": {},
"related": {
"name": "<string>"
},
"relatedId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"revertedBy": "248df4b7-aa70-47b8-a036-33ac447e668d",
"reverts": "248df4b7-aa70-47b8-a036-33ac447e668d",
"rule": {
"name": "<string>"
},
"ruleId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"source": "<string>",
"status": "<string>",
"supersededBy": "248df4b7-aa70-47b8-a036-33ac447e668d",
"user": {
"name": "<string>"
},
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
}
],
"refs": {}
},
"expectedRevenue": "<string>",
"fields": {},
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"lastActivityAt": "2023-11-07T05:31:56Z",
"lastUpdate": {
"createdAt": "2023-11-07T05:31:56Z",
"entityId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"entityType": "<string>",
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"op": "<string>",
"rationale": "<string>",
"source": "<string>"
},
"latestReport": {
"fields": {},
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"open": true,
"periodEnd": "2023-11-07T05:31:56Z",
"periodStart": "2023-11-07T05:31:56Z"
},
"nextTask": {
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"engagement": {
"name": "<string>",
"stage": "<string>"
},
"engagementId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"fields": {},
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"owner": {
"addresses": [
{
"kind": "<string>",
"value": "<string>"
}
],
"name": "<string>"
},
"ownerId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"plan": "<string>",
"status": "todo",
"statusSince": "2023-11-07T05:31:56Z"
},
"owner": {
"addresses": [
{
"kind": "<string>",
"value": "<string>"
}
],
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
},
"ownerId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"pipeline": {
"color": "<string>",
"type": "<string>"
},
"pipelineId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"stage": "<string>",
"stageSince": "2023-11-07T05:31:56Z",
"tasks": {
"open": 123,
"yours": 123
},
"team": [
{
"addresses": [
{
"kind": "<string>",
"value": "<string>"
}
],
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>",
"total": 123
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}List Engagements
Silo deals with their counterparty, owner, evidence count, open commitments and last written update.
curl --request GET \
--url https://sonar.turtle.xyz/v1/organization/{organizationId}/engagements \
--header 'Authorization: Bearer <token>'import requests
url = "https://sonar.turtle.xyz/v1/organization/{organizationId}/engagements"
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}/engagements', 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}/engagements",
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}/engagements"
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}/engagements")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sonar.turtle.xyz/v1/organization/{organizationId}/engagements")
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{
"engagements": [
{
"counterparty": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
},
"counterpartyId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"createdAt": "2023-11-07T05:31:56Z",
"derived": [
"<string>"
],
"drafts": {
"disposition": "<string>",
"future": {},
"present": {},
"proposals": [
{
"allowance": "<string>",
"allowedBy": "248df4b7-aa70-47b8-a036-33ac447e668d",
"allower": {
"name": "<string>"
},
"amended": [
"<string>"
],
"causedBy": "248df4b7-aa70-47b8-a036-33ac447e668d",
"changedAt": "2023-11-07T05:31:56Z",
"changes": {},
"createdAt": "2023-11-07T05:31:56Z",
"decidedAt": "2023-11-07T05:31:56Z",
"decidedBy": "248df4b7-aa70-47b8-a036-33ac447e668d",
"decider": {
"name": "<string>"
},
"entity": {
"name": "<string>"
},
"entityId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"entityType": "<string>",
"evidence": [
{
"eventId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"messageId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"quotes": [
"<string>"
],
"sealed": "<string>",
"stance": "<string>"
}
],
"heldByAgent": true,
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"mine": true,
"op": "<string>",
"owner": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
},
"proposal": {},
"rationale": "<string>",
"reason": "<string>",
"refs": {},
"related": {
"name": "<string>"
},
"relatedId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"revertedBy": "248df4b7-aa70-47b8-a036-33ac447e668d",
"reverts": "248df4b7-aa70-47b8-a036-33ac447e668d",
"rule": {
"name": "<string>"
},
"ruleId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"source": "<string>",
"status": "<string>",
"supersededBy": "248df4b7-aa70-47b8-a036-33ac447e668d",
"user": {
"name": "<string>"
},
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
}
],
"refs": {}
},
"expectedRevenue": "<string>",
"fields": {},
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"lastActivityAt": "2023-11-07T05:31:56Z",
"lastUpdate": {
"createdAt": "2023-11-07T05:31:56Z",
"entityId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"entityType": "<string>",
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"op": "<string>",
"rationale": "<string>",
"source": "<string>"
},
"latestReport": {
"fields": {},
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"open": true,
"periodEnd": "2023-11-07T05:31:56Z",
"periodStart": "2023-11-07T05:31:56Z"
},
"nextTask": {
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"engagement": {
"name": "<string>",
"stage": "<string>"
},
"engagementId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"fields": {},
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"owner": {
"addresses": [
{
"kind": "<string>",
"value": "<string>"
}
],
"name": "<string>"
},
"ownerId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"plan": "<string>",
"status": "todo",
"statusSince": "2023-11-07T05:31:56Z"
},
"owner": {
"addresses": [
{
"kind": "<string>",
"value": "<string>"
}
],
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
},
"ownerId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"pipeline": {
"color": "<string>",
"type": "<string>"
},
"pipelineId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"stage": "<string>",
"stageSince": "2023-11-07T05:31:56Z",
"tasks": {
"open": 123,
"yours": 123
},
"team": [
{
"addresses": [
{
"kind": "<string>",
"value": "<string>"
}
],
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>",
"total": 123
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}Authorizations
Query Parameters
Only deals whose stage is of these kinds on its board (lead | discovery | closing | launch | closed | lost); repeat to OR. The open book is stageKind=lead&stageKind=discovery&stageKind=closing&stageKind=launch. A deal on a stage its board does not declare matches no kind.
6created (default) = newest first; recent = last activity first; stale = longest untouched first; revenue = largest expected revenue first as the board reads it (written, else its formula over the card), deals with no figure last; each board counts in its own revenueUnit, so filter by pipelineId to compare like with like.
created, recent, stale, revenue full (default) = every card value; card = only what a pipeline card draws: the title, the fields marked onCard and the money fields. GET /engagements/{id} has the rest. rundown = every card value, and beside each deal its latest report, the task it has owed longest and our people on it.
full, card, rundown 
