Know when a process is published
The message the builder posts to your page and the signed webhooks your backend receives when a process is published or updated.
When someone publishes a process in the builder, Ovenbird tells your product in two ways. Use either or both: the page message to react straight away in the browser (close the builder, show the process), the webhook to keep your records right even if the person closed the tab.
When a process is published inside your builder, it's also shared by link and allowed on your websites automatically, so its embed link works in your product at once.
In your page: a message from the builder
The builder posts a message to the page that framed it (only to your websites):
window.addEventListener("message", (event) => {
if (event.origin !== "https://ovenbird.tech" || event.data?.source !== "ovenbird") return;
const { type, process } = event.data;
if (type === "process.published" || type === "process.updated") {
// process: { processId, title, embedUrl, embed: { runbook, workflow, article }, shareUrl, updatedAt }
saveAndShow(process);
}
if (type === "builder.done") closeBuilder();
});
type | When |
|---|---|
process.published | A process was published for the first time. |
process.updated | A live process was published again with changes. Its links stay the same. |
builder.done | The person clicked Done after publishing. Close the builder, or keep it open: it's your choice. |
After publishing, the builder shows Done and Keep editing; it never closes itself.
On your backend: webhooks
If you gave us a webhook address, we POST each event there:
{
"id": "evt_…",
"type": "process.published",
"createdAt": "2026-10-23T10:02:11.000Z",
"data": {
"customer": { "id": "cust-42" },
"process": { "processId": "…", "title": "Customer onboarding", "embedUrl": "https://ovenbird.tech/r/…?embed=1#workflow",
"embed": { "runbook": "…", "workflow": "…", "article": "…" }, "shareUrl": "https://ovenbird.tech/r/…" }
}
}
Answer with any 2xx status. If you don't, we try again after about 10 seconds and again after a minute.
Check the signature
Every webhook carries an Ovenbird-Signature header: t=<unix seconds>,v1=<hex>, where v1 is the HMAC-SHA256 of <t>.<raw body> with your signing secret. Check it before trusting the body, and refuse anything older than 5 minutes:
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(secret, rawBody, header) {
const m = /^t=(\d+),v1=([a-f0-9]{64})$/.exec(header ?? "");
if (!m || Math.abs(Date.now() / 1000 - Number(m[1])) > 300) return false;
const want = createHmac("sha256", secret).update(`${m[1]}.${rawBody}`).digest();
return timingSafeEqual(want, Buffer.from(m[2], "hex"));
}
Use the raw body, before parsing it as JSON.
List a customer's processes
To catch up (or to build a picker), ask for a customer's live processes with their embed links:
GET https://ovenbird.tech/api/partner/v1/customers/cust-42/processes
Authorization: Bearer obp_…
{ "processes": [ { "processId": "…", "title": "Customer onboarding", "embedUrl": "…", "embed": { … }, "shareUrl": "…" } ] }
The list is empty until someone from that customer has opened the builder. Listing a process shares it and allows it on your websites, like publishing does.
Still stuck? Ask your workspace owner or an admin, or get in touch with us.