POST/v1/webhooks
Subscribe a URL to this account's render, video and collection events
Every event in events (default: all) is POSTed to url as JSON: { id, event, created, image | screenshot | pdf | video | collection: the record }, signed in X-ImageAPIs-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with the secret>; the secret is in this response and in GET /v1/webhooks/{id}. Answer 2xx; 408, 429, 5xx and 10 s timeouts are retried after 1, 10 and 60 minutes; 410 Gone unsubscribes. render.* covers API images, screenshots, PDFs, OG cards, charts, QR codes and conversions (render.failed only with webhook_url); collection.completed fires even if some items failed. Collection items and signed-URL renders send no events. Up to 20 per account.
{
"url": "https://example.com/hooks/imageapis",
"events": [
"render.completed",
"video.completed"
],
"description": "Post new images to the team channel"
}
curl -X POST "https://api.imageapis.com/v1/webhooks" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/hooks/imageapis",
"events": [
"render.completed",
"video.completed"
],
"description": "Post new images to the team channel"
}'
import requests
r = requests.post("https://api.imageapis.com/v1/webhooks", headers={"X-API-Key": "YOUR_KEY"}, json={
"url": "https://example.com/hooks/imageapis",
"events": [
"render.completed",
"video.completed"
],
"description": "Post new images to the team channel"
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.imageapis.com/v1/webhooks", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"url": "https://example.com/hooks/imageapis",
"events": [
"render.completed",
"video.completed"
],
"description": "Post new images to the team channel"
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
201Created
{
"id": "hook_8m3kq2xv7zpw4rcn6bdt",
"object": "webhook",
"url": "https://example.com/hooks/imageapis",
"events": [
"render.completed",
"video.completed"
],
"description": "Post new images to the team channel",
"secret": "whsec_5f0c1d9a7e2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
"created": "2026-10-11T18:20:00Z",
"last_delivery": {
"webhook": "hook_8m3kq2xv7zpw4rcn6bdt",
"attempt": 1,
"status": 200,
"ms": 182,
"at": "2026-10-11T18:24:09Z"
}
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
"error": "string",
"message": "string",
"param": "string"
}