curl --request POST \
--url https://api.uselora.com/v1/webhook-deliveries/{id}/resend \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.uselora.com/v1/webhook-deliveries/{id}/resend"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.uselora.com/v1/webhook-deliveries/{id}/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.uselora.com/v1/webhook-deliveries/{id}/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.uselora.com/v1/webhook-deliveries/{id}/resend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.uselora.com/v1/webhook-deliveries/{id}/resend")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uselora.com/v1/webhook-deliveries/{id}/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"attemptCount": 0,
"attempts": [
{
"durationMs": 0,
"id": "<string>",
"number": 0,
"outcome": "succeeded",
"responseExcerpt": "<string>",
"responseStatus": 0,
"startedAt": "2023-11-07T05:31:56Z",
"trigger": "scheduled"
}
],
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"endpointId": "wh_0198f2a4-7c1b-7d3e-9a52-3f6b1c2d4e5f",
"event": "shortcut.created",
"eventId": "evt_0198f2a4-7c1b-7d3e-9a52-3f6b1c2d4e5f",
"id": "0198f2a4-7c1b-7d3e-9a52-3f6b1c2d4e5f",
"lastError": "<string>",
"nextAttemptAt": "2023-11-07T05:31:56Z",
"outcome": "<string>",
"status": "pending"
}{
"error": "<string>",
"requestId": "<string>",
"code": "<string>",
"traceId": "<string>"
}{
"error": "<string>",
"code": "plan_requires_upgrade",
"requestId": "<string>",
"traceId": "<string>",
"current_plan": "<string>",
"required_capability": "<string>"
}{
"error": "<string>",
"requestId": "<string>",
"code": "<string>",
"traceId": "<string>",
"required_scope": "<string>"
}{
"error": "<string>",
"requestId": "<string>",
"code": "<string>",
"traceId": "<string>"
}{
"error": "<string>",
"requestId": "<string>",
"code": "<string>",
"traceId": "<string>"
}{
"error": "<string>",
"code": "payload_too_large",
"requestId": "<string>",
"traceId": "<string>"
}{
"error": "<string>",
"requestId": "<string>",
"code": "<string>",
"traceId": "<string>"
}{
"error": "<string>",
"code": "internal_error",
"requestId": "<string>",
"traceId": "<string>"
}Resend a delivery
Sends a delivery again, once, and returns the delivery as it stands after the attempt. Limited to 30 a minute per workspace. A delivery of an endpoint made by an integration (source: subscription) is not found here.
The request carries exactly the same body and the same webhook-id as the original, with a fresh timestamp and signature, so a receiver that deduplicates on webhook-id can recognise it. It is one try with no retries. A failed resend does not count towards turning the endpoint off, but a 410 Gone answer still does, and a success clears the endpoint’s failure history.
A resend needs the Business plan and an endpoint that is switched on: after a downgrade it answers 402, and to a switched-off endpoint 409 (endpoint_disabled), and the delivery is left as it was. Otherwise it follows the rules of any attempt. A shortcut.created or shortcut.updated event is not sent if its shortcut is private, unlisted or deleted by now; the delivery’s status is then skipped. A resend goes to the endpoint’s current URL, even if the URL changed since the delivery was queued. A shortcut.deleted event carries only the ID and is always sent. A delivery that is still waiting for an automatic retry cannot be resent.
curl --request POST \
--url https://api.uselora.com/v1/webhook-deliveries/{id}/resend \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.uselora.com/v1/webhook-deliveries/{id}/resend"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.uselora.com/v1/webhook-deliveries/{id}/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.uselora.com/v1/webhook-deliveries/{id}/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.uselora.com/v1/webhook-deliveries/{id}/resend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.uselora.com/v1/webhook-deliveries/{id}/resend")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uselora.com/v1/webhook-deliveries/{id}/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"attemptCount": 0,
"attempts": [
{
"durationMs": 0,
"id": "<string>",
"number": 0,
"outcome": "succeeded",
"responseExcerpt": "<string>",
"responseStatus": 0,
"startedAt": "2023-11-07T05:31:56Z",
"trigger": "scheduled"
}
],
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"endpointId": "wh_0198f2a4-7c1b-7d3e-9a52-3f6b1c2d4e5f",
"event": "shortcut.created",
"eventId": "evt_0198f2a4-7c1b-7d3e-9a52-3f6b1c2d4e5f",
"id": "0198f2a4-7c1b-7d3e-9a52-3f6b1c2d4e5f",
"lastError": "<string>",
"nextAttemptAt": "2023-11-07T05:31:56Z",
"outcome": "<string>",
"status": "pending"
}{
"error": "<string>",
"requestId": "<string>",
"code": "<string>",
"traceId": "<string>"
}{
"error": "<string>",
"code": "plan_requires_upgrade",
"requestId": "<string>",
"traceId": "<string>",
"current_plan": "<string>",
"required_capability": "<string>"
}{
"error": "<string>",
"requestId": "<string>",
"code": "<string>",
"traceId": "<string>",
"required_scope": "<string>"
}{
"error": "<string>",
"requestId": "<string>",
"code": "<string>",
"traceId": "<string>"
}{
"error": "<string>",
"requestId": "<string>",
"code": "<string>",
"traceId": "<string>"
}{
"error": "<string>",
"code": "payload_too_large",
"requestId": "<string>",
"traceId": "<string>"
}{
"error": "<string>",
"requestId": "<string>",
"code": "<string>",
"traceId": "<string>"
}{
"error": "<string>",
"code": "internal_error",
"requestId": "<string>",
"traceId": "<string>"
}Authorizations
Workspace API key (lora_sk_…) sent as Authorization: Bearer <api_key>. Each scoped operation names the scope it requires in its security requirement, for example shortcuts.write; a key without it receives 403 with code: insufficient_scope. GET /v1/qr also accepts anonymous requests and requires no scope.
Path Parameters
Response
The delivery after the resend, with the new attempt (trigger: manual).
One event on its way to one endpoint, with every attempt made. Deliveries are listed for 30 days.
When the delivery ended, or null while it is pending.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$When the delivery was queued, ISO 8601.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$The event's unique ID. A real event uses evt_ and a UUID, a test send evt_test_ and a UUID, and a sample from the sample operation evt_sample_ and the event name. The same for every delivery, retry and resend of the event. Deduplicate on it, or on the webhook-id header, which carries the same value.
"evt_0198f2a4-7c1b-7d3e-9a52-3f6b1c2d4e5f"
When the next attempt is due, while the delivery is pending.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$pending: waiting for an attempt or a retry. succeeded: the receiver answered 2xx. failed: ended without success, because retries ran out or the failure cannot be retried. skipped: not sent, because the shortcut is private, unlisted or deleted by now, the endpoint is off, or the plan no longer includes webhooks. canceled: the endpoint's URL changed, an event type was removed from it, or it was turned off or deleted. quarantined: Lora stopped processing the delivery after repeated internal errors. expired: reserved; webhook endpoints do not use it today.
pending, succeeded, failed, skipped, canceled, expired, quarantined Was this page helpful?