The Agent API runs the two non-intrusive tools, Security headers and Email security, over HTTP. It needs no Turnstile check and no email verification, and works without an API key. All paths are relative to https://api.vigilbase.com/tools/v1. The same paths under https://vigilbase.com/api/v1 answer with the same bodies, so existing integrations keep working.
Endpoints
| Method and path | Purpose |
|---|---|
GET/agent/tools | The tool catalog, auth options and current rate limits |
POST/agent/tools/security-headers/execute | Grade a URL's HTTP security headers |
POST/agent/tools/email-security/execute | Grade a domain's email authentication records |
Other tools are not on this API. website-security, react2shell and fortibleed-check run in the browser with email verification, or through Vigilbase One with a signed-in CLI, which calls One's tool run endpoints. Asking for them returns 404 with a message that says so.
Run a check
Send a JSON body with one field, target, for example {"target":"https://example.com"}. For security-headers it is a URL or domain (https:// is assumed when you leave out the scheme); for email-security it is a domain.
Request
POST /tools/v1/agent/tools/security-headers/execute HTTP/1.1
- Host
- api.vigilbase.com
- Content-Type
- application/json
Response200 OK
- Content-Type
- application/json
- API-Version
- 1
- RateLimit-Limit
- 10
- RateLimit-Remaining
- 9
A successful response looks like this:
{
"success": true,
"apiVersion": "1",
"toolName": "security-headers",
"target": "https://example.com",
"grade": "B",
"gradeScore": 72,
"result": { "status": "warnings", "message": "...", "details": { } },
"error": null,
"uiUrl": "https://vigilbase.com/tools/security-headers",
"skillUrl": "https://vigilbase.com/agent-skills/security-headers.md"
}
result holds the full scan result, in the same shape the tool page uses. The body may be at most 8 KiB and target at most 2,048 characters.
curl -sS -X POST https://api.vigilbase.com/tools/v1/agent/tools/email-security/execute \
-H 'content-type: application/json' \
-d '{"target":"example.com"}'
const response = await fetch(
"https://api.vigilbase.com/tools/v1/agent/tools/email-security/execute",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ target: "example.com" }),
},
);
const data = (await response.json()) as { success: boolean; grade: string | null };
Authentication
You can call the API anonymously, or send a developer API key to raise the rate limit. Put the key in either header:
Authorization: Bearer <api_key>
X-Api-Key: <api_key>
An invalid or expired key returns 401; it does not fall back to anonymous access. If vigilbase.com can't check the key with Vigilbase One at that moment, it returns 503 with Retry-After: 5. Create keys in Vigilbase One; see API keys.
Responses carry Access-Control-Allow-Origin: *, so you can call the API from a browser.
Rate limits and quotas
These limits apply to the execute endpoints. The catalog endpoint has only the per-minute limits.
| Limit | Anonymous | Signed in through the MCP server | With an API key |
|---|---|---|---|
| Requests per minute | 10, per client IP | 10, per Vigilbase account | 30, per key |
| Free scans per day | 5 per network, shared with the browser tools; resets at midnight UTC | 50 per Vigilbase account, shared with the browser tools when you're signed in; resets at midnight UTC | Not counted |
| Scans per hour | 20 per client IP and 20 per target, 300 overall across all agent callers | Same | Same |
The daily free scans are the same allowance the browser tools use: 5 per IPv4 address or IPv6 /64 when you're signed out, and 50 per Vigilbase account when you're signed in. When you sign in to the MCP server, its scans spend your account's 50, together with your scans on vigilbase.com. A developer key doesn't spend either allowance.
The hourly scan quota is shared with the browser tools and counts the same way with or without a key. A target is counted by its hostname for each tool, so different paths or query strings on one site share its budget, and every address in an IPv6 /64 counts as one client. A request refused before any scan ran, for example because the target is invalid, gets its daily free scan back.
Requests without a key that vigilbase.com has recently verified also count towards 60 requests a minute per client IP. This limits guessing with invalid keys; a verified key gets its unit back.
GET/agent/tools returns the per-minute limit, the hourly scan quota and your daily allowance in its rateLimit field. rateLimit.dailyAllowance has your tier (anonymous, signed_in or developer), the limit per UTC day and, when available, how many scans you have used and have remaining and when the allowance resetsAt.
Responses from the per-minute check onwards carry rate limit headers for that limit: RateLimit, RateLimit-Policy, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset and the X-RateLimit-* equivalents. 401, 403 and 404 answers come before the check and don't carry them.
When a limit is used up, the API returns 429 with code rate_limit_exceeded, a Retry-After header and retryAfterSec in the body. Wait that many seconds before trying again, and no scan ran. A spent hourly quota can mean a wait of up to an hour, and spent daily free scans a wait until midnight UTC.
Errors
Errors use application/problem+json, with the RFC 9457 fields alongside Vigilbase's own:
{
"success": false,
"error": { "code": "rate_limit_exceeded", "message": "...", "hint": "..." },
"type": "https://vigilbase.com/developers/errors/rate-limit-exceeded",
"title": "Rate Limit Exceeded",
"status": 429,
"detail": "...",
"code": "rate_limit_exceeded",
"retryAfterSec": 1800,
"docsUrl": "https://docs.vigilbase.com/tools/developers/agent-api#rate-limits-and-quotas"
}
| Field | Contents |
|---|---|
success | Always false |
error | code, message and, on most errors, a hint on what to do |
type | https://vigilbase.com/developers/errors/ followed by the code with hyphens, for example rate-limit-exceeded |
title | The code in title case, for example Rate Limit Exceeded |
status | The HTTP status |
detail | The same text as error.message |
code | The same as error.code |
retryAfterSec | On 429 and most 503 answers: seconds to wait |
docsUrl, toolsUrl, skillsIndex | On some errors: links to these docs, the tool catalog and the agent skills index |
Branch on code; the message wording can change.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | Invalid JSON, or a missing or invalid target |
| 401 | unauthorized | Invalid or expired API key |
| 403 | forbidden | The key lacks the scope this endpoint needs (tools:read or tools:execute) |
| 404 | not_found | The tool is unknown or not on this API |
| 410 | gone | POST https://vigilbase.com/api/v1/developer/keys, which no longer creates keys |
| 413 | payload_too_large | The body is over 8 KiB |
| 422 | unprocessable_entity | The scan ran but failed or could not assess the target, for example because of a bot challenge |
| 429 | rate_limit_exceeded | A per-minute limit, the daily free scans or the hourly scan quota is used up |
| 503 | service_unavailable | Agent execution is paused, or key checks, scan limits or scan storage are unavailable. No scan ran; retry after Retry-After |
A 422 keeps the shape of a scan response as well: it has apiVersion, toolName, target, grade and gradeScore (both null), result (the scanner's result, explaining what went wrong, or null), uiUrl and skillUrl, next to the error fields above.
An unexpected server error returns 500, which may not use this format.
Versioning
Responses carry API-Version: 1. Use https://api.vigilbase.com/tools/v1.
Deprecated aliases
The older URLs were retired on 18 November 2026. They are never redirected:
| Alias | Headers | Retired |
|---|---|---|
https://vigilbase.com/api/v1/… | Deprecation: @1793664000 (RFC 9745, 3 November 2026), Sunset: Wed, 18 Nov 2026 00:00:00 GMT (RFC 8594) and Link: <https://api.vigilbase.com/tools/v1/…>; rel="successor-version" | 18 November 2026 |
https://vigilbase.com/api/agent/tools… | Deprecation: @1787270400, the same Sunset and the same successor Link | 18 November 2026 (first announced for 1 September 2027, then 1 February 2027) |
Since 18 November 2026 at 00:00 UTC, these aliases answer 410 Gone with an application/problem+json body: type, title, status, detail, successor (the new URL), sunset, and success: false with error as in every Agent API error. The Link, Sunset and Deprecation headers stay. See the API changelog.
Two kinds of older URL are never retired. The badge image URLs (vigilbase.com/api/badge/… and vigilbase.com/api/v1/badge/…) are embedded on other sites and announce nothing. The Cloudflare Checkup paths the CLI calls (vigilbase.com/api/v1/tools/cloudflare-checkup/local-session/…) send Deprecation but no Sunset, because shipped CLIs use them. Responses on api.vigilbase.com carry no Deprecation or Sunset header.
The OpenAPI document states that breaking changes will ship under /tools/v2/, and that new fields may appear in v1 responses without a version change.
Reference
See the API reference for every field, or fetch the OpenAPI document at https://api.vigilbase.com/tools/v1/openapi.json.