Install one script
Load the hosted widget script and optional data attributes on any public site page with document links.
External site integration
This integration adds a user-facing dialog for switching document links between normal and accessible view, with a full backend workflow for lookup, request intake, event telemetry, and admin email notifications.
Start with this baseline and replace the domain key with your tenant/site identifier.
<script>
window.DocAccessibleWidgetConfig = {
domainKey: "customer-portal-001",
lookupEndpoint: "https://docaccessible.com/api/embed/resolve",
requestEndpoint: "https://docaccessible.com/api/embed/request",
eventEndpoint: "https://docaccessible.com/api/embed/events",
openMode: "same_tab"
};
</script>
<script src="https://docaccessible.com/embed/docaccessible-widget.js" defer></script>Load the hosted widget script and optional data attributes on any public site page with document links.
The widget scans PDF links, watches SPA route changes, and intercepts link clicks when accessible mode is active.
On click, the widget calls /api/embed/resolve and opens mapped accessible HTML URLs when status is available.
If status is missing or processing, users can submit /api/embed/request and admins get immediate email alerts.
Switches, opens, and request actions can be posted to /api/embed/events for product analytics and rollout tuning.
| Method | Endpoint | Purpose |
|---|---|---|
| POST | /api/embed/resolve | Return available/processing/missing status for a source document URL. |
| POST | /api/embed/request | Create a missing-accessible-version request and notify admin recipients. |
| POST | /api/embed/events | Record widget interaction events with payload and timestamp. |
Continue with connected guides and operational references.