API Documentation
Trigger website audits programmatically with our REST API. Built for IT departments at small-to-medium businesses and solo entrepreneurs.
Authentication
All API requests require an API key in the X-API-Key header. Keys start with wa_.
Getting Your API Key
- Visit /admin_portal and sign in with Google
- Create a new API key — the plaintext key is shown once, copy it immediately
- Send the key in the
X-API-Keyheader on every request - Revoke or rotate keys any time from the portal
Example Request
curl "https://api.website-auditor.io/api/audit?businessUrl=example.com&businessName=Example+Inc&businessCity=Seattle" \
-H "X-API-Key: wa_your_api_key_here"
Rate Limits
5 requests per API key per day. Rate limit headers are included in every response:
X-RateLimit-Limit: 5
X-RateLimit-Remaining: 3
X-RateLimit-Reset: 2026-03-31T23:59:59.999Z
Endpoints
GET
/health
Health check
⌄
Request
No authentication required.
Response
Status: 200 OK
{
"status": "ok",
"timestamp": "2026-03-31T12:00:00.000Z"
}
HTTP Status Codes
The API uses standard HTTP status codes to indicate the result of your request.
200 OK
Audit completed successfully
400 Bad Request
Missing or invalid query parameters
401 Unauthorized
Missing or invalid API key
429 Too Many Requests
Rate limit exceeded (5 requests per key per day)
502 Bad Gateway
Upstream audit service error; try again later
Admin Portal
Visit /admin_portal to manage your API keys. Sign in with Google.
Portal Features
- Create keys — plaintext shown once at creation, copy immediately
- View keys — creation date and last-used timestamp for each key
- Revoke keys — instantly disable a key that should no longer work
- Rotate keys — revokes the old key and generates a new one
- Usage stats — requests today and total requests per key