Integrations
Webhooks
Receive each published article as a JSON POST on an HTTPS endpoint you control.
The Webhook integration sends each article to an endpoint you control as soon as we publish it. We POST a JSON payload with the full article, and your code saves it to your CMS or database. You need a public HTTPS endpoint that accepts POST requests and returns JSON.
Don't see Webhook in Settings > Publishing? Ask your workspace admin to connect it.
How articles look on your site
How to connect webhooks
Open Settings > Publishing, find Webhook under For developers and click Connect. The wizard has 3 short steps, mirrored below.
The wizard shows Connected only once we find one of your articles live on your site. Click Manage at any time to change the URL or token, send an article again, or check your site again.
Add your webhook
Paste the HTTPS endpoint that should receive each article, for example https://yoursite.com/api/blog-webhook, and a secret token. We send the token as Authorization: Bearer <token> on every call, so check it in your endpoint before you process the payload. Click Save and continue.
Use a POST route that returns 200 with a JSON body within 120 seconds. Return the article's live URL as link so we can confirm it right away. See What we expect back.
Keep this token private. Store it in an environment variable, not in code.
Send your first article
Click Send article. We send your newest released article to your endpoint.
If your endpoint doesn't reply with 200 and a JSON body, the wizard shows the error it returned. Fix your endpoint and click Send article again.
Check it's live
Click Check my site. We look for the article in your sitemap and on your blog page. If your blog is at a different address, change it here before checking.
The wizard shows Connected once we find the article. If your endpoint returned a valid link, this usually happens straight after sending. If your site needs a rebuild or deploy first, wait for it to finish, then check again.
What we send (payload reference)
Request details:
- Method: POST
- Headers:
Authorization: Bearer <your-secret-token>andContent-Type: application/json. We also send the same token inX-API-Key, in case your stack strips theAuthorizationheader.
{
"id": 10,
"keywords": "webhook integration",
"title": "Test Article for Webhook Integration",
"metaDescription": "Test article to verify webhook integration is working correctly",
"slug": "test-article-for-webhook-integration",
"languageCode": "en",
"content_html": "<h1>Test Article for Webhook Integration</h1>",
"content_markdown": "# Test Article for Webhook Integration",
"jsonLd": { "@context": "https://schema.org", "@type": "Article" },
"faqJsonLd": { "@context": "https://schema.org", "@type": "FAQPage" },
"heroImageUrl": "https://cdn.example.com/hero-image.jpg",
"heroImageAlt": "Illustration of a webhook payload",
"featureImageEnabled": true,
"createdAt": "2025-03-20T03:41:18.570Z",
"status": "published",
"published": true,
"lang": "en"
}Notes on the fields:
keywordsis a single string: the article's main keyword.content_htmlcan include embedded JSON-LD script tags. You also getjsonLdandfaqJsonLdas structured JSON fields for easier mapping. Either can benull.heroImageUrlis missing andfeatureImageEnabledisfalsewhen the article has no hero image.statusis always"published"andpublishedis alwaystrue. Every call publishes an article, so make the post live instead of saving it as a draft.langis only present when a publishing language is set on your website.
What we expect back (response reference)
Your endpoint must answer with an HTTP 2xx status and a JSON object body. Anything else marks the article as failed to publish.
Most common mistake
Replying 200 with an empty body, 204 No Content, or plain text such as OK. We cannot read those and record the publish as failed with Non-JSON response from webhook. Always send Content-Type: application/json and a JSON object. {} is enough.
Success (recommended): return the live URL of the article you created, so we can link to it right away.
HTTP/1.1 200 OK
Content-Type: application/json
{
"success": true,
"link": "https://yoursite.com/blog/test-article-for-webhook-integration"
}Success (minimum): use this if you cannot produce the URL yet. We pick it up from your sitemap later.
HTTP/1.1 200 OK
Content-Type: application/json
{ "success": true }Failure: tell us what went wrong. The message is shown in your dashboard.
HTTP/1.1 200 OK
Content-Type: application/json
{
"success": false,
"error": "An article with this slug already exists"
}Fields we read:
success: optional boolean. Onlyfalseis special: it fails the publish even on a200. Omit it or sendtruewhen all is well.link: optional string, the published article URL. We save it as the article's live URL, which powers internal linking and reporting.errorormessage: the reason, read only whensuccessisfalse.
Any other keys are ignored, so you can reply with your own object.
About link
We only store link when it points to an article page (not your homepage or a draft link) on your website's domain, a subdomain of it, or your webhook's domain, and when the page loads when we fetch it. A link we cannot verify is skipped silently. The publish still counts as successful, and the URL is filled in from your sitemap later.
Timeouts and retries:
- You have up to 120 seconds to respond. If you take longer, the publish fails and is not retried.
- We retry up to 3 times, 2 seconds apart, when you return
429,500,502,503or504. - Every other non-2xx status (
400,401,403,404) fails immediately with no retry. - Retries resend the same article, so make your handler idempotent: key it on
idorslugand update instead of creating a duplicate.
Verify and go live
After the wizard shows Connected, with Automatically Publish on (the toggle at the top of Settings > Publishing), every new article is delivered automatically.
To check a real delivery:
- Open Blog content and publish an article, or publish an existing one again.
- We send the article payload to your webhook URL.
- Check your endpoint logs and confirm it returned HTTP 200 with a JSON body.
Troubleshooting & FAQ
Why do I see 401 or authentication errors?
Your endpoint rejected our token. Compare it exactly with the token you entered in the wizard. The header format is Authorization: Bearer <your-secret-token>. If your platform strips the Authorization header, read the same token from X-API-Key.
Why is the webhook marked as failed?
A publish fails when your endpoint returns a non-2xx status, a body that is not a JSON object (empty, 204, or plain text), or JSON containing "success": false. Return 200 with a JSON object. See What we expect back.
Why am I not receiving any webhooks?
Check that your URL is publicly reachable, accepts POST requests, and is not blocked by a firewall or WAF. Then check that Automatically Publish is on in Settings > Publishing.
The test works but real articles fail. Why?
Check your endpoint logs for errors. Make sure you can handle the full article payload, especially large HTML content, and that you answer within 120 seconds.
How do I secure my webhook endpoint?
Always validate the bearer token before processing. Store the token in an environment variable, never in code.
What if my endpoint is temporarily down?
Return 503 (or 429, 500, 502, 504) and we retry up to 3 times, 2 seconds apart. Because retries resend the same article, key your handler on id or slug so a repeat updates rather than duplicates. If all retries fail, the article is marked as failed and you can publish it again from your Content Plan.
Can I use this with serverless functions?
Yes. Webhooks work with serverless platforms such as AWS Lambda, Vercel, Netlify Functions and Cloudflare Workers. Make sure the function returns a JSON body and finishes within 120 seconds.
Need more help?
Contact Nimblo.
