Spring (Java) AI SEO Blog Writer and Autoblog
One @RestController — signed articles arrive as JSON.
Can you auto-publish blog posts to a Spring app? Yes — via a signed webhook
Spring renders the blog; DraftSEO delivers the posts. The recipe is a @RestController with a @PostMapping — binding @RequestBody String rawBody hands you the exact body for the HMAC, which javax.crypto.Mac computes and MessageDigest.isEqual compares. Jackson (bundled with Spring Boot Web) then reads the payload.
| Connection | A @RestController — @PostMapping("/webhook"), recipe provided |
|---|---|
| Security | HMAC-signed + timestamped — MessageDigest.isEqual 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 | Any Spring Boot app — @RequestBody String gives the raw body; no extra deps |
Who does what
What DraftSEO automates for your Spring 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 @RestController, verify the HMAC over @RequestBody String rawBody, then save the entity with JPA. After the green test, zero effort per article.
Your repositories and view layer stay entirely yours.
Setup
How to connect a Spring app to DraftSEO
Add your endpoint in DraftSEO
Connect a site → Spring (Java). You get a signing secret and the controller recipe.
~1 minute
Add the @RestController
Paste the @PostMapping handler, bind @RequestBody String rawBody, verify the signature and save the entity — the recipe covers it.
~10 minutes
Verify the signed test delivery
DraftSEO sends a signed test event; a green check confirms the connection.
~1 minute
Turn on autopilot
Every generated article is delivered to your controller on cadence.
Ongoing · zero clicks
FAQ
Frequently asked questions
What arrives in the payload?
A JSON body { event, deliveryId, data } — data holds the title, HTML article, slug, language, meta fields and image URLs, which Jackson reads as a JsonNode or maps onto your DTO.
How is delivery secured?
Each request is HMAC-signed over ${timestamp}.${rawBody} with a timestamp header; you recompute it with javax.crypto.Mac (HmacSHA256) and compare using MessageDigest.isEqual, rejecting anything past the 5-minute window.
How do I get the raw body for the signature?
Bind @RequestBody String rawBody — Spring hands you the exact request body as a String before any object mapping, which is what the HMAC is computed over. If you use a filter or ContentCachingRequestWrapper instead, make sure it exposes the same untouched bytes.
Ship the @RestController — first article free
No card required. Signed test delivery in under a minute.