Get Tasks
Developing
Testing Env
Testing Env
GET
/api/v1/tasks
Last modified:2025-05-14 11:13:05
API Documentation
Get Tasks [GET]
URL
/api/v1/tasks
Request Parameters
Query Parameters
Parameter | Type | Required | Default | Description | Validation Rules |
---|---|---|---|---|---|
project_id | integer | Filter tasks by project ID | No | Must exist in projects table | |
board_id | integer | Filter tasks by board ID | No | Must exist in boards table | |
per_page | integer | Number of items per page | No | min:1, max:100 | |
page | integer | Page number to return | No | min:1 |
Headers
Key | Value | Required |
---|---|---|
Accept | application/json | Yes |
user-token | {{user_token}} | Yes |
secure-business-key | {{secure_business_key}} | Yes |
Accept-Language | en/ar | No |
Response
Success (200)
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/tasks?project_id=1&board_id=3&per_page=10' \
--header 'Accept: application/json' \
--header 'Accept-Language: en' \
--header 'user-token: ' \
--header 'secure-business-key: 4765066450c0bd66325.48403130'
Response Response Example
{
"status_code": 200,
"code": 1020,
"hint": "Processed Successfully",
"success": true,
"data": {
"tasks": {
"data": [
{
"id": 6,
"business_id": 259,
"group_name": "Development",
"name": "Task Title",
"task_code": "T00005",
"owner_id": 123,
"reviewed_by": 456,
"status": "Not Started",
"due_date": "2025-05-20",
"duration_days": 5,
"timeline_start": "2025-05-15",
"timeline_end": "2025-05-25",
"description": "Implement feature X",
"note": "Requires review",
"budget": "1500.00",
"dependent_on": 1,
"project_id": 1,
"board_id": null,
"created_at": "2025-05-14 16:45:03",
"updated_at": "2025-05-14 19:23:37",
"deleted_at": null,
"dependent_task": {
"id": 1,
"business_id": 259,
"group_name": "To-Do",
"name": "task1",
"task_code": "T00001",
"owner_id": 123,
"reviewed_by": 456,
"status": "In Progress",
"due_date": "2023-12-31",
"duration_days": 5,
"timeline_start": null,
"timeline_end": null,
"description": "Important task",
"note": null,
"budget": null,
"dependent_on": null,
"project_id": 1,
"board_id": null,
"created_at": "2025-05-14 15:13:24",
"updated_at": "2025-05-14 15:13:24",
"deleted_at": null
},
"dependent_tasks": [],
"assignments": [
{
"id": 3,
"task_id": 6,
"assign_to": 101,
"assigned_at": "2025-05-14 16:45:04"
}
],
"files": [
{
"id": 3,
"task_id": 6,
"file_name": "Eng_Marco_Milad_Monthly_Report.pdf",
"file_path": "uploads/tasks/files/TASK_FILES_6_259_221416563.pdf",
"file_type": "document",
"file_size": 508,
"uploaded_at": "2025-05-14 16:45:06"
},
{
"id": 7,
"task_id": 6,
"file_name": "download.jpg",
"file_path": "uploads/tasks/files/TASK_FILES_6_259_1500556276.jpg",
"file_type": "image",
"file_size": 8,
"uploaded_at": "2025-05-14 19:30:06"
}
],
"time_tracking": [
{
"id": 1,
"task_id": 6,
"assign_to": 5,
"started_at": "2025-06-01 09:00:00",
"ended_at": "2025-06-01 11:00:00",
"duration_minutes": 120
},
{
"id": 2,
"task_id": 6,
"assign_to": 6,
"started_at": "2025-06-02 13:00:00",
"ended_at": "2025-06-02 14:30:00",
"duration_minutes": 90
},
{
"id": 4,
"task_id": 6,
"assign_to": 102,
"started_at": "2025-05-14 09:00:00",
"ended_at": "2025-05-14 17:00:00",
"duration_minutes": 50
},
{
"id": 5,
"task_id": 6,
"assign_to": 102,
"started_at": "2025-05-14 09:00:00",
"ended_at": "2025-05-14 17:00:00",
"duration_minutes": 50
}
]
},
{
"id": 4,
"business_id": 259,
"group_name": "To-Do",
"name": "task1",
"task_code": "T00002",
"owner_id": 123,
"reviewed_by": 456,
"status": "In Progress",
"due_date": "2023-12-31",
"duration_days": 5,
"timeline_start": null,
"timeline_end": null,
"description": "Important task",
"note": null,
"budget": null,
"dependent_on": null,
"project_id": 1,
"board_id": null,
"created_at": "2025-05-14 15:52:08",
"updated_at": "2025-05-14 15:52:08",
"deleted_at": null,
"dependent_task": null,
"dependent_tasks": [],
"assignments": [],
"files": [],
"time_tracking": []
},
{
"id": 1,
"business_id": 259,
"group_name": "To-Do",
"name": "task1",
"task_code": "T00001",
"owner_id": 123,
"reviewed_by": 456,
"status": "In Progress",
"due_date": "2023-12-31",
"duration_days": 5,
"timeline_start": null,
"timeline_end": null,
"description": "Important task",
"note": null,
"budget": null,
"dependent_on": null,
"project_id": 1,
"board_id": null,
"created_at": "2025-05-14 15:13:24",
"updated_at": "2025-05-14 15:13:24",
"deleted_at": null,
"dependent_task": null,
"dependent_tasks": [
{
"id": 6,
"business_id": 259,
"group_name": "Development",
"name": "Task Title",
"task_code": "T00005",
"owner_id": 123,
"reviewed_by": 456,
"status": "Not Started",
"due_date": "2025-05-20",
"duration_days": 5,
"timeline_start": "2025-05-15",
"timeline_end": "2025-05-25",
"description": "Implement feature X",
"note": "Requires review",
"budget": "1500.00",
"dependent_on": 1,
"project_id": 1,
"board_id": null,
"created_at": "2025-05-14 16:45:03",
"updated_at": "2025-05-14 19:23:37",
"deleted_at": null
}
],
"assignments": [],
"files": [],
"time_tracking": []
}
],
"pagination": {
"current_page": 1,
"last_page": 1,
"per_page": 10,
"total": 3
}
},
"message": "تم استرجاع المهام بنجاح"
}
}
Request
Query Params
project_id
integer
optional
Example:
1
board_id
integer
optional
Example:
3
per_page
integer
optional
Example:
10
Header Params
Accept
string
optional
Example:
application/json
Accept-Language
string
optional
Example:
en
user-token
string
optional
Example:
{{user_token}}
secure-business-key
string
optional
Example:
{{secure_business_key}}