Documentation

API Reference

Three canonical references — the right one depends on whether you're building, automating with an agent, or browsing.

Swagger UI

api.mosaic.site/docs — interactive Swagger UI auto-generated from the FastAPI source. Every endpoint, every schema, every example. Try requests live with your API key.

ReDoc

api.mosaic.site/redoc — same content, formatted for reading rather than testing.

Agent skill spec

api.mosaic.site/skill.md — the markdown spec Claude Code and other AI coding tools load on session start. Reads like a usage guide rather than an endpoint dump.

For Claude Code usersInstall npm i -g @mosaicsite/claude-skill and your sessions will fetch the live skill on every load — always in sync with the platform.

Conventions across every endpoint

Error shape

{
  "error":   "PROJECT_NOT_FOUND",
  "message": "Project not found",
  "status":  404,
  "docs":    "https://api.mosaic.site/skill.md",
  "detail":  "Project not found"
}

Common error codes

CodeWhat it means
NO_AUTHENTICATION_TOKEN_PROVIDEDMissing X-API-Key header
INVALID_API_KEYAPI key doesn't exist or was rotated
PROJECT_NOT_FOUNDSlug/ID doesn't match any project you own
PLAN_LIMIT_EXCEEDEDHit a tier limit — check your plan
QUOTA_EXCEEDEDStorage / DB / connections over allowance
VALIDATION_ERRORBad request body — see detail

Plan limits

PlanProjectsDB sizeStorageRealtimeRedisMail
Trial / Free2500 MB1 GB———
Starter52 GB10 GB———
ProUnlimited10 GB100 GB✓✓✓
EnterpriseUnlimitedDedicatedDedicated✓✓✓