REST API

Everything in the app is available over HTTP: add properties, start runs, read findings and fix briefs, and manage monitors. The API is described by an OpenAPI 3.1 spec, so you can generate a client in any language.

Authentication

Create a key in Settings and send it as a bearer token. Read-only keys can call every GET endpoint. Read & write keys can also start runs and change monitors. OAuth access tokens from MCP clients work too and have full access.

curl https://massive.sh/api/v1/properties \
  -H "Authorization: Bearer msk_your_key"

Rate limits and errors

Each key can make 120 requests per minute. Responses include X-RateLimit-Limit and X-RateLimit-Remaining; over the limit you get 429 with Retry-After. Starting runs is also limited per account (3 at once, 20 per hour, 100 per day) and per target host. Errors are JSON: { "code": "FORBIDDEN", "status": 403, "message": "…" }.

Endpoints

Base URL: https://massive.sh/api/v1

MethodPathDescription
GET/propertiesList properties with health score and open issues
POST/propertiesAdd a property (optionally start a full analysis)(read & write key)
GET/properties/{id}Dashboard: every area's latest score, issues, changes
GET/properties/{id}/areas/{area}Area detail: findings (new / persisting), fixed, generated files
GET/properties/{id}/briefMarkdown fix brief for the property (filter with areas=)
POST/properties/{id}/runsStart a run: one area or the full analysis(read & write key)
GET/runsList runs
GET/runs/{id}Run status and per-area scores
GET/runs/{id}/findingsFindings of a run
GET/runs/{id}/artifactsGenerated files of a run
GET/runs/{id}/briefMarkdown fix brief for a run
GET/monitorsList monitors
GET/monitors/{id}Monitor with recent checks and changes
POST/monitorsCreate a monitor(read & write key)
POST/monitors/{id}/checkRun a drift check now (e.g. after a deploy)(read & write key)
POST/properties/{id}/deployCheck after deploy: monitors and/or areas, results via alerts(read & write key)

Examples

Re-analyse the Schema area of a property and wait for the result:

RUN=$(curl -s -X POST https://massive.sh/api/v1/properties/$PROPERTY_ID/runs \
  -H "Authorization: Bearer $MASSIVE_KEY" -H "Content-Type: application/json" \
  -d '{"area":"schema","scope":"SITE"}' | jq -r .id)

until curl -s https://massive.sh/api/v1/runs/$RUN -H "Authorization: Bearer $MASSIVE_KEY" \
  | jq -e '.status == "COMPLETED" or .status == "FAILED"' > /dev/null; do sleep 20; done

curl -s https://massive.sh/api/v1/runs/$RUN/brief -H "Authorization: Bearer $MASSIVE_KEY" | jq -r .markdown > seo-brief.md

Check key pages for SEO regressions after every deploy (for example as the last step of a CI pipeline):

curl -s -X POST https://massive.sh/api/v1/monitors/$MONITOR_ID/check \
  -H "Authorization: Bearer $MASSIVE_KEY"

Get one brief for the whole site, limited to two areas:

curl -s "https://massive.sh/api/v1/properties/$PROPERTY_ID/brief?areas=schema&areas=sitemap" \
  -H "Authorization: Bearer $MASSIVE_KEY" | jq -r .markdown