POST /signup
Create a new account. Returns an API key for your first project.
Request Body
FieldTypeDescription
email string required Email address
password string required Password (min 8 characters)
project_name string optional Project name (default: "My Project")
Response
HTTP 201
{
  "success": true,
  "http_status": 201,
  "code": "created",
  "api_key": "tenantsdb_sk_a91de156...",
  "project_id": "tdb_2abf90d3"
}
POST /login
Login to existing account. Returns all projects with API keys.
Request Body
FieldTypeDescription
email string required Email address
password string required Password
Response
HTTP 200
{
  "success": true,
  "http_status": 200,
  "code": "ok",
  "projects": [
    {
      "project_id": "tdb_2abf90d3",
      "name": "Healthcare SaaS",
      "api_key": "tenantsdb_sk_a91de156..."
    }
  ]
}