Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.regpilot.dev/llms.txt

Use this file to discover all available pages before exploring further.

Get Started with RegPilot

This quickstart guide will help you set up your first AI compliance project and make your first API call in under 5 minutes.
1

Create an account

Sign up for a free RegPilot account at regpilot.dev/signup.You’ll need to:
  • Provide your email address
  • Create a company/organization
  • Set up your first project
2

Generate an API key

Navigate to AI Gateway → Overview and click “Manage Keys” to create your first API key.
# Your API key will look like this:
sk_1a2b3c4d5e6f7g8h9i0j...
Save your API key immediately! It’s only shown once. If you lose it, you’ll need to generate a new one.
3

Make your first API call

Test your setup with a simple chat completion request:
curl -X POST https://regpilot.dev/api/ai/chat \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user", "content": "Hello, test my compliance setup"}
    ]
  }'
You should receive a response with compliance validation headers:
{
  "response": "Hello! Your compliance setup is working correctly.",
  "headers": {
    "X-Governor-Validated": "true",
    "X-Governor-Risk-Score": "5"
  }
}
4

View your analytics

Go to your project dashboard to see:
  • Request analytics and costs
  • Compliance scores
  • Usage statistics
  • Any violations or alerts

Integration Examples

Choose your preferred language or framework:
const response = await fetch('https://regpilot.dev/api/ai/chat', {
  method: 'POST',
  headers: {
    'X-API-Key': process.env.REGPILOT_API_KEY,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    messages: [
      { role: 'user', content: 'Hello from Node.js!' }
    ]
  })
});

const data = await response.json();
console.log(data);

Enable Governor (Optional)

Upgrade to Governor for advanced compliance validation:
1

Enable Governor

Navigate to AI Gateway → Governor and toggle on the Governor feature.
2

Configure settings

Set your compliance preferences:
  • Strict Mode: Block high-risk content automatically
  • Auto-approve Threshold: Set risk tolerance (0-100)
  • Custom Rules: Add project-specific compliance rules
3

Test validation

Send a test request to see Governor in action:
curl -X POST https://regpilot.dev/api/ai/chat \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user", "content": "Process this customer refund denial"}
    ],
    "governorMetadata": {
      "actionType": "refund_denial",
      "recipientCountry": "DE"
    }
  }'

Next Steps

Now that you’re set up, explore these features:

Register AI Models

Add your AI models to the compliance registry

Set Up Alerts

Configure real-time compliance alerts

Create Policies

Define custom compliance policies

API Reference

Explore the full API documentation

Common Issues

Problem: Your API key is invalid or inactive.Solution:
  • Verify your API key is correct
  • Check that the key is active in AI Gateway → Overview
  • Ensure you’re using the header X-API-Key (not Authorization)
Problem: Request times out or fails.Solution:
  • Check your internet connection
  • Verify the endpoint URL is correct: https://regpilot.dev/api/ai/chat
  • Check RegPilot status page for any outages
Problem: Governor is blocking your requests.Solution:
  • Review the violation details in the response
  • Adjust your auto-approve threshold in Governor settings
  • Review and modify your content to meet compliance requirements
Need help? Contact us at support@regpilot.com or visit our community forum.