WebWork Tracker REST API V2 provides programmatic access to your workspace data. This API allows you to manage members, projects, tasks, time tracking, leaves, and expenses. Access is restricted to workspace owners and executive managers only.
- Get All Leave Requests
Approve Leave Request
Reject Leave Request
Get Leave Balances
Get Leave Policies
Get All Leave Requests
WebWork Tracker REST API V2 (2.0.0)
Overview
Languages
Servers
API Server
https://api.webwork-tracker.com/api/v2/
- API Serverhttps://api.webwork-tracker.com/api/v2/leaves
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X GET \
'https://api.webwork-tracker.com/api/v2/leaves?workspace_id=1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "success": true, "data": [ { … } ], "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }
- API Serverhttps://api.webwork-tracker.com/api/v2/leaves/{leaveRequestId}/approve
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X PUT \
https://api.webwork-tracker.com/api/v2/leaves/a1b2c3d4-e5f6-7890-abcd-ef1234567890/approve \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"workspace_id": 1
}'Response
application/json
{ "success": true, "data": null, "message": "Leave request approved successfully", "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }
- API Serverhttps://api.webwork-tracker.com/api/v2/leaves/{leaveRequestId}/reject
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X PUT \
https://api.webwork-tracker.com/api/v2/leaves/a1b2c3d4-e5f6-7890-abcd-ef1234567890/reject \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"workspace_id": 1,
"reason": "Insufficient leave balance"
}'Response
application/json
{ "success": true, "data": null, "message": "Leave request rejected successfully", "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }
- API Serverhttps://api.webwork-tracker.com/api/v2/leaves/balances
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X GET \
'https://api.webwork-tracker.com/api/v2/leaves/balances?workspace_id=1&date_from=2024-01-01&date_to=2024-12-31' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "success": true, "data": [ { … } ], "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }
- API Serverhttps://api.webwork-tracker.com/api/v2/leaves/policies
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X GET \
'https://api.webwork-tracker.com/api/v2/leaves/policies?workspace_id=1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "success": true, "data": [ { … } ], "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }