Authentication
Magnus uses API key authentication. All requests require a Bearer token in the Authorization header.
curl https://magnusdb.dev/api/health \ -H "Authorization: Bearer YOUR_API_KEY"Sign up
Section titled “Sign up”curl -X POST https://magnusdb.dev/api/auth/signup \ -H "Content-Type: application/json" \ -d '{"orgName": "acme", "email": "you@acme.com"}'Rate limited: 5 signups per IP per hour.
Verify your key
Section titled “Verify your key”curl https://magnusdb.dev/api/auth/me \ -H "Authorization: Bearer YOUR_API_KEY"Rotate your key
Section titled “Rotate your key”curl -X POST https://magnusdb.dev/api/auth/rotate-key \ -H "Authorization: Bearer YOUR_API_KEY"The old key is immediately invalidated. The response contains your new key.