Retry a failed delivery
curl --request POST \
--url https://api.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retryimport requests
url = "https://api.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry', 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.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://api.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry"
req, _ := http.NewRequest("POST", url, nil)
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.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"id": "del_123abc",
"webhookId": "wh_456def",
"eventType": "player.level_up",
"payload": {
"id": "del_123abc",
"event": "player.level_up",
"timestamp": "2024-01-15T10:30:00Z",
"projectId": "proj_456def",
"data": {
"player": {
"id": "p1",
"name": "Player 1"
},
"oldLevel": 5,
"newLevel": 6
}
},
"requestUrl": "https://api.yourapp.com/webhooks/engagefabric",
"requestMethod": "POST",
"status": "SUCCESS",
"attempt": 1,
"maxAttempts": 3,
"createdAt": "2024-01-15T10:30:00Z",
"eventId": "evt_789xyz",
"responseCode": 200,
"responseBody": "{\"received\": true}",
"responseTimeMs": 125,
"nextRetryAt": "2024-01-15T10:35:00Z",
"lastError": "Connection timeout",
"sentAt": "2024-01-15T10:30:01Z",
"completedAt": "2024-01-15T10:30:01Z"
}Webhooks
Retry a failed delivery
POST
/
api
/
v1
/
webhooks
/
{id}
/
deliveries
/
{deliveryId}
/
retry
Retry a failed delivery
curl --request POST \
--url https://api.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retryimport requests
url = "https://api.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry', 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.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://api.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry"
req, _ := http.NewRequest("POST", url, nil)
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.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/api/v1/webhooks/{id}/deliveries/{deliveryId}/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"id": "del_123abc",
"webhookId": "wh_456def",
"eventType": "player.level_up",
"payload": {
"id": "del_123abc",
"event": "player.level_up",
"timestamp": "2024-01-15T10:30:00Z",
"projectId": "proj_456def",
"data": {
"player": {
"id": "p1",
"name": "Player 1"
},
"oldLevel": 5,
"newLevel": 6
}
},
"requestUrl": "https://api.yourapp.com/webhooks/engagefabric",
"requestMethod": "POST",
"status": "SUCCESS",
"attempt": 1,
"maxAttempts": 3,
"createdAt": "2024-01-15T10:30:00Z",
"eventId": "evt_789xyz",
"responseCode": 200,
"responseBody": "{\"received\": true}",
"responseTimeMs": 125,
"nextRetryAt": "2024-01-15T10:35:00Z",
"lastError": "Connection timeout",
"sentAt": "2024-01-15T10:30:01Z",
"completedAt": "2024-01-15T10:30:01Z"
}Response
200 - application/json
Example:
"del_123abc"
Example:
"wh_456def"
Example:
"player.level_up"
Example:
{
"id": "del_123abc",
"event": "player.level_up",
"timestamp": "2024-01-15T10:30:00Z",
"projectId": "proj_456def",
"data": {
"player": { "id": "p1", "name": "Player 1" },
"oldLevel": 5,
"newLevel": 6
}
}
Example:
"https://api.yourapp.com/webhooks/engagefabric"
Example:
"POST"
Available options:
PENDING, PROCESSING, SUCCESS, FAILED, RETRYING, CANCELLED Example:
"SUCCESS"
Example:
1
Example:
3
Example:
"2024-01-15T10:30:00Z"
Example:
"evt_789xyz"
Example:
200
Example:
"{\"received\": true}"
Example:
125
Example:
"2024-01-15T10:35:00Z"
Example:
"Connection timeout"
Example:
"2024-01-15T10:30:01Z"
Example:
"2024-01-15T10:30:01Z"
