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/v1
All endpoints use HTTPS. HTTP requests will be redirected.
Bearer token authentication required for all endpoints
Authorization: Bearer your_api_key_here
Get your API key from the dashboard settings page.
Complete reference for all available API endpoints
/api/v1/scans
Create a new compliance scan
url
Website URL to scan
regulations
Specific regulations to check ['GDPR', 'CCPA', 'PDPA']
callback_url
Webhook 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_id
Unique 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/scans
List all scans for authenticated user
limit
Number of results (default: 50, max: 100)
offset
Pagination offset
status
Filter by status: pending, processing, completed, failed
{
"scans": [
"array of scan objects"
],
"total": 25,
"limit": 50,
"offset": 0
}
/api/v1/webhooks
Configure webhook notifications
url
Webhook endpoint URL
events
Events to subscribe to ['scan.completed', 'scan.failed']
secret
Webhook 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