Quick Start

MoonDB gives you a database, REST API, auth, and file storage from a single JSON schema. Two API calls to a working backend:

  1. Create a project from the Dashboard or via POST /v1/projects — you get an admin key (sk_) and a public key (pk_)
  2. Set a schema via PUT /p/{project_id}/v1/schema — REST API is live instantly
# 1. Create a project
curl -X POST https://moondb.ai/v1/projects \
  -H "X-API-Key: mk_..." \
  -d '{"name":"my-app"}'

# 2. Set schema
curl -X PUT https://moondb.ai/p/{project_id}/v1/schema \
  -H "X-Admin-Key: sk_..." \
  -H "Content-Type: application/json" \
  -d '{"tables":{"tasks":{"columns":{"title":"string required","done":"bool default false"}}}}'

# Done! CRUD is live:
curl https://moondb.ai/p/{project_id}/api/tasks -H "X-Public-Key: pk_..."
Prefer a no-code start? Use the Prompt-first Setup — copy one prompt from the dashboard and let your coding agent do the rest.