API Reference
Authentication
Login, signup, and token management
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Login, signup, and token management
POST /api/auth/login
{
"email": "user@company.com",
"password": "your-password"
}
{
"token": "tok_abc123...",
"email": "user@company.com",
"tenantId": "uuid-here",
"expiresAt": "2026-03-16T20:00:00Z"
}
POST /api/auth/signup
{
"company": "Acme Corp",
"email": "admin@acme.com",
"password": "min-8-characters"
}
{
"status": "created",
"tenantId": "uuid-here",
"email": "admin@acme.com",
"plan": "trial",
"apiKey": "cg_abc123...",
"token": "tok_xyz789...",
"message": "Welcome to ChangeGuard AI! Save your API key — it cannot be retrieved again."
}
apiKey is returned only once. Save it immediately.POST /api/auth/verify
{ "token": "tok_abc123..." }
POST /api/auth/refresh
{ "token": "tok_abc123..." }
POST /api/auth/password
Authorization: Bearer TOKEN
{
"currentPassword": "old-password",
"newPassword": "new-password-min-8"
}