Specoria API, MCP and GitHub Action
Run the free agent-readiness test from your own scripts, CI or AI assistant, and read your project’s tasks over MCP. Same rules as the test on this site; the API never calls an AI model.
What the API does
- POST https://app.specoria.com/v1/scan runs the same free test as specoria.com on one website and returns the result as JSON: score 0-100, level, critical blockers and every check with its status and weight.
- The scan reads public pages on the given domain only, over https, and never follows a redirect to another domain. Marketplace pages and excluded domains are refused.
- The request is synchronous. Page reading has a 20-second budget, so allow a client timeout of at least 60 seconds.
- If the same domain was scanned in the last 6 hours, the stored result is returned without visiting the site again ("cached": true).
- The API is versioned under /v1. New fields may be added to a response; existing fields won’t change meaning within v1.
API keys
- Create a key in the Specoria panel: Team and profile → API keys. Project admins and commercial approvers can create and revoke keys; up to 10 active keys per organization.
- The key is shown once. We store only its SHA-256 hash and the first 12 characters for display.
- Send it as a header: Authorization: Bearer spk_…, never in a URL. The API doesn’t allow browser (CORS) calls, so keep the key on a server or in CI secrets.
- A key belongs to your organization and only sees your organization’s projects. It stops working when it is revoked or when the person who created it leaves the team.
Limits
- Per key: 60 scans per hour and 500 scans per day; MCP read tools: 300 requests per hour.
- All keys of one organization together: 60 scans per hour and 500 scans per day (more keys don’t raise the limit).
- Cached results count towards the limit; invalid requests (bad URL, marketplace, excluded domain) don’t.
- Over the limit you get HTTP 429 with a Retry-After header. Successful responses carry X-RateLimit-Limit and X-RateLimit-Remaining for the hourly window.
- The API has its own share of the service’s daily scan capacity: 100 new scans per day across all API users (cached results don’t count), so it never uses up the free test on our site. When the share or the overall capacity is used up you get HTTP 503 "busy".
Request
| Field | Type | Meaning |
|---|---|---|
url | string, required | Site address, e.g. https://example.com (max 300 characters, no port or credentials). |
lang | "en" | "tr", optional | Language of check titles and help links; also the Accept-Language for generic domains. Default en. |
share | boolean, optional | Also create a shareable result link, kept for 30 days, with a link to remove it early. Default false. |
Example
curl -sS --max-time 90 -X POST https://app.specoria.com/v1/scan \
-H "Authorization: Bearer $SPECORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","lang":"en"}'
Response
On success: {"success": true, "data": {…}}. The fields of data:
| Field | Meaning |
|---|---|
api_version, model_version | API version (v1) and scoring model version of this result. |
domain, scanned_at, cached | Domain measured, when, and whether the result came from the 6-hour cache. |
score | Score 0-100 after critical-blocker caps; null when too little could be measured (insufficient: true). |
raw_score, potential | Weighted score before caps; the score reachable by fixing the top three priorities. |
level | ready, partial or low. |
site_type | ecommerce, lodging or service: which set of checks applied. |
blockers, priorities | Ids of failed critical checks; fix order. |
categories, coverage | Score per category; how many checks were measured, couldn’t be checked or didn’t apply. |
checks[] | id, title, status (pass, warn, fail, na), weight, critical, blocker, reason (why not measured), help_url. |
method_url, share | How the score is computed; the share link (url, revoke_url, expires_at) or null. |
{
"success": true,
"data": {
"api_version": "v1",
"model_version": "v2.6",
"domain": "specoria.com",
"scanned_at": "2026-10-17T10:12:30.859Z",
"cached": false,
"score": 79,
"level": "partial",
"insufficient": false,
"blockers": [],
"checks": [
{
"id": "bots_search",
"status": "pass",
"weight": 8,
"…": "…"
},
{
"id": "waf_access",
"status": "pass",
"weight": 8,
"…": "…"
},
{
"id": "no_js",
"status": "pass",
"weight": 5,
"…": "…"
}
],
"…": "…"
}
}
Abbreviated example built from our own free-test result for specoria.com, scanned 2026-10-17 (full JSON on the method page). How the free test works
Errors
{"success": false, "error": "…", "message": "…"}
| HTTP | error | When |
|---|---|---|
| 400 | invalid_json, invalid_body, invalid_url | Body isn’t JSON, a field has the wrong type, or the URL isn’t a public website address. |
| 401 | missing_api_key, invalid_api_key | No Bearer key, or the key is unknown, revoked or its creator left the team. |
| 413 | too_large | Body larger than 8 KB. |
| 422 | marketplace, blocked_domain, unreachable, redirect | Marketplace page; excluded domain; home page didn’t open; home page redirects to another domain. |
| 429 | rate_limited | Limit reached; see Retry-After. |
| 502 / 503 | scan_failed / busy | Unexpected failure; daily capacity used up. Try again later. |
MCP server for your projects
POST https://app.specoria.com/v1/mcp speaks MCP over Streamable HTTP (stateless, JSON responses) with the same key and limits. Tools:
| Tool | What it does |
|---|---|
scan_store | The same scan as /v1/scan; counts towards the scan limit. |
list_projects | Your organization’s projects: domain, latest score, critical blockers, open and done tasks. |
get_project_tasks | Tasks shown in your panel for one project (by project_id or domain); status open, todo, ongoing, done or all. |
Client configuration (for clients that accept a URL and headers)
{
"mcpServers": {
"specoria": {
"type": "http",
"url": "https://app.specoria.com/v1/mcp",
"headers": {
"Authorization": "Bearer ${SPECORIA_API_KEY}"
}
}
}
}
GitHub Action
A small action (action.yml plus one JavaScript file, Node.js built-ins only) calls /v1/scan, writes a summary table to the job and fails the step when the score is below min-score.
- uses: <owner>/<repo>/integrations/github-action@<ref>
with:
url: https://example.com
api-key: ${{ secrets.SPECORIA_API_KEY }}
min-score: 70
- Inputs: url, api-key, min-score (default 0), fail-on-blockers, lang, share. Outputs: score, level, blockers, passed, share-url.
- A missing score (too little measured) fails the step, because there is nothing to compare.
- It isn’t listed on the GitHub Marketplace yet. Write to contact@specoria.com and we’ll send you the action files to put in your repository.
What the API doesn’t do
- No deep audit, agent simulation, AI visibility or ChatGPT Shopping measurement: those stay in the panel and plans.
- No AI model is called during an API scan.
- No writes: it never changes your store or your project, and there are no webhooks.
- No browser calls (CORS) and no keys in URLs.
API reference
Generated from our OpenAPI description when the site is built, so it lists exactly what the description says: every endpoint, its request fields, response fields and error codes. /openapi.json
Download the Postman collection (JSON). Generated from the same OpenAPI description. Set the apiKey variable to your key; baseUrl is filled in.
GET /v1
List the API endpoints
Authentication: none.
POST /v1/scan
Run the free agent-readiness test on one website. Synchronous; allow a client timeout of at least 60 seconds. Body larger than 8 KB is refused.
Authentication: API key in the Authorization header (Bearer).
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes | Public website address, e.g. https://example.com (no port or credentials); max 300 characters |
lang | string | no | one of: en, tr; default: en |
share | boolean | no | Also create a shareable result link, kept for 30 days; default: false |
Response fields
| Field | Type | Description |
|---|---|---|
success | const true | |
data | Scan | |
data.api_version | const v1 | |
data.model_version | string | |
data.catalog_version | string | null | Check catalog version (e.g. 2026.10.0); null for older results without a catalog |
data.domain | string | |
data.scanned_at | string (date-time) | |
data.cached | boolean | |
data.score | number | null | null when too little could be measured (insufficient: true) |
data.raw_score | number | |
data.level | string | one of: ready, partial, low |
data.insufficient | boolean | |
data.potential | number | |
data.site_type | string | one of: ecommerce, lodging, service |
data.blockers | array of string | |
data.priorities | array of string | |
data.categories | array of object | |
data.categories[].id | string | |
data.categories[].score | number | null | |
data.coverage | object | |
data.coverage.pages | integer | |
data.coverage.measured | integer | |
data.coverage.unverifiable | integer | |
data.coverage.not_applicable | integer | |
data.checks | array of Check | |
data.checks[].id | string | |
data.checks[].title | string | |
data.checks[].status | string | one of: pass, warn, fail, na |
data.checks[].weight | number | |
data.checks[].critical | boolean | |
data.checks[].blocker | boolean | |
data.checks[].reason | string | null | one of: blocked, no_product, external, not_applicable, unreadable, no_data, budget, rate_limited, null |
data.checks[].help_url | string (uri) | |
data.method_url | string (uri) | |
data.share | null | object | |
data.share.url | string | |
data.share.revoke_url | string | |
data.share.expires_at | string |
Response headers: X-RateLimit-Limit, X-RateLimit-Remaining
Errors
| HTTP | error | When |
|---|---|---|
| 400 | invalid_json, invalid_body, invalid_url | error: invalid_json, invalid_body, invalid_url |
| 401 | missing_api_key, invalid_api_key | error: missing_api_key, invalid_api_key |
| 413 | too_large | error: too_large |
| 422 | marketplace, blocked_domain, unreachable, redirect | error: marketplace, blocked_domain, unreachable, redirect |
| 429 | rate_limited | error: rate_limited |
| 502 | scan_failed | error: scan_failed |
| 503 | busy | error: busy |
POST /v1/mcp
Customer MCP server (Streamable HTTP, stateless, JSON responses). JSON-RPC 2.0 messages per the Model Context Protocol. Tools: scan_store, list_projects, get_project_tasks. Errors are JSON-RPC errors (401 unauthorized, 429 rate limit, 413 too large, 400 parse error).
Authentication: API key in the Authorization header (Bearer).
Errors
| HTTP | error | When |
|---|---|---|
| 400 | Parse error or batch too large (JSON-RPC error) | |
| 401 | Missing or invalid API key (JSON-RPC error -32001) | |
| 413 | Request too large (JSON-RPC error) | |
| 429 | Rate limit exceeded (JSON-RPC error -32000) |
GET /v1/projects/{id}/scores
Score history of one of your projects. Only projects of the organization that owns the API key. Counts towards the read limit (same as the MCP read tools).
Authentication: API key in the Authorization header (Bearer).
Response fields
| Field | Type | Description |
|---|---|---|
success | const true | |
data | ScoreHistory | |
data.project | object | |
data.project.id | string | |
data.project.domain | string | |
data.project.score | number | null | |
data.scores | array of object | Oldest first; at most the last 500 scores |
data.scores[].score | number | |
data.scores[].source | string | one of: scan, audit, recheck |
data.scores[].model | string | null | |
data.scores[].at | string (date-time) |
Errors
| HTTP | error | When |
|---|---|---|
| 401 | missing_api_key, invalid_api_key | error: missing_api_key, invalid_api_key |
| 404 | error: not_found (unknown id, or a project outside your organization) | |
| 429 | rate_limited | error: rate_limited |
API changes
Changes to the API and its machine-readable files, newest first. Each links to its entry in What’s new.
Questions
Do I need a paid plan?
No. Any project admin or commercial approver can create a key in the panel. The limits above apply to every key.
Is the API result the same as the test on specoria.com?
Same scan, same scoring model and the same cache. One difference: when switched on, the test on the site may use a small AI model to fill in policy details the rules couldn’t read (for example a return period). The API never calls an AI model, so a fresh API result can occasionally differ slightly; a cached result may come from a site test that used it.
Can I scan sites I don’t own?
The scan reads only public pages, like the free test on this site. Owners can ask for their domain to be excluded (see our crawler page).