Welcome to the Rafter API
The Rafter API provides programmatic access to our security scanning capabilities. Use this API to integrate security scanning into your applications, automation workflows, and CI/CD pipelines.Base URL
API Endpoints
Authentication
All API requests require authentication using an API key. Include your API key in thex-api-key header with every request.
Your API key starts with
RF and should be kept secure. Never commit it to version control. Use environment variables or secure secret management systems.Rate Limiting
The/api/static/sites* endpoints are rate-limited per account (see each Sites endpoint’s reference page for its specific limit); a 429 response includes X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers. The scan and usage endpoints (/api/static/scan, /api/static/usage) are not currently rate-limited beyond your scan quota.
Response Formats
The API supports multiple response formats:JSON (Default)
All endpoints return JSON responses by default:Markdown (format=md)
Some endpoints support Markdown format for human-readable reports:Error Handling
The API uses standard HTTP status codes:
Error responses include a descriptive message:
Getting Started
Check Usage
Check your API quota and remaining scans.
Trigger Scan
Start a new security scan for your repository.
Get Results
Retrieve scan results and vulnerability reports.
Register a Site
Monitor a live domain instead of a code repository.
CLI
While you can use the API directly with HTTP requests, we also provide powerful CLI tools.Support
- Documentation: This API reference
- Support: Visit our support page

