Get All Tracks
1. Get All Tracks for admin, user get all tracks for partner
Admin – receives all tracks in the system
User – receives tracks associated with their partner
Endpoint
GET /api/track-list
Request Headers
{
"Authorization": "Bearer {token}",
"Content-Type": "application/json"
}
Request Parameters
status="completed" could be ['new', 'in_progress', 'completed', 'cancelled', 'pending']
search="test" – search in name
partner_id=2 – search by partner id
Request Body
{
}
Expected Response 200
{
"current_page": 1,
"data": [
{
"id": 23,
"name": "Track Test 111 222 333 - 12",
"status": "in_progress",
"done_date": null,
"partner_id": 1,
"deadline": "2026-05-01T00:00:00.000000Z",
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:15.000000Z"
},
{
"id": 22,
"name": "Track Test 111 222 333 - 12",
"status": "in_progress",
"done_date": null,
"partner_id": 1,
"deadline": "2026-05-01T00:00:00.000000Z",
"created_at": "2026-03-10T13:07:21.000000Z",
"updated_at": "2026-03-10T13:08:06.000000Z"
},
...
{
"id": 3,
"name": "Track test 004",
"status": "new",
"done_date": null,
"partner_id": 1,
"deadline": "2026-04-10T00:00:00.000000Z",
"created_at": "2026-03-06T15:25:14.000000Z",
"updated_at": "2026-03-06T15:25:14.000000Z"
},
{
"id": 2,
"name": "Track test 003",
"status": "new",
"done_date": null,
"partner_id": 1,
"deadline": "2026-04-10T00:00:00.000000Z",
"created_at": "2026-03-06T15:13:31.000000Z",
"updated_at": "2026-03-06T15:13:31.000000Z"
},
{
"id": 1,
"name": "Track test 002",
"status": "new",
"done_date": null,
"partner_id": 1,
"deadline": "2026-04-10T00:00:00.000000Z",
"created_at": "2026-03-06T14:53:18.000000Z",
"updated_at": "2026-03-06T14:53:18.000000Z"
}
],
"first_page_url": "http://webimportsa.local/api/track-list?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://webimportsa.local/api/track-list?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "http://webimportsa.local/api/track-list?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"next_page_url": null,
"path": "http://webimportsa.local/api/track-list",
"per_page": 50,
"prev_page_url": null,
"to": 23,
"total": 23
}
Error Response 401
{
"message": "Unauthenticated."
}
Error Response 500
Server error.
{
"message": "Internal server error"
}
11 March 2026