Share & embed a policy
Once a policy is published you can share it a few ways.
Hosted link
Section titled “Hosted link”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.
Embed the policy widget
Section titled “Embed the policy widget”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.
Read a policy via the API
Section titled “Read a policy via the API”Published policies are available without authentication from the public API, by id or shortcode:
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.