Skip to content

docs(content): document Send to CMS and the content_draft.sent webhook (Send to CMS #1331, part 4) - #1441

Merged
gkhngyk merged 4 commits into
ansvisor:mainfrom
cihan-gyk:docs/cms-send
Oct 24, 2026
Merged

gkhngyk merged 4 commits into
ansvisor:mainfrom
cihan-gyk:docs/cms-send

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Send to CMS, part 4: the docs for phase 1 of #1331. This PR is docs only and branches from main.

Merge after #1437, #1438, #1439 and #1440: it describes what they ship.

  • New guide guides/send-to-cms.mdx, added to Platform Guides after the Content Editor guide:
    • setting up the webhook (secret key, the opt-in Content page sent event);
    • sending one page from the editor or a Library row, and which fields are filled from where;
    • what holds a send;
    • sending up to 25 pages from the Library, and the 200-a-day limit;
    • the row icons;
    • building the workflow: receive → create the post → call back with the live address, with a field mapping and n8n / Make / Zapier pointers.
  • api-reference/webhooks.mdx:
    • the content_draft.sent event (opt-in since 00262);
    • the X-Ansvisor-Signature HMAC-SHA256 with a verification snippet;
    • the package (schema version 1) with field notes;
    • the POST /webhooks/content-drafts/{deliveryId}/published callback: auth, body, effects and limits;
    • the delivery rules: 2xx means sent, 15 s, no redirects, 2,000 characters of the answer kept, one page sent while the person waits vs a bulk send in the background, 200 a day, public addresses only on Cloud.
  • guides/content-editor.mdx: Send to CMS in the editor's buttons and the Library row menu, linking to the guide.

Every number and behaviour comes from #1437's code (content-delivery.js, safe-post.js, webhook-content-draft-callback.js) and the web PRs. The examples use example.com / acme.example only.

Related issue

Part of #1331 (phase 1, webhook).

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Run the docs locally (npx mintlify dev in docs/). Check that Send to CMS appears under Platform Guides and that its links open the Webhooks reference.
  2. In the Webhooks reference, check the new content_draft.sent row, the signature section, the package and callback sections, and the delivery notes.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/): not applicable, docs only
  • yarn typecheck passes (run from web/): not applicable, docs only
  • yarn format:check passes (run from web/): not applicable, docs only
  • Changes are focused — one concern per PR

🤖 Generated with Claude Code

…k (Send to CMS ansvisor#1331, part 4)

- a Send to CMS guide: setting up the webhook, sending one page or up to
  25 from the Library, the row icons, and building the workflow in n8n,
  Make or Zapier with the callback that reports the live address
- the Webhooks reference: the content_draft.sent event (opt-in), its
  package, the X-Ansvisor-Signature HMAC, the published callback and the
  delivery rules (2xx, 15 s, no redirects, 25 a send, 200 a day)
- the Content Editor guide points to it from the editor and the Library

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mintlify

mintlify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 7558ef5.

Approve preview

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. The numbers and behaviour match #1437 and the web PRs. Two small wording fixes:

  1. docs/api-reference/webhooks.mdx, the page.html note: the second clean also keeps relative links, and data:image/… sources on images (safeUrl in content-delivery.js). Say "links only to http, https, mailto, tel or relative addresses".
  2. Same file, the callback's limits: the callback uses the same limiter instances as the opportunity callback, keyed on the same secret, so the 1,200 per 15 minutes covers both together. "Shares the opportunity callback's limits" is more accurate than "has the same limits".

If #1437 changes the package or the callback body (see its review), update the payload example and the callback section to match before merging this.

…ansvisor#1437 review)

- the callback is /status with { status, url?, externalId?, reason? }
- the package's jsonLd, method, sourceUrl, pageType, language and brand.id
- links to http, https, mailto, tel or relative addresses; the callback
  shares the opportunity callback's limits; a 2 s pause between pages

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Thanks. Both wording fixes, and #1437's changes, are in 6d0875b.

  1. The page.html note now says links go "only to http, https, mailto, tel or relative addresses (images may also be data:image/…)".
  2. The callback "shares the opportunity callback's limits: 1,200 requests per 15 minutes per secret for both together".

Updated to match #1437:

  • The callback is /status with { status: "published" | "failed", url?, externalId?, reason? }, with a failed example. It says a numeric id is taken, that empty or null fields count as left out, that a published send stays published, and that a callback before the answer keeps its word.
  • The package example and notes cover jsonLd, method/sourceUrl (update the post rather than creating one), pageType, language (Language rule, My rules, brand, en) and brand.id.
  • The guide has the page.jsonLd mapping row, the optimize hint, the failed callback, and the short pause between bulk pages.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All items done. The payload example, the callback section and the guide match #1437 as it is now.

The History sentence ("the page as published is kept in the editor's History") describes how #1437 will work once the fix requested on it is in. No change is needed here.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All items done. Looks good.

  • The History sentence in webhooks.mdx now matches #1437. A re-send that goes live at the same address is kept as a new publish version.
  • The new line on bulk sends matches #1440:
    • pages are grouped into requests by size;
    • each request waits for the one before;
    • closing the dialog stops the rest and says how many didn't go.
  • The main merge (edd8dc8) resolves the content-editor.mdx conflict by keeping both sides, and changes nothing else.

@gkhngyk
gkhngyk merged commit 6933f6c into ansvisor:main Oct 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants