Skip to main content
By the end of this guide you will have the Heretic collector running on your page, a live session flowing into the pipeline, and a verdict JSON response arriving at your server — all without touching your DNS or routing a single byte through a Heretic proxy.
1

Request access and sign in to the dashboard

Heretic is currently in early access. Head to heretic.quest/dashboard and sign in with your account. If you do not have an account yet, request access from the same page — the apostate tier is free and gives you the full signal catalogue immediately upon approval.
2

Create a site and copy your API key

Inside the dashboard, create a new site for the domain you want to protect. Once the site is created, navigate to heretic.quest/dashboard/keys and copy the secret API key. You will use this key to authenticate server-side calls to the explain endpoint.
Your API key authorises verdict reads and carries your billing identity. Never expose it in client-side code or commit it to source control.
3

Install the collector

Add the @heretic-hq/collector package to your project with your preferred package manager.
4

Initialise the collector on your page

Import and initialise the collector as early as possible in your page lifecycle — ideally before any user-interaction handlers fire. The collector generates a unique session ID, runs all probes out-of-band against your origin, and returns the session ID you will pass to your server.
Pass sessionId to your server in whatever way fits your stack — a hidden form field, a request header such as X-Heretic-Session, or a JSON body field.
5

Read the verdict on your server

On your server, call the explain endpoint with the session ID before you trust the request. The endpoint returns a full verdict object you can act on immediately.
A successful response looks like this:
Apostate tier — free early access. The apostate plan gives you full access to the entire Heretic signal catalogue at no cost during early access. There are no signal limits, no sampled verdicts, and no time-boxed trial. When paid tiers launch, you will receive advance notice before anything changes.
Want to see Heretic fire against a real browser without writing any code? Visit probe.heretic.quest to run a live probe session in your current browser and inspect the raw signals and verdict it produces.