Skip to content

Authentication

Magnus uses API key authentication. All requests require a Bearer token in the Authorization header.

Terminal window
curl https://magnusdb.dev/api/health \
-H "Authorization: Bearer YOUR_API_KEY"
Terminal window
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.

Terminal window
curl https://magnusdb.dev/api/auth/me \
-H "Authorization: Bearer YOUR_API_KEY"
Terminal window
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.