Resend an event to an endpoint
curl --request POST \
--url https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/events/{event_id}/resendconst options = {method: 'POST'};
fetch('https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/events/{event_id}/resend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/events/{event_id}/resend"
response = requests.post(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/events/{event_id}/resend"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "queued",
"attempt_id": "wha_8e42bc52310ceff8bed0ff7664efd4ed"
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "API key does not have permission for this operation",
"error_code": "FORBIDDEN"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}{
"detail": "Rate limit exceeded. Please retry after a few seconds.",
"error_code": "TOO_MANY_REQUESTS"
}Endpoint API
Resend an event to an endpoint
Re-deliver a past event to a specific endpoint. Requires the webhooks:write scope.
POST
/
v1
/
webhooks
/
endpoints
/
{endpoint_id}
/
events
/
{event_id}
/
resend
Resend an event to an endpoint
curl --request POST \
--url https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/events/{event_id}/resendconst options = {method: 'POST'};
fetch('https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/events/{event_id}/resend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/events/{event_id}/resend"
response = requests.post(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bachs.io/v1/webhooks/endpoints/{endpoint_id}/events/{event_id}/resend"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "queued",
"attempt_id": "wha_8e42bc52310ceff8bed0ff7664efd4ed"
}{
"detail": "Invalid API key",
"error_code": "UNAUTHORIZED"
}{
"detail": "API key does not have permission for this operation",
"error_code": "FORBIDDEN"
}{
"detail": "Resource not found",
"error_code": "NOT_FOUND"
}{
"detail": "Rate limit exceeded. Please retry after a few seconds.",
"error_code": "TOO_MANY_REQUESTS"
}Path Parameters
Response
The resend was queued.
The result of re-delivering an event.
The new delivery attempt created by this call. Match it against the attempts array on Get Event to see whether the redelivery succeeded.
Example:
"wha_8e42bc52310ceff8bed0ff7664efd4ed"

