Skip to content

Webhooks

A webhook tells your server the moment a design made by a key finishes, so nothing has to wait or poll.

  1. In the app, open Account, Developer API, edit the key and set its Webhook URL. It must be https on port 443 and reach the public internet.
  2. Copy the key’s signing secret (whsec_...) from the same screen and keep it with your server’s secrets.
  3. Press Send test event. Your endpoint gets a ping event: answer it with any 2xx.
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.

Every delivery has a Remodeled-Signature header:

Remodeled-Signature: t=1700000000,v1=38877139021993b830af32feea6e18a8da83eb2f6e49ee50bd9e4cf4ca4d3789

v1 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 route
app.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.

To test your handler without the API, sign a payload yourself with webhooks.sign(payload, secret).

  • Answer with a 2xx within 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 the Remodeled-Event-Id header) 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.