squirrelscan
GitHub

Public API

The stable /v1 REST surface for external clients, agents, and MCP integrations

squirrelscan exposes a stable, programmatic REST API under /v1. It’s the surface external clients, agent workflows, and MCP integrations can depend on.

Base URL

https://api.squirrelscan.com

Authentication

Every request authenticates with a bearer token in the Authorization header:

curl https://api.squirrelscan.com/v1/credits \
  -H "Authorization: Bearer <token>"

Programmatic API keys are prefixed sq_ and are the intended public auth mechanism (rolling out, see the API-keys epic). Today the same scheme also accepts CLI tokens (sqcli_ prefix, issued by squirrel auth login) and dashboard session JWTs, so you can start integrating immediately.

Public surface

These are the external-client-facing routes covered by the contract:

ResourceEndpoints
AuditsPOST /v1/agent-runs, GET /v1/agent-runs, GET /v1/agent-runs/{id}, GET /v1/agent-runs/{id}/report
ReportsPOST /v1/reports, GET /v1/reports, GET /v1/reports/{id}, PATCH /v1/reports/{id}, DELETE /v1/reports/{id}
CreditsGET /v1/credits
OrganizationsGET /v1/organizations/{id}