Step 1: Create Your Account
First, you’ll need to create a KoruAI account to get started.- Visit KoruAI Dashboard
- Click on “Sign Up” to create your account
- Complete the registration process
You can sign up using your email address or through GitHub/Google OAuth for
faster registration.
Step 2: Create Your Application
Once logged in, you’ll need to create an application to get your API credentials.- Navigate to your dashboard
- Click “Create New App” button
- Enter your application name
- Click “Create Application”
- App ID: Your unique application identifier
- API Key: Your authentication key for the KoruAI service
Keep your API key secure and never expose it in client-side code. Store it in
environment variables.
Step 3: Install the SDK
Install the KoruAI Express.js SDK in your project:The KoruAI SDK is lightweight and has minimal dependencies to keep your
application fast.
Step 4: Integrate KoruAI into Your Express App
Add KoruAI middleware to your Express.js application:Configuration Options
Your KoruAI API key for authentication
Your application ID from the KoruAI dashboard
Enable real-time blocking of suspicious requests. When
true
, KoruAI will
automatically block requests that match threat patterns.Step 5: Generate Traffic for Analysis
KoruAI needs to analyze your API traffic patterns to create effective security rules.- Deploy your application with KoruAI integrated
- Generate normal user traffic to your API endpoints
- Wait for sufficient requests to be collected (recommended: 100+ requests per endpoint)
How much traffic do I need? KoruAI works best with at least 100 requests
per endpoint. The more diverse and realistic traffic you have, the better the
AI can understand your API patterns and create accurate security rules.
Monitor Your Traffic
You can monitor incoming requests in your KoruAI dashboard:- Total Requests: Number of requests processed
- Unique Endpoints: API endpoints discovered
- Request Patterns: Traffic patterns being learned
Step 6: Create Security Policies
Once you have sufficient traffic data, create AI-powered security policies:- Go to your application dashboard
- Navigate to the “Policies” section
- Click “Create Policies” button
- Wait for the AI to analyze your traffic and generate custom rules
- Traffic Analysis: AI analyzes your request patterns
- Rule Generation: Custom security rules are created for your specific API
- Validation: Rules are tested against your traffic patterns
- Deployment: Active protection begins
What Happens Next?
Once your policies are active, KoruAI will: ✅ Monitor all incoming requests with zero performance impact✅ Detect anomalous behavior using your custom AI rules
✅ Block suspicious requests (if
blockRealtime
is enabled)✅ Provide detailed analytics in your dashboard
✅ Automatically adapt to new endpoints and patterns
Verification
To verify everything is working correctly:- Check your dashboard for incoming request data
- Look for the policy creation status
- Monitor the analytics for any detected anomalies
Need Help?
Integration Guide
Detailed integration instructions and advanced configuration
Configuration Guide
Complete configuration options and parameters
Support
Get help from our technical support team
GitHub
View source code and report issues
Common Issues
My policies aren't being created
My policies aren't being created
Make sure you have sufficient traffic (100+ requests recommended). Check that your API key and App ID are correct, and verify that requests are showing up in your dashboard.
I'm seeing authentication errors
I'm seeing authentication errors
Double-check your API key and App ID in your environment variables. Make sure
they match exactly what’s shown in your KoruAI dashboard.
Real-time blocking isn't working
Real-time blocking isn't working
Ensure you’ve set
blockRealtime: true
in your KoruAI configuration and that you have active policies created for your endpoints.