Rust (Axum) AI SEO Blog Writer and Autoblog

One Axum handler — signed articles arrive as raw Bytes.

One Axum handler HMAC-signed deliveries Full article JSON Your crates, your rendering
Straight answer

Can you auto-publish blog posts to an Axum app? Yes — via a signed webhook

Your Axum service owns the rendering; DraftSEO delivers the content. The recipe is an async handler that takes a Bytes body extractor — those are the exact request bytes for the HMAC — and verifies it with mac.verify_slice before parsing serde_json. It leans on hmac, sha2 and hex, the standard Rust crates for this.

Connection An Axum handler — router.route("/webhook", post(...)), recipe provided
Security HMAC-signed + timestamped — verify_slice over ${timestamp}.${rawBody}, replay-window protected
Payload Full article JSON — title, HTML, images, meta, slug, language
Images DraftSEO CDN URLs — URLs ride in the payload; rehost to your own storage if you prefer
Framework fit hmac + sha2 + hex crates — the Bytes extractor preserves the exact bytes for signing

Who does what

What DraftSEO automates for your Axum blog

DraftSEO handles Automated

  • Keyword research and an automatic content schedule
  • Complete SEO articles delivered as clean HTML
  • Images generated, their URLs carried in each payload
  • Meta title, description and slug beside the article body
  • Signed delivery with retries so no publish is dropped

You handle One-time: a short receiver

Add the async handler with a Bytes extractor, verify the HMAC with verify_slice, then persist the post with your DB crate. After the green test, zero effort per article.

Your sqlx, your templates, your router — unchanged.

Setup

How to connect an Axum app to DraftSEO

1

Add your endpoint in DraftSEO

Connect a site → Rust (Axum). You get a signing secret and the handler recipe.

~1 minute

2

Add the handler

Add the hmac, sha2 and hex crates, route /webhook to the handler, take a Bytes body, verify the signature and store the post.

~10 minutes

3

Verify the signed test delivery

DraftSEO sends a signed test event; a green check confirms the connection.

~1 minute

4

Turn on autopilot

Every generated article is delivered to your Axum handler on cadence.

Ongoing · zero clicks

FAQ

Frequently asked questions

What does the payload carry?

A JSON body { event, deliveryId, data } — data holds the title, HTML article, slug, language, meta fields and image URLs, which serde_json decodes into a Value or your own struct.

How is delivery secured?

Each request is HMAC-signed over ${timestamp}.${rawBody} with a timestamp header; you feed the raw Bytes into Hmac<Sha256> and verify with mac.verify_slice on the hex-decoded header, rejecting anything past the 5-minute window.

Which crates do I need?

hmac and sha2 for the signature, hex to decode the header, serde_json to parse the body — plus axum and tokio for the server. All are shown in the recipe Cargo.toml.

Ship the handler — first article free

No card required. Signed test delivery in under a minute.

Start for free