Skip to main content

GET /api/static/sites/:id

Retrieve a single Site’s status, its latest scan run, and a summary of current security findings. Requires an API key with the read scope (a read-and-scan key also works, since read-and-scan implies read).

Request

Headers:
  • x-api-key (required): Your Rafter security API key, scope read or read-and-scan
Path Parameters:

Example Request

Response

Success (200 OK):
No runs yet (latest_run is null):
Error (401 Unauthorized — missing key):
Error (401 Unauthorized — invalid key):
Error (404 Not Found — not owned or doesn’t exist):
Error (429 Too Many Requests):
Error (500 Internal Server Error):

Response Fields

The security counts cover the latest run only, exclude dismissed findings, and are computed over at most 500 findings.
This endpoint is rate-limited to 100 requests per minute per account. A 429 response includes X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers.

Examples

JavaScript

Python