Endpoint
Resend an event
/v1/events/{id}/resendQueues one new delivery of a stored event to one endpoint. The body and Orrerie-Event-Id are the same as the original; the signature timestamp is new. At most 100 resends an hour.
- Scope a restricted key needs
webhooks:write- Publishable key
- Not allowed: secret or restricted key only
- Idempotency-Key
- Recommended. It makes a retry safe.
Parameters
| Parameter | Type and place | Meaning |
|---|---|---|
idrequired | stringpath | The id of the event. |
Orrerie-Version | stringheader | API version date. Default: the version the key was created with. Example 2026-10-11. |
Idempotency-Key | stringheader | Makes a retry safe. Kept 24 hours. 1 to 255 characters. |
Request body
A JSON object. The body is required. A field the call does not list is refused with parameter_unknown.
| Field | Type | Meaning |
|---|---|---|
endpointrequired | string | A we_ id. |
Example request
curl
curl https://api.orrerie.com/v1/events/evt_srcv6en5gsj0b001t5650atx/resend \
-H "Authorization: Bearer $ORRERIE_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"endpoint": "we_tx7j2vmn3r2px2vpwbtz5h7b"
}'JavaScript
const response = await fetch("https://api.orrerie.com/v1/events/evt_srcv6en5gsj0b001t5650atx/resend", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ORRERIE_SECRET_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"endpoint": "we_tx7j2vmn3r2px2vpwbtz5h7b"
}),
});
const result = await response.json();
if (!response.ok) throw new Error(`${result.error.code}: ${result.error.message}`);
console.log(result);Python
import os
import requests
response = requests.post(
"https://api.orrerie.com/v1/events/evt_srcv6en5gsj0b001t5650atx/resend",
headers={"Authorization": f"Bearer {os.environ['ORRERIE_SECRET_KEY']}"},
json={
"endpoint": "we_tx7j2vmn3r2px2vpwbtz5h7b",
},
timeout=30,
)
result = response.json()
if not response.ok:
raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)PHP
<?php
$request = curl_init('https://api.orrerie.com/v1/events/evt_srcv6en5gsj0b001t5650atx/resend');
curl_setopt_array($request, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ORRERIE_SECRET_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'endpoint' => 'we_tx7j2vmn3r2px2vpwbtz5h7b',
]),
]);
$body = curl_exec($request);
if ($body === false) {
throw new RuntimeException(curl_error($request));
}
$result = json_decode($body, true);
if (curl_getinfo($request, CURLINFO_HTTP_CODE) >= 400) {
throw new RuntimeException($result['error']['code'] . ': ' . $result['error']['message']);
}
print_r($result);Responses
202 Accepted
The request was accepted and is waiting: for a person to approve it in the dashboard, or to be built in the background. Nothing has been signed or sent. The answer is the webhook_delivery object. Headers: Orrerie-Request-Id.
Example response, 202
{
"id": "whd_dybzssesbh653tqfzcx0txw8",
"object": "webhook_delivery",
"livemode": true,
"created": "2026-10-11T14:09:55.990Z",
"event": "evt_srcv6en5gsj0b001t5650atx",
"endpoint": "we_tx7j2vmn3r2px2vpwbtz5h7b",
"attempt": 2,
"status": "pending",
"response_status": null,
"duration_ms": null,
"error": null,
"next_attempt_at": null,
"manual": true
}Any other status: an error
A status of 400 or above answers with the error object. Branch on its code, never on its message.
Errors
Beside the errors every call can answer with (a bad key, a missing scope, the rate limit), this call answers with:
| Code | HTTP | Meaning |
|---|---|---|
webhook_endpoint_disabled | 409 | Re-enable the endpoint before resending to it. |
event_expired | 409 | The event is older than 30 days. |