curl -X POST https://tawked.com/v1/webhooks/0199f210-4e5f-7a6b-8c7d-8e9f0a1b2c34/replay \
-H "Authorization: Bearer tk_live_xxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"since": "2026-10-22T00:00:00Z",
"until": "2026-10-23T00:00:00Z",
"status": "failed"
}'const res = await fetch("https://tawked.com/v1/webhooks/0199f210-4e5f-7a6b-8c7d-8e9f0a1b2c34/replay", {
method: "POST",
headers: {
Authorization: "Bearer tk_live_xxxxxxxxxxxxxxxxxxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({
"since": "2026-10-22T00:00:00Z",
"until": "2026-10-23T00:00:00Z",
"status": "failed"
}),
});
const data = await res.json();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tawked.com/v1/webhooks/{id}/replay",
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([
'since' => '<string>',
'until' => '<string>',
'status' => '<string>',
'events' => '<array>'
]),
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;
}import requests
res = requests.post(
"https://tawked.com/v1/webhooks/0199f210-4e5f-7a6b-8c7d-8e9f0a1b2c34/replay",
headers={"Authorization": "Bearer tk_live_xxxxxxxxxxxxxxxxxxxx"},
json={
"since": "2026-10-22T00:00:00Z",
"until": "2026-10-23T00:00:00Z",
"status": "failed"
},
)
data = res.json(){
"id": "0199f230-6a7b-7c8d-9e0f-0a1b2c3d4e56",
"state": "queued",
"matched": 42
}{
"error": "invalid_json"
}{
"error": "unauthorized"
}{
"error": "application_key_required"
}{
"error": "not_found"
}{
"error": "replay_running"
}{
"error": "too_many_requests"
}{
"error": "internal_error"
}Replay deliveries
Sends again, in date order, up to 1000 final deliveries of the endpoint created in a window of at most 7 days within the last 30 (Tawked’s limits): the failed ones by default, or all. One replay runs at a time for an endpoint (409 replay_running); six an hour. 202 with the replay; read its progress with GET /v1/webhooks/{id}/replays/{replay}. A live key of the application with the explicit webhooks:manage: a full-access key does not hold it.
curl -X POST https://tawked.com/v1/webhooks/0199f210-4e5f-7a6b-8c7d-8e9f0a1b2c34/replay \
-H "Authorization: Bearer tk_live_xxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"since": "2026-10-22T00:00:00Z",
"until": "2026-10-23T00:00:00Z",
"status": "failed"
}'const res = await fetch("https://tawked.com/v1/webhooks/0199f210-4e5f-7a6b-8c7d-8e9f0a1b2c34/replay", {
method: "POST",
headers: {
Authorization: "Bearer tk_live_xxxxxxxxxxxxxxxxxxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({
"since": "2026-10-22T00:00:00Z",
"until": "2026-10-23T00:00:00Z",
"status": "failed"
}),
});
const data = await res.json();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tawked.com/v1/webhooks/{id}/replay",
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([
'since' => '<string>',
'until' => '<string>',
'status' => '<string>',
'events' => '<array>'
]),
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;
}import requests
res = requests.post(
"https://tawked.com/v1/webhooks/0199f210-4e5f-7a6b-8c7d-8e9f0a1b2c34/replay",
headers={"Authorization": "Bearer tk_live_xxxxxxxxxxxxxxxxxxxx"},
json={
"since": "2026-10-22T00:00:00Z",
"until": "2026-10-23T00:00:00Z",
"status": "failed"
},
)
data = res.json(){
"id": "0199f230-6a7b-7c8d-9e0f-0a1b2c3d4e56",
"state": "queued",
"matched": 42
}{
"error": "invalid_json"
}{
"error": "unauthorized"
}{
"error": "application_key_required"
}{
"error": "not_found"
}{
"error": "replay_running"
}{
"error": "too_many_requests"
}{
"error": "internal_error"
}Authorizations
Authorization: Bearer . An application key (tk_live_, tk_test_) has full access, which covers every product and any product added later, or custom access, chosen when the key is created: one or more of the scopes verify:check, verify:send (includes verify:check), notifications:read, notifications:send (includes notifications:read), email:read, email:send (includes email:read), email:manage (includes email:send), webhooks:manage, email:inbound, notifications:templates (includes notifications:read), chat:menus, chat:attendant. No key made on the API keys page holds notifications:templates, full access included: the three template writes answer such a key 403 insufficient_scope. A connected app's key holds it. Nor chat:menus: the five conversation menu operations answer such a key 403 insufficient_scope, and a connected app's key holds it once the client approved it. Nor chat:attendant: the five auto-attendant operations answer such a key 403 insufficient_scope too, and a connected app's key holds it once the client approved it. email:manage and webhooks:manage are held only by a key someone chose them for: a full-access key, old or new, never holds them. email:inbound, which reads, deletes and forwards received e-mail, is opt-in on every key, full access included: a key holds it only when it was turned on when the key was created. A call outside the key's access answers 403 insufficient_scope and names the scope it needs in the WWW-Authenticate response header. A partner key (tk_partner_) always has full access. Whatever its access, a key is a server-side secret.
Path Parameters
The endpoint's id.