API & MCP
Everything the app can do, an agent or integration can do with an API key. Managers create keys under API & agents in the app. A key carries a role (manager or staff) and an optional location pin, exactly like a team member.
MCP server
Endpoint https://spotcheck.si/api/mcp, Streamable HTTP transport, bearer authentication. Tools: whoami, list_locations, list_area_types, create_inspection, list_inspections, get_inspection, share_inspection, get_summary.
Claude Code
claude mcp add --transport http spotcheck https://spotcheck.si/api/mcp \ --header "Authorization: Bearer sc_live_..."
Codex
export SPOTCHECK_API_KEY=sc_live_... codex mcp add spotcheck --url https://spotcheck.si/api/mcp --bearer-token-env-var SPOTCHECK_API_KEY
Any MCP client
{ "url": "https://spotcheck.si/api/mcp", "headers": { "Authorization": "Bearer sc_live_..." } }A typical agent flow: call list_locations and list_area_types once, then create_inspection with a base64 photo, then read the result. Use list_inspections and get_summary for reporting.
REST API
Send Authorization: Bearer sc_live_.... All responses are JSON. Errors return { "error": "..." } with a meaningful status.
GET /api/v1/me | Business, industry, role and location scope of the key |
GET /api/v1/locations | Locations |
GET /api/v1/areas | Area types and the standard each is graded against |
POST /api/v1/inspections | Create an inspection. Multipart (image, locationId, areaKey, notes) or JSON (image_base64, media_type, location_id, area_key, notes). Returns 201 with the verdict, score and full classification; 422 if the photo gate rejects it. |
GET /api/v1/inspections | List, newest first. Query: location, area, verdict, from, to, limit, cursor |
GET /api/v1/inspections/:id | Full detail including image and share URLs |
POST | DELETE /api/v1/inspections/:id/share | Enable or revoke the public report link |
GET /api/v1/summary?days=30 | Pass rate, average score and counts, overall and per location |
GET /api/images/:id | The photo (bearer key or signed-in session) |
Example
curl -X POST https://spotcheck.si/api/v1/inspections \ -H "Authorization: Bearer sc_live_..." \ -F image=@kitchen.jpg -F locationId=<id> -F areaKey=kitchen -F notes="end of shift"
Limits
- Images up to 5 MB; JPEG, PNG, WebP or GIF.
- An inspection takes 5 to 15 seconds; set client timeouts accordingly.
- Inspections created by API count against the business’s monthly allowance.