Complete REST API documentation for integrating compliance monitoring into your applications with interactive examples and detailed responses.
All API requests are made to this base URL
https://api.compliancecheck.com/v1All endpoints use HTTPS. HTTP requests will be redirected.
Bearer token authentication required for all endpoints
Authorization: Bearer your_api_key_hereGet your API key from the dashboard settings page.
Complete reference for all available API endpoints
/api/v1/scansCreate a new compliance scan
urlWebsite URL to scan
regulationsSpecific regulations to check ['GDPR', 'CCPA', 'PDPA']
callback_urlWebhook URL for completion notification
{
"scan_id": "scan_abc123",
"status": "pending",
"url": "https://example.com",
"regulations": [
"GDPR",
"CCPA"
],
"created_at": "2025-01-15T10:30:00Z"
}/api/v1/scans/{scan_id}Get scan status and results
scan_idUnique scan identifier
{
"scan_id": "scan_abc123",
"status": "completed",
"url": "https://example.com",
"score": 85,
"issues_found": 3,
"results": "{ detailed compliance analysis }",
"completed_at": "2025-01-15T10:35:00Z"
}/api/v1/scansList all scans for authenticated user
limitNumber of results (default: 50, max: 100)
offsetPagination offset
statusFilter by status: pending, processing, completed, failed
{
"scans": [
"array of scan objects"
],
"total": 25,
"limit": 50,
"offset": 0
}/api/v1/webhooksConfigure webhook notifications
urlWebhook endpoint URL
eventsEvents to subscribe to ['scan.completed', 'scan.failed']
secretWebhook signature secret
{
"webhook_id": "wh_xyz789",
"url": "https://yourapp.com/webhook",
"events": [
"scan.completed"
],
"created_at": "2025-01-15T10:30:00Z"
}Standard HTTP status codes and error handling
Invalid request parameters or malformed JSON
Invalid or missing API key
API key lacks required permissions
Requested resource not found
Rate limit exceeded
Server error, contact support
Real-time notifications for scan completion and status changes
Triggered when a compliance scan finishes successfully
{
"event": "scan.completed",
"scan_id": "scan_abc123",
"url": "https://example.com",
"status": "completed",
"score": 85,
"timestamp": "2025-01-15T10:35:00Z"
}Triggered when a compliance scan encounters an error
{
"event": "scan.failed",
"scan_id": "scan_abc123",
"url": "https://example.com",
"error": "Website unreachable",
"timestamp": "2025-01-15T10:35:00Z"
}API usage limits based on subscription tier
Rate limits are enforced per API key. Exceeded limits return HTTP 429 status. Use the X-RateLimit-* headers to monitor usage.
Use our official SDKs or integrate directly with the REST API