{"message":"Stock Management SaaS API","version":"3.0.0","docs":"/docs","roles":{"root":"System-wide administration, creates organizations and super admins, configures Telegram bot","super_admin":"Organization-level administration, manages users, connects Telegram","admin":"Can manage stock items, transactions, and delivery notes","user":"Can only record stock OUT transactions"},"features":{"multi_organization":"Users can belong to multiple organizations with different roles in each","switch_organization":"Switch between organizations via POST /api/me/switch-organization"},"endpoints":{"auth":"/api/auth","organizations":"/api/organizations (ROOT only)","users":"/api/users","memberships":"/api/me/organizations (view and switch between orgs)","invitations":"/api/invitations (Super Admin - manage invites)","stock":"/api/stock","logbooks":"/api/logbooks","delivery_notes":"/api/delivery-notes","telegram":"/api/telegram (Bot config & notifications)"},"telegram_setup":{"step_1":"ROOT: POST /api/telegram/bot/config - Configure bot token","step_2":"Super Admin: POST /api/telegram/link/generate - Get link code","step_3":"In Telegram: Add bot to group, send /start <code>","step_4":"Super Admin: PUT /api/telegram/preferences - Configure notifications"}}