ListAttempts
curl --request GET \
--url https://developer.synq.io/api/deliveries/v1/{delivery_id}/attempts \
--header 'Authorization: Bearer <token>'import requests
url = "https://developer.synq.io/api/deliveries/v1/{delivery_id}/attempts"
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/{delivery_id}/attempts', 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/{delivery_id}/attempts",
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/{delivery_id}/attempts"
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/{delivery_id}/attempts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.synq.io/api/deliveries/v1/{delivery_id}/attempts")
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{
"attempts": [
{
"http": {
"method": "<string>",
"url": "<string>",
"requestHeaders": [
{
"name": "<string>",
"value": "<string>",
"withheld": true,
"fingerprint": "<string>",
"secretVersion": "<string>"
}
],
"requestBody": "<string>",
"requestBytes": 123,
"statusCode": 123,
"responseHeaders": [
{
"name": "<string>",
"value": "<string>",
"withheld": true,
"fingerprint": "<string>",
"secretVersion": "<string>"
}
],
"responseBody": "<string>",
"responseBytes": 123,
"responseTruncated": true
},
"deliveryId": "<string>",
"attempt": 123,
"requestId": "<string>",
"attemptedAt": "2023-11-07T05:31:56Z",
"duration": "<string>",
"error": "<string>"
}
]
}synq.deliveries.v1.DeliveriesService
ListAttempts
List every attempt made for one delivery, oldest first. A delivery is attempted at most ten times, so the result is small and is not paginated.
GET
/
api
/
deliveries
/
v1
/
{delivery_id}
/
attempts
ListAttempts
curl --request GET \
--url https://developer.synq.io/api/deliveries/v1/{delivery_id}/attempts \
--header 'Authorization: Bearer <token>'import requests
url = "https://developer.synq.io/api/deliveries/v1/{delivery_id}/attempts"
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/{delivery_id}/attempts', 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/{delivery_id}/attempts",
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/{delivery_id}/attempts"
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/{delivery_id}/attempts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.synq.io/api/deliveries/v1/{delivery_id}/attempts")
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{
"attempts": [
{
"http": {
"method": "<string>",
"url": "<string>",
"requestHeaders": [
{
"name": "<string>",
"value": "<string>",
"withheld": true,
"fingerprint": "<string>",
"secretVersion": "<string>"
}
],
"requestBody": "<string>",
"requestBytes": 123,
"statusCode": 123,
"responseHeaders": [
{
"name": "<string>",
"value": "<string>",
"withheld": true,
"fingerprint": "<string>",
"secretVersion": "<string>"
}
],
"responseBody": "<string>",
"responseBytes": 123,
"responseTruncated": true
},
"deliveryId": "<string>",
"attempt": 123,
"requestId": "<string>",
"attemptedAt": "2023-11-07T05:31:56Z",
"duration": "<string>",
"error": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Delivery whose attempts to list.
Required string length:
1 - 200Response
200 - application/json
Success
Every attempt made, oldest first. Empty for a delivery that sent nothing, and for one still waiting on its first attempt.
Show child attributes
Show child attributes
⌘I