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):
Error (404 Not Found — not owned or doesn’t exist):
Error (429 Too Many Requests):
Error (500 Internal Server Error):

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