Calls
Resend webhooks
Deliver some of a call’s webhook events again — the same events, under the same event ids, so your deduplication sees one event.
POST
/
v2
/
call
/
{id}
/
webhooks
/
resend
Resend webhooks
curl --request POST \
--url https://api.verbeo.ai/v2/call/{id}/webhooks/resend \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
"<string>"
]
}
'import requests
url = "https://api.verbeo.ai/v2/call/{id}/webhooks/resend"
payload = { "events": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({events: ['<string>']})
};
fetch('https://api.verbeo.ai/v2/call/{id}/webhooks/resend', 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://api.verbeo.ai/v2/call/{id}/webhooks/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'events' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.verbeo.ai/v2/call/{id}/webhooks/resend"
payload := strings.NewReader("{\n \"events\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.verbeo.ai/v2/call/{id}/webhooks/resend")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"events\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v2/call/{id}/webhooks/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"events\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_bodyBody
string[]
required
Any of
call_started, call_ended, call_analyzed. They are sent in that order, and every one is attempted even if an earlier one fails.curl -X POST "https://api.verbeo.ai/v2/call/b7a3c1e4-94f2-4c9d-a8e0-5d9f6c2a1b34/webhooks/resend" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "events": ["call_ended", "call_analyzed"] }'
200 OK with how each attempt went. An event that failed now stays queued and is retried with backoff, so ok: false is progress, not a final verdict.
{
"success": true,
"data": {
"results": {
"call_ended": { "ok": true, "status": 200, "reason": "delivered" },
"call_analyzed": { "ok": false, "status": 503, "reason": "http_error" }
}
}
}
Errors
| Code | Status | When |
|---|---|---|
VALIDATION_FAILED | 422 | No events, or an unknown one. |
NOT_FOUND | 404 | No call with this id in your workspace. |
INTERNAL_ERROR | 500 | Nothing was sent; try again. |
Was this page helpful?
⌘I
Resend webhooks
curl --request POST \
--url https://api.verbeo.ai/v2/call/{id}/webhooks/resend \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
"<string>"
]
}
'import requests
url = "https://api.verbeo.ai/v2/call/{id}/webhooks/resend"
payload = { "events": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({events: ['<string>']})
};
fetch('https://api.verbeo.ai/v2/call/{id}/webhooks/resend', 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://api.verbeo.ai/v2/call/{id}/webhooks/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'events' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.verbeo.ai/v2/call/{id}/webhooks/resend"
payload := strings.NewReader("{\n \"events\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.verbeo.ai/v2/call/{id}/webhooks/resend")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"events\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v2/call/{id}/webhooks/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"events\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body