Publish to any site with a signed webhook
When your site is not on WordPress, Shopify or Webflow, BlogAutoPost can post each approved article to an https address you control. This page lists what is sent, how it is signed, when it is retried and what you can read when a delivery fails.
The facts at a glance
| Item | What the connection uses |
|---|---|
| Request | POST to the https address you saved, with a JSON body and content-type: application/json. |
| Credential | A signing secret you choose (at least 16 characters). It is stored encrypted and is never sent in a request. |
| Signature | HMAC-SHA256 of the timestamp, a full stop and the raw body, in the X-BlogAutoPost-Signature header as v1= and lowercase hex. |
| Timestamp | Unix seconds in X-BlogAutoPost-Timestamp. It is taken again on every try. |
| Idempotency key | The article id, in the Idempotency-Key header and in the body. It is the same on every try and on any later redelivery, even when the article was edited in between, so store each post under it and replace the stored post when the key arrives again. |
| Success | Any 2xx. A url in a JSON reply becomes the published address of the article. |
| Address rules | Https only, the standard port, and a public address. Redirects are never followed. |
What is in the body
One JSON object per article. Field names are in snake case, the same as the API.
| Field | Holds |
|---|---|
event | article.publish for an article, webhook.test for the connection test (which carries no article). |
idempotency_key | The article id. Store it to recognise a repeat. |
article.title, article.slug | The title and the address segment you approved. |
article.html, article.markdown | The body twice: the same text as HTML and as Markdown, so you can use whichever your site takes. |
article.excerpt | A short summary of the post. |
article.meta_title, article.meta_description | The search title and description. |
article.tags | A list of tag names. |
article.cover_image | url, alt and credit of the cover picture, or null when there is none. Fetch the picture from url. |
article.language, article.status | The language tag of the post and publish. |
Retries, and what a repeat looks like
- A 5xx answer, a 408, 425 or 429, a timeout or a dropped connection is tried again after a wait, up to three tries in all. Every try carries the same body and the same
Idempotency-Key, and a fresh timestamp and signature. - Any other 4xx answer stops at once. The message you see names the status and the first words your receiver sent back.
- If a delivery arrives but the answer is lost, BlogAutoPost tries again later with the same key. A receiver that remembers keys it has seen answers the repeat with the address it already has, and the article appears once.
- A redirect is a failure, not a detour. The signed body must only go to the address you saved.
What a 2xx means
Any 2xx counts as delivered. If the reply is JSON with a url that starts with http or https, the article is marked published at that address and sent to IndexNow. A reply with no address still counts as published, with no link shown. A reply id is kept as the post id on your side.
Failure messages you may see
| Code | When it appears | What to do |
|---|---|---|
webhook_rejected | Your receiver answered 4xx. The message gives the status and its reply. | Fix what the reply names, then publish again. |
webhook_redirect | Your receiver answered with a redirect. | Save the address the redirect points to. |
blocked_target | The address is private or on a port other than 443. A plain http address never gets this far: saving the connection refuses it. | Use a public https address on the standard port. |
provider_unavailable | Your receiver kept failing after three tries. | Fix the receiver. The article stays approved, and you can publish it again. |
All codes are on the errors page. To set a receiver up with working code in Node and Python, see the webhook setup guide.
What the connection test does
- It sends one signed
webhook.testevent and waits for a 2xx. There is no article in it. - It makes one try and does not wait, so a wrong address fails quickly.
- The address is saved only when the receiver accepts the test.
Frequently asked questions
Which sites can use a webhook?
Any site or service that can receive an https request and store a post: Framer or Contentful through a small function, Ghost through its own API, a static site that rebuilds from a folder, or your own code.
Who chooses the signing secret?
You do. Pick a random string of at least 16 characters, save it with the connection and keep the same value in your receiver. Rotate it by reconnecting with a new one.
Do I have to check the signature?
Anyone who finds your address can post to it, so check it. Compute the HMAC over the timestamp, a full stop and the raw body, compare in constant time, and reject a timestamp more than five minutes old.
What happens if my receiver is down?
The delivery is tried three times with waits between them. If it still fails, the article stays approved with the reason shown. Publish it again once the receiver is back, and it goes out under the same key.
Is the cover picture sent as a file?
No. The body carries the picture's address, its alt text and the credit line. Your receiver fetches the picture itself if it wants to store a copy.
Put BlogAutoPost on your blog
Start a 7-day trial, connect your WordPress, Shopify or Webflow blog and approve the first draft yourself.
- $1 for a 7-day trial. When the 7 days end, your card is charged from $95 a month for one site, and the plan renews every month until you cancel.
- Cancel any time with our ready-made cancel email. No reason needed.
- Your first paid month can be refunded within 7 days of paying it. Write to hello@blogautopost.com.