Quick Start Guide
5-minute integration with the MagenTrust script tag.
Step 1: Get API Keys
Sign up at magentrust.ai/signup and create a new site. You'll receive:
- Site ID: Identifies your website
- Public API Key: Used in client-side code (safe to expose)
- Secret Key: Used for server-side validation (keep secure)
Step 2: Add Script to Your Site
Copy this code into your site's <head> section:
<!-- MagenTrust continuous identity assurance -->
<script src="https://cdn.magentrust.ai/v1/magen-trust.min.js"></script>
<script>
MAGENTrust.init({
siteId: 'YOUR_SITE_ID',
apiKey: 'YOUR_PUBLIC_API_KEY',
mode: 'auto' // Automatically protects all forms
});
</script>Where to add this:
- Squarespace: Settings → Advanced → Code Injection → Header
- Webflow: Project Settings → Custom Code → Head Code
- WordPress: Appearance → Customize → Additional CSS/JS
- Wix: Settings → Custom Code → Head
Step 3: Test
Submit a form on your site. In the browser console, you should see:
[MagenTrust] Verification successful: Score 0.8423That's it! Your forms are now protected from bots.
Next Steps
- Customize thresholds
- Add server-side validation
- View analytics dashboard