POST /api/static/sites/scan
Trigger a new scan run for a Site you already own. Use this to re-check a site after remediation or on a schedule. Requires an API key with theread-and-scan scope.
Request
Headers:x-api-key(required): Your Rafter security API key, scoperead-and-scanContent-Type: application/json
projectId or url to identify the site. Optionally restrict the scan to specific sections. If both projectId and url are given, projectId is used and url is ignored.
Example Request
Response
Success (200 OK):url):
url is given (instead of projectId) and doesn’t resolve to a usable domain. Same validation and messages as Create Site — "Invalid URL format", "IP addresses and localhost are not allowed for security reasons", "Internal TLDs are not allowed", or "Invalid input: must be a non-empty string".
Error (400 Bad Request — no pages to scan):
{N} is your plan’s per-project run limit — see rafter.so/pricing for current plan limits.
Error (404 Not Found — not owned or doesn’t exist):
The 404 response is deliberately identical whether the site doesn’t exist or simply isn’t owned by your account — this avoids leaking which domains other accounts monitor.
Response Fields
Site scans are rate-limited to 10 requests per hour per account, separate from your scan quota. A
429 response includes X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers.
