REST API
The Easy Time Manager REST API lets external applications work with work entries, projects, tasks, and time types programmatically. All responses are JSON.
Enabling the API
- Go to Components > Easy Time Manager > Options.
- Open the API tab.
- Set Enable API to Yes and save.
The API is disabled by default.
Base URL
https://your-site.com/index.php?option=com_easytimemanager&view=api
Authentication
The API uses Joomla session-based authentication — log in before making calls.
Login:
POST /index.php?option=com_easytimemanager&view=api&task=auth
username — Joomla username
password — user password
remember — "true" or "false" (optional)
A successful response returns the username and email. Logout uses the same endpoint with logout=1.
Endpoints
Pass a target parameter to choose the resource:
| Target | Resource | Supports |
|---|---|---|
report |
Work log entries | GET (list + single), POST/PUT (create/edit), DELETE |
project |
Projects | GET (list only) |
task |
Tasks | GET (list only, requires project_id) |
type |
Time worked types | GET (list only) |
List endpoints accept page (default 1) and size (default 20); responses include pages_total.
Reports
- List:
GET ...&target=reportwith optional filtersdate_month,project,client,task, plusorder(project_name,date,company,task) anddir(asc/desc). - Get single:
GET ...&target=report&id=123— returned if the user owns it or has report-management permission. - Create:
POST ...&target=reportwithprojectid(required),task,taskid,date(YYYY-MM-DD),time(HH:MM),easytimemanagerid(time type),performed_work,ticket_numbers. Theuseridis set to the authenticated user. - Edit:
POST ...&target=reportincludingid; the originaluseridis preserved. Requires Edit or Edit Own. - Delete:
DELETE ...&target=report&id=123— requires Delete permission and ownership (or admin).
Projects, Tasks & Types
- Projects:
GET ...&target=project— projects the authenticated user is assigned to. - Tasks:
GET ...&target=task&project_id=5—project_idis mandatory. - Types:
GET ...&target=type— all configured time worked types.
Missed Reports
GET ...&task=missed returns dates where the authenticated user hasn't logged the required hours. Requires the Missing Reports Notifications feature to be enabled.
Error Codes
Errors return an error object with message and code:
| Code | Meaning |
|---|---|
| 1 | Not authenticated — login required |
| 2 | Unauthorized — insufficient permissions |
| 3 | Incorrect target |
| 4 | Action not permitted for this target |
| 5 | Object ID not specified (DELETE needs id) |
| 6 | Project ID is mandatory (task listing) |
| 7 | Login failed — incorrect credentials |
| 8 | Logout failed |
| 9 | Auth credentials empty |
| 11 | API disabled — enable it in settings |
| 1000 | Other error — validation or storage failure (see message) |