Aerius Pulse

How to receive Aerius Pulse articles on a website built with code

Aerius Pulse writes SEO articles (with pictures, FAQ and hashtags) for your client's website. On a site built with code (React, Next.js, Vue, PHP, Laravel, Django, plain HTML…) there are two ways to get them. Use one or both.

Recommended: Feed v2 (your server renders the articles)

The safest way for any website, including ones that handle money, keys or payments: Aerius Pulse gets no access to your code; your server reads the articles and shows them with your own templates. The dashboard button “Copy instructions for my developer / AI” gives the same facts as this page, personalised. Machine-readable schema: feed-v2.schema.json (JSON Schema for the list, article, tombstone and webhook payloads). See also Security.

Auth, limits, versioning

Endpoints

Fields you can rely on

Webhook v2 (instant updates)

Events: article.published, article.updated, article.unpublished, article.deleted (and article.test from the dashboard's Send test webhook button). Up to 3 tries; every call is in the dashboard's delivery log.

POST https://yoursite.com/api/aerius-webhook
Content-Type: application/json
X-Aerius-Event: article.updated
X-Aerius-Event-Id: 6f1c2b8e-1d2a-4c0e-9a51-0b7c2f6f3e11
X-Aerius-Timestamp: 1795117000                 ← Unix time in SECONDS (UTC)
X-Aerius-Signature-V2: v1=9f2c…e1[,v1=77ab…02] ← one value per active secret (two during a secret change-over)

{"event":"article.updated","event_id":"6f1c…3e11","created_at":1795117000,"article":{…v1 fields…},"article_v2":{…same as GET /articles/<id>…}}

Verify: compute hex(HMAC-SHA256(secret, timestamp + "." + event_id + "." + raw_body)) and accept if it equals ANY v1= value (constant-time compare, raw bytes). Reject timestamps more than 5 minutes old and event ids you have already seen. Answer 2xx fast, then re-fetch the article from the feed. Secret change: the dashboard's New webhook secret keeps the old one signing too for 7 days.

// Node.js
const ts = req.get('X-Aerius-Timestamp'), id = req.get('X-Aerius-Event-Id');
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return res.sendStatus(401);
const want = crypto.createHmac('sha256', process.env.AERIUS_WEBHOOK_SECRET).update(`${ts}.${id}.`).update(req.body).digest('hex');
const ok = (req.get('X-Aerius-Signature-V2') || '').split(',').some(v => v.trim() === 'v1=' + want);

The older X-Aerius-Signature: sha256=<HMAC of body> header is still sent for v1 receivers; it is deprecated with v1 (31 May 2027).

A) Webhook (push, v1, deprecated: ends 31 May 2027)

  1. Make a public HTTPS endpoint, e.g. https://yoursite.com/api/aerius-webhook.
  2. In Aerius Pulse → Website & Blog → My own coded website, paste that address and press Connect website.
  3. Copy the webhook secret (whsec_…, shown once) into your server's environment, e.g. AERIUS_WEBHOOK_SECRET.

Every time an article is published, Aerius Pulse sends:

POST <your webhook address>
Content-Type: application/json
X-Aerius-Event: article.published
X-Aerius-Signature: sha256=<hex HMAC-SHA256 of the raw body, key = your webhook secret>

{
  "event": "article.published",
  "article": {
    "id": "uuid", "title": "…", "slug": "how-to-…", "description": "meta description",
    "keyword": "main search phrase", "tags": ["…"], "hashtags": ["#…"],
    "cover_url": "https://…jpg", "images": {"cover": {"url": "…", "alt": "…"}, "1": {…}},
    "faq": [{"q": "…", "a": "…"}],
    "markdown": "…", "html": "<p>…</p>",
    "published_at": "2026-11-17T10:00:00+00:00"
  }
}

Your endpoint must:

Node.js / Express

import crypto from 'node:crypto';
import express from 'express';
const app = express();
app.post('/api/aerius-webhook', express.raw({ type: 'application/json' }), async (req, res) => {
  const sig = 'sha256=' + crypto.createHmac('sha256', process.env.AERIUS_WEBHOOK_SECRET).update(req.body).digest('hex');
  const got = req.get('X-Aerius-Signature') || '';
  if (sig.length !== got.length || !crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(got))) return res.sendStatus(401);
  const { article } = JSON.parse(req.body.toString('utf8'));
  await saveArticle(article);            // your code: store title, slug, html, description, cover_url, faq…
  res.json({ url: `https://yoursite.com/blog/${article.slug}` });
});

Next.js (App Router): app/api/aerius-webhook/route.ts

import crypto from 'node:crypto';
export async function POST(req: Request) {
  const raw = Buffer.from(await req.arrayBuffer());
  const sig = 'sha256=' + crypto.createHmac('sha256', process.env.AERIUS_WEBHOOK_SECRET!).update(raw).digest('hex');
  const got = req.headers.get('x-aerius-signature') || '';
  if (sig.length !== got.length || !crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(got))) return new Response('bad signature', { status: 401 });
  const { article } = JSON.parse(raw.toString('utf8'));
  await saveArticle(article);            // e.g. insert into your DB, then revalidatePath('/blog')
  return Response.json({ url: `https://yoursite.com/blog/${article.slug}` });
}

PHP / Laravel

$raw = file_get_contents('php://input');
$sig = 'sha256=' . hash_hmac('sha256', $raw, getenv('AERIUS_WEBHOOK_SECRET'));
if (!hash_equals($sig, $_SERVER['HTTP_X_AERIUS_SIGNATURE'] ?? '')) { http_response_code(401); exit; }
$article = json_decode($raw, true)['article'];
save_article($article); // your code
header('Content-Type: application/json');
echo json_encode(['url' => 'https://yoursite.com/blog/' . $article['slug']]);

B) Feed (pull, v1, deprecated: ends 31 May 2027)

Warning: in v1 the token is part of the link, so it lands in server logs, browser history and (with the embed script) public page source. Anyone who has the link can read the same articles. Use v2 for anything that handles money or personal data.

After connecting, the Connection for your developer box shows two private links:

Read it on a schedule (e.g. every hour, or at build time for static sites like Next.js SSG, Astro, Hugo) and add articles you have not stored yet (use id to avoid duplicates). Keep the feed link private.

Good practice for Google (SEO and AdSense)

← Back to downloads