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 Time Request
WebWork Tracker REST API V2 (2.0.0)
Overview
Languages
Servers
Production Server
https://api.webwork-tracker.com/api/v2/
- Production Serverhttps://api.webwork-tracker.com/api/v2/time-requests
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X GET \
'https://api.webwork-tracker.com/api/v2/time-requests?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" } }
- Production Serverhttps://api.webwork-tracker.com/api/v2/time-requests
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X POST \
https://api.webwork-tracker.com/api/v2/time-requests \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"workspace_id": 1,
"user_id": 100,
"contract_id": 500,
"start": "2024-01-15T09:00:00Z",
"end": "2024-01-15T17:00:00Z",
"notes": "Working on project documentation",
"task_id": 200
}'Response
application/json
{ "success": true, "data": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "user_id": 100, "contract_id": 500, "project_id": 200, "task_id": 300, "start": "2024-01-15T09:00:00Z", "end": "2024-01-15T17:00:00Z", "status": "pending", "notes": "Working on project documentation", "comment": "Time entry conflicts with project schedule", "updated_by": 101, "created_at": "2024-01-15T08:00:00Z", "updated_at": "2024-01-15T10:30:00Z" }, "message": "Time request created successfully", "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }
- Production Serverhttps://api.webwork-tracker.com/api/v2/time-requests/{id}
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X GET \
'https://api.webwork-tracker.com/api/v2/time-requests/a1b2c3d4-e5f6-7890-abcd-ef1234567890?workspace_id=1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "success": true, "data": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "user_id": 100, "contract_id": 500, "project_id": 200, "task_id": 300, "start": "2024-01-15T09:00:00Z", "end": "2024-01-15T17:00:00Z", "status": "pending", "notes": "Working on project documentation", "comment": "Time entry conflicts with project schedule", "updated_by": 101, "created_at": "2024-01-15T08:00:00Z", "updated_at": "2024-01-15T10:30:00Z" }, "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }
- Production Serverhttps://api.webwork-tracker.com/api/v2/time-requests/{id}/approve
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X POST \
https://api.webwork-tracker.com/api/v2/time-requests/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": "Time request approved successfully", "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }
- Production Serverhttps://api.webwork-tracker.com/api/v2/time-requests/{id}/reject
- cURL
- JS
- Python
- PHP
- Go
- Java 8
- C#
- C++
curl -i -X POST \
https://api.webwork-tracker.com/api/v2/time-requests/a1b2c3d4-e5f6-7890-abcd-ef1234567890/reject \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"workspace_id": 1,
"comment": "Time entry conflicts with project schedule"
}'Response
application/json
{ "success": true, "data": null, "message": "Time request rejected successfully", "meta": { "api_version": "2.0.0", "timestamp": "2019-08-24T14:15:22Z" } }