API Reference
🚀 Quick Start
Base URL
https://api.ai-validator.com/v1All API requests should be made to this base URL. Secure HTTPS is required.
Authentication
Include your API key in Authorization header for all requests:
Authorization: Bearer YOUR_API_KEYGet your API key from: Settings → API Keys
API keys are encrypted and stored securely.
📡 Core Endpoints
POST /validate
Validate code content and receive analysis results.
Request Body
{
"content": "string",
"fileName": "string",
"language": "string",
"autoFix": false,
"provider": "claude"
}POST /validate/sync
Synchronous validation that waits for completion and returns full results.
Use Cases
- • Real-time validation in applications
- • CI/CD pipeline integration
- • Automated testing workflows
- • When immediate results are required
⚙️ Parameters
Required
content
string - The code content to validate
fileName
string - Name of file being validated
language
string - Programming language (javascript, typescript, python, etc.)
Optional
autoFix
boolean - Apply auto-fixes automatically (default: false)
provider
string - AI provider: 'claude', 'gpt', 'auto' (default: 'auto')