Integrations / Custom webhook

{ }Publish by custom webhook
A signed JSON POST to any URL you control. Also how Lovable, Bolt.new, Replit and v0 sites connect.
How it works
Sends each post as a signed JSON POST to any URL you control, the same mechanism behind the Framer, Lovable, Bolt.new, Replit, and other code-first setups. You verify the signature on your end to confirm it's really us.
Before you start
- A receiver endpoint reachable from the public internet
- A way to verify an HMAC signature on incoming requests (a couple of lines of code in most frameworks)
Setup
- 1
Choose a signing secret (optional)
If you set one, every request is signed with it so your receiver can check the request really came from Comppound. See Request format below.
- 2
Open Setup in your client portal
Setup shows the connection form for your webhook. If it says no integration is set up yet, message us in Questions and we’ll switch it on. Then fill in:
Field Required Notes Webhook URL Yes Example: https://your-app.example.com/webhooks/blogExtra headers No Merged into every request. Use this for a receiver that expects its own auth header instead of (or in addition to) the signature below.Example: {"Authorization": "Bearer ..."}Signing secret No From step 1. Stored encrypted; it can’t be viewed again once saved. - 3
Click Connect account
This sends a test request to your URL. When your receiver accepts it, the portal shows “Connected successfully”.
- 4
Publish
Once a piece has passed review, it is sent to your endpoint through this connection. No export, import, or copy-pasting into a CMS.
Request format
Every request is a JSON POST to your webhook URL, with these headers:
| Header | Value |
|---|---|
| Content-Type | application/json |
| X-Webhook-Timestamp | Send time, in milliseconds since the Unix epoch. |
| X-Webhook-Signature | sha256= followed by the hex HMAC-SHA256 of the raw request body, keyed with your signing secret. Only sent if a signing secret is set. |
| Your extra headers | Anything you added under Extra headers, for example an Authorization token your receiver expects. |
The body has a type of test, publish or update. A publish looks like this:
{
"type": "publish",
"post": {
"id": "...",
"title": "...",
"slug": "...",
"markdown": "...",
"html": "...",
"metaDescription": "...",
"seoTitle": "...",
"canonicalUrl": "...",
"coverImageUrl": "...",
"tags": ["..."],
"primaryKeyword": "...",
"publishedAt": "2026-01-01T09:00:00.000Z"
}
}An update also carries externalId. Respond with any 2xx status. If your response is JSON with an id, that is stored as the post’s ID and sent back as externalId on later updates; a url is stored as the live link.
To verify the signature (Node.js):
import crypto from "node:crypto";
// rawBody must be the exact bytes received, not re-serialised JSON.
function isFromComppound(rawBody, signatureHeader, secret) {
const expected =
"sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
const a = Buffer.from(signatureHeader || "");
const b = Buffer.from(expected);
return a.length === b.length && crypto.timingSafeEqual(a, b);
}After publishing
If a published piece is revised and pushed again, the same post is sent as an update rather than duplicated.
Troubleshooting
| If this happens | Check this |
|---|---|
| Test request never arrives | Confirm the receiver is publicly reachable, not just on localhost, and isn't blocked by a firewall or auth wall in front of it. |
| Receiver rejects the request as unauthorized | Check the signature is computed over the raw request body, not a re-serialized version of it; re-encoding JSON before verifying changes the bytes being signed. |
Frequently asked questions
Anything without a dedicated integration above: a custom app, an internal tool, or a platform we haven't built a direct connection for yet.
Every request is signed with HMAC, so your receiver can check the signature before trusting the payload.
Yes, extra headers can be set during setup and are sent with every request alongside the signature.
Credentials are encrypted at rest and only ever used server-side to publish. Nobody, including us, can view them again once saved.
Nothing changes on Custom webhook itself. Everything already published stays exactly as it is. New posts just stop syncing until it's reconnected.
Want this set up with you?
Book a call and we’ll connect it together.