Redeliver a webhook
curl --request POST \
--url https://api.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver \
--header 'Authorization: Bearer <token>' \
--header 'If-Match: <if-match>'import requests
url = "https://api.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver"
headers = {
"If-Match": "<if-match>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'If-Match': '<if-match>', Authorization: 'Bearer <token>'}
};
fetch('https://api.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver', 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.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver",
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>",
"If-Match: <if-match>"
],
]);
$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.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("If-Match", "<if-match>")
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.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver")
.header("If-Match", "<if-match>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["If-Match"] = '<if-match>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"job_id": "<string>",
"state": "pending"
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}Webhook delivery
Redeliver a webhook
Requires screenshot:write and the submitting API key. Sends the existing result without another render or capture charge. A stale generation, pending delivery, or unavailable record returns 409.
POST
/
v1
/
jobs
/
{id}
/
webhook
/
redeliver
Redeliver a webhook
curl --request POST \
--url https://api.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver \
--header 'Authorization: Bearer <token>' \
--header 'If-Match: <if-match>'import requests
url = "https://api.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver"
headers = {
"If-Match": "<if-match>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'If-Match': '<if-match>', Authorization: 'Bearer <token>'}
};
fetch('https://api.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver', 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.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver",
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>",
"If-Match: <if-match>"
],
]);
$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.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("If-Match", "<if-match>")
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.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver")
.header("If-Match", "<if-match>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.screenshotapi.tech/v1/jobs/{id}/webhook/redeliver")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["If-Match"] = '<if-match>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"job_id": "<string>",
"state": "pending"
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "invalid_request",
"message": "<string>",
"retriable": true,
"request_id": "<string>",
"docs_url": "<string>",
"details": {}
}
}Authorizations
Active sf_live_ API key with endpoint-specific scopes. Keep this credential server-side.
Headers
Exact quoted ETag from the delivery-status response.
Pattern:
^"[0-9]{1,3}"$Example:
"\"0\""
Path Parameters
Job ID returned by submission. Use the original submitting API key.