curl --request GET \
--url https://developer.synq.io/api/deliveries/v1 \
--header 'Authorization: Bearer <token>'import requests
url = "https://developer.synq.io/api/deliveries/v1"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://developer.synq.io/api/deliveries/v1', 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://developer.synq.io/api/deliveries/v1",
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://developer.synq.io/api/deliveries/v1"
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://developer.synq.io/api/deliveries/v1")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.synq.io/api/deliveries/v1")
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{
"deliveries": [
{
"id": "<string>",
"eventId": "<string>",
"integrationId": "<string>",
"eventType": "<string>",
"subject": {
"type": "SUBJECT_TYPE_UNSPECIFIED",
"id": "<string>",
"title": "<string>",
"url": "<string>"
},
"createdAt": "2023-01-15T01:30:15.01Z",
"outcome": "OUTCOME_UNSPECIFIED",
"skipReason": "SKIP_REASON_UNSPECIFIED",
"attemptCount": 123,
"lastAttemptAt": "2023-01-15T01:30:15.01Z",
"nextAttemptAt": "2023-01-15T01:30:15.01Z",
"duration": "<string>",
"statusCode": 123,
"redeliveryOf": "<string>",
"matchedAlertConfigs": [
{
"alertConfigId": "<string>",
"name": "<string>",
"fqn": "<string>",
"ownershipId": "<string>",
"ownerPath": "<string>"
}
],
"correlationKey": "<string>"
}
],
"pageInfo": {
"totalCount": 123,
"count": 123,
"lastId": "<string>"
}
}ListDeliveries
List deliveries, newest event first. With no integration_id this is the
whole workspace’s feed; with one it is that integration’s.
curl --request GET \
--url https://developer.synq.io/api/deliveries/v1 \
--header 'Authorization: Bearer <token>'import requests
url = "https://developer.synq.io/api/deliveries/v1"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://developer.synq.io/api/deliveries/v1', 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://developer.synq.io/api/deliveries/v1",
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://developer.synq.io/api/deliveries/v1"
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://developer.synq.io/api/deliveries/v1")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.synq.io/api/deliveries/v1")
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{
"deliveries": [
{
"id": "<string>",
"eventId": "<string>",
"integrationId": "<string>",
"eventType": "<string>",
"subject": {
"type": "SUBJECT_TYPE_UNSPECIFIED",
"id": "<string>",
"title": "<string>",
"url": "<string>"
},
"createdAt": "2023-01-15T01:30:15.01Z",
"outcome": "OUTCOME_UNSPECIFIED",
"skipReason": "SKIP_REASON_UNSPECIFIED",
"attemptCount": 123,
"lastAttemptAt": "2023-01-15T01:30:15.01Z",
"nextAttemptAt": "2023-01-15T01:30:15.01Z",
"duration": "<string>",
"statusCode": 123,
"redeliveryOf": "<string>",
"matchedAlertConfigs": [
{
"alertConfigId": "<string>",
"name": "<string>",
"fqn": "<string>",
"ownershipId": "<string>",
"ownerPath": "<string>"
}
],
"correlationKey": "<string>"
}
],
"pageInfo": {
"totalCount": 123,
"count": 123,
"lastId": "<string>"
}
}Authorizations
Query Parameters
Restrict to one event — every integration it reached, and what each did with
it. This is the event_id from a received webhook payload. Setting it
searches everything still retained, ignoring since and until.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Restrict to these outcomes. Empty matches every outcome.
5Outcome is what became of a delivery. It is a state the service maintains, not something to recompute from status codes: a 500 that will be retried and a 500 that exhausted the retries are the same status and different outcomes.
OUTCOME_UNSPECIFIED, OUTCOME_PENDING, OUTCOME_DELIVERED, OUTCOME_FAILED, OUTCOME_SKIPPED, OUTCOME_NOT_ROUTED Non-negative fractions of a second at nanosecond resolution. This field is the nanosecond portion of the duration, not an alternative to seconds. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be between 0 and 999,999,999 inclusive.