{ "user": { "id": "550e8400-e29b-41d4-a716-446655440000", "username": "alice", "email": "[email protected]", "is_admin": false, "api_key_prefix": "cems_abc" }, "api_key": "cems_abc123def456...", "message": "User created. Save the API key - it will not be shown again."}
Admin API
User Management
Admin endpoints for creating and managing CEMS users
All admin endpoints require authentication via the CEMS_ADMIN_KEY environment variable.
{ "user": { "id": "550e8400-e29b-41d4-a716-446655440000", "username": "alice", "email": "[email protected]", "is_admin": false, "api_key_prefix": "cems_abc" }, "api_key": "cems_abc123def456...", "message": "User created. Save the API key - it will not be shown again."}
{ "user": { "id": "550e8400-e29b-41d4-a716-446655440000", "username": "alice", "api_key_prefix": "cems_xyz" }, "api_key": "cems_xyz789new456...", "message": "API key reset. Save the new key - it will not be shown again."}