Quick Start Guide
Quick Start Guide
Get up and running with GovernanceAI in just 5 minutes. We’ll walk you through creating an organization, generating an API key, and making your first guardrail evaluation.
Prerequisites
- An active GovernanceAI account (SaaS or On-Premise)
- A terminal with cURL, Python, or Node.js installed
- 5 minutes of your time
Step 1: Log In & Access Dashboard (1 min)
For SaaS:
- Visit app.governanceai.com
- Click Sign In
- Enter your credentials
- You’ll land on your organization dashboard
For On-Premise:
- Visit your instance URL (e.g.,
https://governanceai.your-domain.com) - Log in with your credentials
Step 2: Generate Your First API Key (1 min)
- Click your avatar (top right) → Settings
- Navigate to API Keys
- Click Create New API Key
- Fill in:
- Name:
My First Key - Environment:
Production - Scope: Select
runtime:execute(for making guardrail calls)
- Name:
- Click Generate
⚠️ Copy the API key immediately - You won’t see it again!
Save it to your environment:
Step 3: Get Your Organization ID (1 min)
- Stay in Settings page
- Look for Organization Details section
- Copy your Organization ID (looks like
org_123abc...)
Step 4: Make Your First API Call (1 min)
Choose your preferred language:
Option A: cURL
Option B: Python
Option C: Node.js
Step 5: Review the Response (1 min)
You should receive a response like:
Response Fields:
decision- Whether the message was allowed or blockedpolicy_violations- List of policies that were violated (if any)risk_score- Overall risk score (0-1, where 1 is highest risk)metadata- Additional info about the evaluation
Understanding the Response
If decision is “allow” ✅
Your message passed all active guardrails. The LLM response is safe to display to the user.
If decision is “block” ❌
Your message violated one or more policies. You should not display the response to the user.
If decision is “transform”
The message was modified to comply with policies before being returned.
Next Steps
Congratulations! 🎉
You’ve successfully made your first GovernanceAI API call. Here’s what to explore next:
-
- Create custom guardrails specific to your use case
- Configure policy rules and thresholds
-
- Define organization-wide governance policies
- Test policies before rolling out to production
-
- Connect with GitHub for code scanning
- Set up Jira for issue tracking
- Integrate with your favorite LLM provider
-
- Python client library setup
- Node.js integration patterns
- Advanced API patterns
-
- Deep dive into guardrails and policies
- Learn about AI Bill of Materials
- Understand red-teaming framework
Common Issues
Error: 401 Unauthorized
Problem: Invalid or missing API key
Solution:
- Verify your API key is correct
- Make sure it hasn’t been rotated
- Check the Authorization header format:
Authorization: Bearer <key>
Error: 403 Forbidden
Problem: API key doesn’t have permission
Solution:
- Go to Settings → API Keys
- Verify your key has
runtime:executescope - Generate a new key with correct permissions
Error: Network timeout
Problem: Connection to API is slow
Solution:
- Check your internet connection
- Try again in a few seconds
- Contact support if issue persists
Troubleshooting Checklist
- API key is correct and starts with
gak_ - Organization ID is correct and starts with
org_ - Using HTTPS (not HTTP)
- Authorization header format is correct
- API key has
runtime:executescope - API key hasn’t expired
- Network can reach api.governanceai.com
- Request body is valid JSON
Need Help?
- 📖 Full API Reference - Complete endpoint documentation
- 💻 Code Examples - More code samples
- 📞 Support & Community - Get help from our team
- 🏗️ Architecture Overview - Understand how it works
You’re all set! Start building with GovernanceAI. 🚀