Skip to content

Share & embed a policy

Once a policy is published you can share it a few ways.

Every published policy has its own public page. Open the policy in the app to copy its shareable link, then reference it from your website, security.txt, or README.

To render the policy inline on your own site, use the policy widget. Open the policy in the app and copy its embed snippet, then paste it where you want the policy to appear.

The widget renders into a #dscls-policy container, loads in a Shadow DOM so it won’t clash with your site’s styles, and picks up your policy’s branding.

Published policies are available without authentication from the public API, by id or shortcode:

Fetch a published policy
curl https://api.disclosebot.io/v1/p/policies/<shortcode>

To create or update policies programmatically, use the authenticated /v1/policies endpoints with a Bearer token; see the API quickstart and the Platform API reference.