Skip to main content
Most of a ShieldLabs integration is glue code: load the snippet, verify a webhook, turn a score into a decision. The prompts below are written so you can paste one into your AI assistant, fill in the placeholders, and get working code back. Each one already carries the product facts the model needs, so it does not guess.
Two ways to give your AI tool the full context.
  • Every page in these docs has a menu in the top-right to Copy page, View as Markdown, or open it directly in ChatGPT or Claude with the page preloaded.
  • The entire documentation set is published as a single file at /llms-full.txt (with a short index at /llms.txt). Paste either URL into your assistant to load all of ShieldLabs as background before you ask.

Install the snippet

Replace the placeholders, then paste into ChatGPT, Claude, or Cursor.

Verify a webhook

Turn the Risk Score into a decision

Read a visitor’s history

Keep the model honest

When you paste generated code back, sanity-check it against the real product:

Snippet

The real exports, framework examples, and what the browser collects.

Webhooks

The snake_case event payload, X-Shield-Signature verification, and handlers in Node, Go, and Python.

Risk Scoring

The 0-100 score, its bands, and the signals breakdown to branch on.

Server API

History and profile endpoints with full request and response shapes.
If a model invents an endpoint, an npm package, or a Description value to switch on, it is guessing. Re-prompt it with the page above (Copy page, then paste) and it will correct.