CMS integration

Pull GrowthDailySeo blogs into your project

The platform writes drafts → a webhook notifies your backend → you fetch HTML + SEO metadata via API and save to your CMS, Next.js site, or app.

GrowthDailySeo generates SEO blog posts for you. Your app stays the source of truth for publishing. Use our API to sync title, excerpt, contentHtml, FAQ schema, and meta fields into whatever stack you already run.

Typical integration (push + pull)

  1. Create an API key on the API page and set a webhook URL in Integrations
  2. On article.ready webhook, verify HMAC and read slug from payload
  3. GET /api/v1/sites/{siteId}/posts/{slug} → import contentHtml into your database or CMS
Webhook handler example
// Your API route — e.g. POST /api/growthdaily-webhook
import { createHmac, timingSafeEqual } from "crypto";

export async function POST(req: Request) {
  const raw = await req.text();
  const ts = req.headers.get("x-growthdaily-timestamp") ?? req.headers.get("x-figrush-timestamp") ?? "";
  const sig = req.headers.get("x-growthdaily-signature") ?? req.headers.get("x-figrush-signature") ?? "";
  const expected = createHmac("sha256", process.env.GROWTHDAILY_WEBHOOK_SECRET!)
    .update(`${ts}.${raw}`)
    .digest("hex");
  if (!timingSafeEqual(Buffer.from(expected), Buffer.from(sig))) {
    return new Response("invalid signature", { status: 401 });
  }

  const event = JSON.parse(raw);
  if (event.event === "article.ready") {
    await syncPostFromGrowthDaily(event.siteId, event.slug);
  }
  return Response.json({ ok: true });
}
Fetch full post for CMS import
async function syncPostFromGrowthDaily(siteId: string, slug: string) {
  const res = await fetch(
    `${process.env.GROWTHDAILY_API_BASE}/api/v1/sites/${siteId}/posts/${slug}`,
    { headers: { Authorization: `Bearer ${process.env.GROWTHDAILY_API_KEY}` } },
  );
  const post = await res.json();
  // post.contentHtml, post.title, post.excerpt, post.seo, post.faqJsonLd
  await db.posts.upsert({ slug: post.slug, html: post.contentHtml, ...post });
}