Back to developer guide

CMS integrations

CMS and website integration guidance

Install SUNURA disclosures in websites and CMS environments without exposing secret API keys.

Integration options

Use a server-rendered notice, CMS-managed snippet, or controlled JavaScript embed depending on the customer website architecture.

  • Server-rendered notices are preferred for production.
  • CMS snippets are suitable for managed marketing pages.
  • Client-side embeds must not contain secret API keys.

WordPress integration package

SUNURA can provide a WordPress plugin package for customer implementation. Marketplace publication and third-party review are handled as separate release steps.

Example server call

Use a backend route to retrieve disclosure content before rendering it on the website.

const notice = await fetch("https://review.getsunura.com/api/v1/disclosures/generate", {
  method: "POST",
  headers: {
    "x-sunura-api-key": process.env.SUNURA_API_KEY ?? "",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ disclosureId: "disc_123", surface: "wordpress-page" })
});