curl --request GET \
--url https://apiv2.vodex.ai/v1/webhook-deliveries/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiv2.vodex.ai/v1/webhook-deliveries/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apiv2.vodex.ai/v1/webhook-deliveries/{id}', 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://apiv2.vodex.ai/v1/webhook-deliveries/{id}",
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://apiv2.vodex.ai/v1/webhook-deliveries/{id}"
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://apiv2.vodex.ai/v1/webhook-deliveries/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.vodex.ai/v1/webhook-deliveries/{id}")
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{
"id": "<string>",
"eventId": "<string>",
"type": "interaction.completed",
"url": "<string>",
"status": "pending",
"attempts": 123,
"lastStatus": 123,
"lastMs": 123,
"lastBody": "<string>",
"lastError": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"nextAttemptAt": "2023-11-07T05:31:56Z",
"payload": {},
"rawBody": "<string>",
"signature": {
"header": "x-vodex-signature",
"scheme": "t=<unix>,v1=HMAC-SHA256(secret, \"<t>.<rawBody>\")",
"toleranceSeconds": 300
}
}{
"error": "not found"
}{
"error": "not found"
}Fetch a delivery
The whole record, including the exact JSON that was POSTed. This is what
answers “we got something, but the signature does not verify”: the
x-vodex-signature header is rebuilt with a fresh timestamp on every
attempt, so it is not stored — but rawBody plus the t from the
delivery the consumer received reproduces the signed string exactly.
A delivery id belonging to another tenant is 404, never 403.
curl --request GET \
--url https://apiv2.vodex.ai/v1/webhook-deliveries/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://apiv2.vodex.ai/v1/webhook-deliveries/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apiv2.vodex.ai/v1/webhook-deliveries/{id}', 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://apiv2.vodex.ai/v1/webhook-deliveries/{id}",
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://apiv2.vodex.ai/v1/webhook-deliveries/{id}"
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://apiv2.vodex.ai/v1/webhook-deliveries/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.vodex.ai/v1/webhook-deliveries/{id}")
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{
"id": "<string>",
"eventId": "<string>",
"type": "interaction.completed",
"url": "<string>",
"status": "pending",
"attempts": 123,
"lastStatus": 123,
"lastMs": 123,
"lastBody": "<string>",
"lastError": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"nextAttemptAt": "2023-11-07T05:31:56Z",
"payload": {},
"rawBody": "<string>",
"signature": {
"header": "x-vodex-signature",
"scheme": "t=<unix>,v1=HMAC-SHA256(secret, \"<t>.<rawBody>\")",
"toleranceSeconds": 300
}
}{
"error": "not found"
}{
"error": "not found"
}Authorizations
Tenant API key (vdx_live_…) as Authorization: Bearer.
Path Parameters
Response
Delivery.
A delivery record with the sent body and how it was signed.
"interaction.completed"
There is no separate dead-letter value: a delivery that exhausts its attempts is failed with a null nextAttemptAt, which is what distinguishes it from a failed row still waiting for its next try.
pending, delivered, failed The event as an object — see InteractionCompleted.
The exact bytes that were POSTed. Re-serializing payload yourself is not guaranteed to reproduce them, and a signature is over bytes.
How to reproduce the header, since it is not stored.
Show child attributes
Show child attributes