POST /api/static/sites
Register a new Site for live-application monitoring and trigger its first scan. Sites are distinct from repository scans (/api/static/scan) — instead of scanning source code, Sites continuously monitor a live domain for exposed backends, DNS misconfiguration, SEO issues, and accessibility problems.
Requires an API key with the read-and-scan scope.
Request
Headers:x-api-key(required): Your Rafter security API key, scoperead-and-scanContent-Type: application/json
Example Request
Response
Success (200 OK — new site):If the site was created but its initial scan failed to start, the response includes a
scan_error string alongside "created": true and "run": null.Response Fields
Rate Limiting
The API implements rate limiting to ensure fair usage:- Rate Limit: 100 requests per minute per IP address
- Quota: Based on your subscription plan
Examples
JavaScript
Python
Next Steps
After creating a site, you can:- Check status and findings using the site id with the Get Site endpoint
- Trigger a re-scan later with the Scan Site endpoint
- List all your sites with the List Sites endpoint

