Webhooks
A webhook tells your server the moment a design made by a key finishes, so nothing has to wait or poll.
- In the app, open Account, Developer API, edit the key and set its Webhook URL. It must be
httpson port 443 and reach the public internet. - Copy the key’s signing secret (
whsec_...) from the same screen and keep it with your server’s secrets. - Press Send test event. Your endpoint gets a
pingevent: answer it with any2xx.
Events
Section titled “Events”| Type | When | data |
|---|---|---|
design.succeeded |
A design finished with its images | { design } |
design.failed |
A design failed (its credits were refunded) | { design }, with design.error |
ping |
You pressed Send test event | {} |
{ "id": "evt_01a1ebfd495874a08036fd131dcc3bd2_succeeded", "type": "design.succeeded", "createdAt": "2026-11-18T09:31:12.000Z", "data": { "design": { "id": "01a1ebfd-4958-74a0-8036-fd131dcc3bd2", "status": "succeeded", "metadata": { "listingId": "4471" }, "images": [{ "id": "01a1ebfd-4964-759c-9af0-5e4b53a4509d", "asset": { "url": "https://cdn.remodeled.ai/..." } }] } }}design is the same object GET /public/v1/designs/{id} answers, including your metadata, so you can match the event to your own records without a lookup. The full shape is on the WebhookEvent object.
Check the signature
Section titled “Check the signature”Every delivery has a Remodeled-Signature header:
Remodeled-Signature: t=1700000000,v1=38877139021993b830af32feea6e18a8da83eb2f6e49ee50bd9e4cf4ca4d3789v1 is the hex HMAC-SHA256 of "<t>.<raw body>", keyed with your whsec_ secret. Check it against the raw body as received, before any JSON parsing, and refuse deliveries whose t is more than 5 minutes old. The SDKs do both:
import { webhooks } from 'remodeled-ai';
// Express: use express.raw({ type: 'application/json' }) on this routeapp.post('/webhooks/remodeled', async (req, res) => { let event; try { event = await webhooks.verify(req.body, req.header('Remodeled-Signature'), process.env.REMODELED_WEBHOOK_SECRET!); } catch { return res.status(400).end(); } if (event.type === 'design.succeeded') { await saveImages(event.data.design.metadata.listingId, event.data.design.images); } res.status(204).end();});verify uses WebCrypto, so it also runs on Cloudflare Workers, Deno, Bun and Vercel Edge.
import os
from flask import Flask, requestfrom remodeled import webhooks, WebhookVerificationError
app = Flask(__name__)
@app.post("/webhooks/remodeled")def remodeled_webhook(): try: event = webhooks.verify( request.get_data(), request.headers.get("Remodeled-Signature"), os.environ["REMODELED_WEBHOOK_SECRET"] ) except WebhookVerificationError: return "", 400 if event["type"] == "design.succeeded": save_images(event["data"]["design"]["metadata"]["listingId"], event["data"]["design"]["images"]) return "", 204import hashlib, hmac, time
def verify(raw_body: bytes, header: str, secret: str) -> bool: parts = dict(p.split("=", 1) for p in header.split(",")) if abs(time.time() - int(parts["t"])) > 300: return False expected = hmac.new(secret.encode(), f'{parts["t"]}.'.encode() + raw_body, hashlib.sha256).hexdigest() return hmac.compare_digest(expected, parts["v1"])To test your handler without the API, sign a payload yourself with webhooks.sign(payload, secret).
Delivery and retries
Section titled “Delivery and retries”- Answer with a
2xxwithin 5 seconds. Do slow work (downloading images, writing to your database) after you answer, or on a queue. - Anything else, or no answer, is retried with backoff: after 30 seconds, then doubling, 9 attempts over about a day.
- The same event can arrive more than once.
id(also in theRemodeled-Event-Idheader) is the same on every delivery of one event: store it and skip ones you have seen. - Deliveries are not ordered. Use
design.status, not the order events arrive in. - Redirects are not followed, and the URL must resolve to public addresses only.
- After 15 failures in a row the key’s webhook is paused, and the keys page says so. Saving the key or sending a test event turns it back on. Designs still finish while it is paused; fetch them with
GET /public/v1/designs.