---
title: "Publish to any site with a signed webhook"
url: "https://blogautopost.com/integrations/webhook.md"
canonical_url: "https://blogautopost.com/integrations/webhook"
last_updated: "2026-11-29"
type: "guide"
summary: "How BlogAutoPost sends each approved article to an https address you choose: the payload, the HMAC-SHA256 signature, the idempotency key, retries and errors."
related: ["https://blogautopost.com/docs/connect-webhook.md", "https://blogautopost.com/product/publishing.md", "https://blogautopost.com/docs/errors.md", "https://blogautopost.com/integrations/wordpress.md", "https://blogautopost.com/integrations/webflow.md"]
---

# Publish to any site with a signed webhook

> **For AI agents:** the complete index of BlogAutoPost pages is [llms.txt](https://blogautopost.com/llms.txt). Every page is also served as markdown at its URL plus .md.

How BlogAutoPost sends each approved article to an https address you choose: the payload, the HMAC-SHA256 signature, the idempotency key, retries and errors.

## 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](https://blogautopost.com/docs/api.md).

| 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](https://blogautopost.com/docs/errors.md). To set a receiver up with working code in Node and Python, see the [webhook setup guide](https://blogautopost.com/docs/connect-webhook.md).

## What the connection test does

- It sends one signed `webhook.test` event 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.

Other platforms: [WordPress](https://blogautopost.com/integrations/wordpress.md), [Shopify](https://blogautopost.com/integrations/shopify.md), [Webflow](https://blogautopost.com/integrations/webflow.md).

## 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.

## Related

- [Connect a webhook](https://blogautopost.com/docs/connect-webhook.md)
- [Scheduled publishing](https://blogautopost.com/product/publishing.md)
- [Errors and failure codes](https://blogautopost.com/docs/errors.md)
- [Auto-post to WordPress via REST API](https://blogautopost.com/integrations/wordpress.md)
- [Auto-post to Webflow CMS via Data API](https://blogautopost.com/integrations/webflow.md)
