Integrations / Framer

Publish to Framer

Framer has no public write API, so posts go by signed webhook to a small receiver you host.

How it works

Framer doesn't expose a public API for writing CMS content, so this runs through a Custom Webhook pointed at a small receiver you control (a Framer site's own API route, or a lightweight middleware worker) that performs the actual write on Framer's side.

Worth knowing: Needs one extra piece (a receiver endpoint) compared to the direct integrations above.

Before you start

  • A receiver endpoint you control that can accept a signed POST request and write to Framer on its own (an API route, or a small middleware worker)
  • That endpoint's URL, reachable from the public internet

Setup

  1. 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. 2

    Open Setup in your client portal

    Setup shows the connection form for Framer. If it says no integration is set up yet, message us in Questions and we’ll switch it on. Then fill in:

    FieldRequiredNotes
    Webhook URLYesExample: https://your-relay.example.com/framer
    Extra headersNoExample: {"Authorization": "Bearer ..."}
    Signing secretNoFrom step 1. Stored encrypted; it can’t be viewed again once saved.
  3. 3

    Click Connect account

    This sends a test request to your URL. When your receiver accepts it, the portal shows “Connected successfully”.

  4. 4

    Publish

    Once a piece has passed review, it is sent to Framer 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:

HeaderValue
Content-Typeapplication/json
X-Webhook-TimestampSend time, in milliseconds since the Unix epoch.
X-Webhook-Signaturesha256= 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 headersAnything 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 happensCheck this
Test request times outFramer's own hosting doesn't run custom server code, so the receiver has to live somewhere else (a Vercel/Cloudflare function, for example) and forward the write into Framer.
Not sure whether a request really came from ComppoundEvery request is HMAC-signed. Verify the signature against the shared secret before your receiver acts on the payload.

Frequently asked questions

Framer's CMS is built for its visual editor and doesn't offer a stable public write API. The webhook approach avoids relying on an undocumented endpoint that could break without notice.

It needs one extra piece, a receiver endpoint, but once that's in place, publishing works exactly the same as any other integration.

We can help set it up on the call if you don't already have one; it's usually a short function, not a project.

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 Framer itself. Everything already published stays exactly as it is. New posts just stop syncing until it's reconnected.

Want Framer set up with you?

Book a call and we’ll connect it together.

Book a call