Get Event
curl --request GET \
--url https://sonar.turtle.xyz/v1/organization/{organizationId}/events/{eventId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sonar.turtle.xyz/v1/organization/{organizationId}/events/{eventId}"
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}/events/{eventId}', 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}/events/{eventId}",
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}/events/{eventId}"
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}/events/{eventId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sonar.turtle.xyz/v1/organization/{organizationId}/events/{eventId}")
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{
"event": {
"action": "<string>",
"backfill": true,
"channel": "<string>",
"conversation": {
"address": "<string>",
"crowded": true,
"kind": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"threads": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
},
"externalId": "<string>",
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"ingestedAt": "2023-11-07T05:31:56Z",
"integrationId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"mutationCounts": {},
"occurredAt": "2023-11-07T05:31:56Z",
"payload": {
"forwardedFrom": {
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"name": "<string>",
"username": "<string>"
},
"media": [
{
"description": "<string>",
"mime": "<string>",
"name": "<string>",
"text": "<string>"
}
],
"members": [
{
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"name": "<string>",
"username": "<string>"
}
],
"mentions": [
{
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"name": "<string>",
"username": "<string>"
}
],
"reaction": "<string>",
"text": "<string>",
"topic": {
"id": 123,
"title": "<string>"
}
},
"redacted": {},
"refExternalId": "<string>",
"sealed": {
"conversationKind": "<string>",
"reason": "<string>"
},
"sender": {
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"description": "<string>",
"email": "<string>",
"name": "<string>",
"profile": {
"bio": "<string>",
"title": "<string>"
},
"username": "<string>"
},
"status": {
"errors": [
{
"at": "2023-11-07T05:31:56Z",
"error": "<string>"
}
],
"failed": "2023-11-07T05:31:56Z",
"pending": "2023-11-07T05:31:56Z",
"providerId": "<string>",
"sending": "2023-11-07T05:31:56Z",
"sent": "2023-11-07T05:31:56Z"
},
"threads": [
{
"linkedAt": "2023-11-07T05:31:56Z",
"thread": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"title": "<string>"
}
}
],
"wire": {
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"description": "<string>",
"email": "<string>",
"name": "<string>",
"profile": {
"bio": "<string>",
"title": "<string>"
},
"username": "<string>"
},
"wires": [
{
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"description": "<string>",
"integrationId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
]
},
"mutations": [
{
"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"
}
],
"threads": [
{
"channels": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"summary": "<string>",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}Events
Get Event
One immutable event with the storylines it belongs to and every mutation citing it.
GET
/
organization
/
{organizationId}
/
events
/
{eventId}
Get Event
curl --request GET \
--url https://sonar.turtle.xyz/v1/organization/{organizationId}/events/{eventId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sonar.turtle.xyz/v1/organization/{organizationId}/events/{eventId}"
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}/events/{eventId}', 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}/events/{eventId}",
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}/events/{eventId}"
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}/events/{eventId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sonar.turtle.xyz/v1/organization/{organizationId}/events/{eventId}")
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{
"event": {
"action": "<string>",
"backfill": true,
"channel": "<string>",
"conversation": {
"address": "<string>",
"crowded": true,
"kind": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"threads": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
},
"externalId": "<string>",
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"ingestedAt": "2023-11-07T05:31:56Z",
"integrationId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"mutationCounts": {},
"occurredAt": "2023-11-07T05:31:56Z",
"payload": {
"forwardedFrom": {
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"name": "<string>",
"username": "<string>"
},
"media": [
{
"description": "<string>",
"mime": "<string>",
"name": "<string>",
"text": "<string>"
}
],
"members": [
{
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"name": "<string>",
"username": "<string>"
}
],
"mentions": [
{
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"name": "<string>",
"username": "<string>"
}
],
"reaction": "<string>",
"text": "<string>",
"topic": {
"id": 123,
"title": "<string>"
}
},
"redacted": {},
"refExternalId": "<string>",
"sealed": {
"conversationKind": "<string>",
"reason": "<string>"
},
"sender": {
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"description": "<string>",
"email": "<string>",
"name": "<string>",
"profile": {
"bio": "<string>",
"title": "<string>"
},
"username": "<string>"
},
"status": {
"errors": [
{
"at": "2023-11-07T05:31:56Z",
"error": "<string>"
}
],
"failed": "2023-11-07T05:31:56Z",
"pending": "2023-11-07T05:31:56Z",
"providerId": "<string>",
"sending": "2023-11-07T05:31:56Z",
"sent": "2023-11-07T05:31:56Z"
},
"threads": [
{
"linkedAt": "2023-11-07T05:31:56Z",
"thread": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"title": "<string>"
}
}
],
"wire": {
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"description": "<string>",
"email": "<string>",
"name": "<string>",
"profile": {
"bio": "<string>",
"title": "<string>"
},
"username": "<string>"
},
"wires": [
{
"address": "<string>",
"contact": {
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"matchedBy": "<string>",
"name": "<string>",
"orgs": [
{
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
],
"status": "<string>",
"userId": "248df4b7-aa70-47b8-a036-33ac447e668d"
},
"description": "<string>",
"integrationId": "248df4b7-aa70-47b8-a036-33ac447e668d",
"name": "<string>"
}
]
},
"mutations": [
{
"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"
}
],
"threads": [
{
"channels": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"summary": "<string>",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}{
"code": 123,
"context": {},
"error": "<string>",
"status": "<string>"
}Authorizations
bearerAuthapiKeyAuth

