List terminal delivery logs
curl --request GET \
--url https://data.gravia.trade/v1/webhooks/{id}/logs \
--header 'Authorization: <api-key>'import requests
url = "https://data.gravia.trade/v1/webhooks/{id}/logs"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://data.gravia.trade/v1/webhooks/{id}/logs', 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://data.gravia.trade/v1/webhooks/{id}/logs",
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: <api-key>"
],
]);
$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://data.gravia.trade/v1/webhooks/{id}/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.gravia.trade/v1/webhooks/{id}/logs")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.gravia.trade/v1/webhooks/{id}/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": null,
"data": {
"webhook_id": "b2fa6dc4-3eaf-4b12-bc9d-a7cf79178f23",
"total": 0,
"logs": [],
"pagination": {
"has_more": false
}
},
"info": {
"version": "1.0.0",
"credits_consumed": 0
}
}{
"success": false,
"message": "<string>",
"data": null
}{
"success": false,
"message": "<string>",
"data": null
}{
"success": false,
"message": "<string>",
"data": null
}{
"success": false,
"message": "<string>",
"data": null
}{
"success": false,
"message": "<string>",
"data": null
}Webhooks
List terminal delivery logs
List terminal delivery results, newest first. Time bounds use Unix milliseconds. Pass pagination.key as pagination_key for the next page. Test callbacks are excluded; recent results may take time to appear.
GET
/
v1
/
webhooks
/
{id}
/
logs
List terminal delivery logs
curl --request GET \
--url https://data.gravia.trade/v1/webhooks/{id}/logs \
--header 'Authorization: <api-key>'import requests
url = "https://data.gravia.trade/v1/webhooks/{id}/logs"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://data.gravia.trade/v1/webhooks/{id}/logs', 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://data.gravia.trade/v1/webhooks/{id}/logs",
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: <api-key>"
],
]);
$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://data.gravia.trade/v1/webhooks/{id}/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.gravia.trade/v1/webhooks/{id}/logs")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.gravia.trade/v1/webhooks/{id}/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": null,
"data": {
"webhook_id": "b2fa6dc4-3eaf-4b12-bc9d-a7cf79178f23",
"total": 0,
"logs": [],
"pagination": {
"has_more": false
}
},
"info": {
"version": "1.0.0",
"credits_consumed": 0
}
}{
"success": false,
"message": "<string>",
"data": null
}{
"success": false,
"message": "<string>",
"data": null
}{
"success": false,
"message": "<string>",
"data": null
}{
"success": false,
"message": "<string>",
"data": null
}{
"success": false,
"message": "<string>",
"data": null
}Authorizations
Raw database-backed API key.
Path Parameters
Query Parameters
Required range:
1 <= x <= 250Required range:
x >= 0Required range:
x >= 0