SamTechy API
RESTful API reference for integrating SamTechy with your existing systems and workflows.
Base URL
https://api.samtechy.com/v2All endpoints require Bearer token authentication. Include your API key in the Authorization header.
Authentication
/auth/loginAuthenticate with email/password or phone/password
/auth/registerCreate a new user account with role assignment
/auth/otp/sendSend OTP to customer email for verification
/auth/otp/verifyVerify OTP and return session token
/auth/refreshRefresh an expired authentication token
Tickets
/ticketsList all tickets with filters (status, priority, date, engineer)
/ticketsCreate a new service ticket with machine and client details
/tickets/:id/statusUpdate ticket status (Pending, Forwarded, Completed)
/tickets/:id/photosUpload service photos with compression
/tickets/:id/timelineGet full audit trail and status history
Users & Roles
/usersList users filtered by role (admin, engineer, dealer, customer)
/usersCreate a new user with role and org assignment
/engineers/:id/performanceGet engineer performance metrics and stats
/dealers/:id/clientsList all clients under a dealer's portfolio
Machines
/machinesList machines with warranty, model, and ownership filters
/machinesRegister a new machine with model, serial, and client link
/machines/:id/historyGet full service history for a machine
Notifications
/notifications/sendSend push notification to specific users or roles
/notificationsList notification history for the authenticated user
Analytics
/analytics/overviewHigh-level KPIs: tickets, resolution time, active machines
/analytics/engineersPer-engineer metrics and scorecards
/analytics/expensesExpense breakdowns by category and engineer
/reports/exportExport reports as Excel or PDF with date range filtering