Get your first AI compliance audit running in under 5 minutes
Before generating API keys, you need an active plan. ViriSIM offers a Free Plan to get started with 2,000 tokens.
API keys authenticate your requests. Each key follows the format: sk-viri-xxxxxxxxxxxxxxxxxxxx
sk-viri-a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2
Toggle the API monitoring switch in your dashboard header to start receiving audit events.
Send your AI's input/output pairs to ViriSIM for compliance auditing. Use this endpoint:
https://analyzecompliance-vrbinbrbkq-uc.a.run.app
X-API-Key: sk-viri-your-api-key-here
Content-Type: application/json
// ViriSIM Webhook Integration - JavaScript
async function auditCompliance(userInput, aiOutput) {
const response = await fetch('https://analyzecompliance-vrbinbrbkq-uc.a.run.app', {
method: 'POST',
headers: {
'X-API-Key': 'sk-viri-your-api-key-here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
user_id: "your-user-id",
company_name: "Your Company",
use_case: "Customer Support",
timestamp: new Date(),
your_company_user_id: "user_12345",
your_company_user_session_id: "session_67890",
model_version: "gpt-4",
input: {
value: userInput,
format: "text",
country: "global"
},
output: {
value: aiOutput,
format: "text",
country: "global"
}
})
});
const result = await response.json();
console.log("Audit submission:", result.submission_id);
return result;
}
// Example usage
auditCompliance(
"What's the best way to handle customer data?",
"We recommend following GDPR guidelines for data protection."
);
curl -X POST https://analyzecompliance-vrbinbrbkq-uc.a.run.app \
-H "X-API-Key: sk-viri-your-api-key-here" \
-H "Content-Type: application/json" \
-d '{
"user_id": "your-user-id",
"company_name": "Your Company",
"use_case": "Customer Support",
"timestamp": new Date(),
"your_company_user_id": "user_12345",
"your_company_user_session_id": "session_67890",
"model_version": "gpt-4",
"input": {
"value": "What is GDPR?",
"format": "text",
"country": "global"
},
"output": {
"value": "GDPR is the General Data Protection Regulation...",
"format": "text",
"country": "global"
}
}'
import requests
from datetime import datetime
def audit_compliance(user_input, ai_output):
url = "https://analyzecompliance-vrbinbrbkq-uc.a.run.app"
headers = {
"X-API-Key": "sk-viri-your-api-key-here",
"Content-Type": "application/json"
}
payload = {
"user_id": "your-user-id",
"company_name": "Your Company",
"use_case": "Customer Support",
"timestamp": new Date(),
"your_company_user_id": "user_12345",
"your_company_user_session_id": "session_67890",
"model_version": "gpt-4",
"input": {
"value": user_input,
"format": "text",
"country": "global"
},
"output": {
"value": ai_output,
"format": "text",
"country": "global"
}
}
response = requests.post(url, json=payload, headers=headers)
return response.json()
# Example
result = audit_compliance(
"How do I delete user data?",
"You can request deletion through your account settings."
)
print(result["submission_id"])
const https = require('https');
function auditCompliance(userInput, aiOutput) {
const data = JSON.stringify({
user_id: "your-user-id",
company_name: "Your Company",
use_case: "Customer Support",
timestamp: new Date(),
your_company_user_id: "user_12345",
your_company_user_session_id: "session_67890",
model_version: "gpt-4",
input: { value: userInput, format: "text", country: "global" },
output: { value: aiOutput, format: "text", country: "global" }
});
const options = {
hostname: 'analyzecompliance-vrbinbrbkq-uc.a.run.app',
method: 'POST',
headers: {
'X-API-Key': 'sk-viri-your-api-key-here',
'Content-Type': 'application/json',
'Content-Length': data.length
}
};
const req = https.request(options, (res) => {
let body = '';
res.on('data', chunk => body += chunk);
res.on('end', () => console.log(JSON.parse(body)));
});
req.write(data);
req.end();
}
// Example
auditCompliance(
"How do I delete user data?",
"You can request deletion through your account settings."
);
Once you send your first request, ViriSIM immediately begins processing the audit. Here's what happens:
submission_id (e.g., VIRI-0001234Xabcde)| Field | Type | Required | Description |
|---|---|---|---|
user_id | string | ✓ | Your unique user identifier |
company_name | string | ✓ | Your organization name |
use_case | string | ✓ | Primary use of your AI (e.g., "Customer Support") |
timestamp | ISO date | ✓ | Do not modify — ensures log accuracy (new Date()) |
your_company_user_id | string | ✗ | Your internal user ID for filtering |
your_company_user_session_id | string | ✗ | Session ID for context analysis |
model_version | string | ✗ | Your AI model version for traceability |
input.value | string | ✓ | Raw user input to your AI |
input.format | string | ✓ | "text" or "json" |
input.country | string | ✓ | User's country or "global" |
output.value | string | ✓ | Raw AI-generated output |
output.format | string | ✓ | "text" or "json" |
output.country | string | ✓ | Your country of business or "global" |
{
"submission_id": "VIRI-0001234Xabcde",
"message": "Success, entry undergoing audit.",
"status": "success"
}
| Error | Solution |
|---|---|
API key required in X-API-Key header |
Add your API key to the request header |
Unauthorized access! |
Invalid or missing API key — generate a new one |
Insufficient Tokens |
Purchase more tokens or switch to a higher plan |
Tokens above the limit of 2k |
Your input+output exceeds 2,000 tokens — truncate before sending |
No Subscription |
Activate a plan (Free or Premium) first |
Go to ViriSIM, get your API key and run your first compliance audit in under 30 minutes.
Go to ViriSIM