Mathias Fredriksson
427b23f49a
feat(coderd): add tasks list and get endpoints (#19468)
Fixes coder/internal#899
Example API response:
```json
{
"tasks": [
{
"id": "a7a27450-ca16-4553-a6c5-9d6f04808569",
"organization_id": "241e869f-1a61-42c9-ae1e-9d46df874058",
"owner_id": "9e9b9475-0fc0-47b2-9170-a5b7b9a075ee",
"name": "task-hardcore-herschel-bd08",
"template_id": "accab607-bbda-4794-89ac-da3926a8b71c",
"workspace_id": "a7a27450-ca16-4553-a6c5-9d6f04808569",
"initial_prompt": "What directory are you in?",
"status": "running",
"current_state": {
"timestamp": "2025-08-22T10:03:27.837842Z",
"state": "working",
"message": "Listed root directory contents, working directory reset",
"uri": ""
},
"created_at": "2025-08-22T09:21:39.697094Z",
"updated_at": "2025-08-22T09:21:39.697094Z"
},
{
"id": "50f92138-f463-4f2b-abad-1816264b065f",
"organization_id": "241e869f-1a61-42c9-ae1e-9d46df874058",
"owner_id": "9e9b9475-0fc0-47b2-9170-a5b7b9a075ee",
"name": "task-musing-dewdney-f058",
"template_id": "accab607-bbda-4794-89ac-da3926a8b71c",
"workspace_id": "50f92138-f463-4f2b-abad-1816264b065f",
"initial_prompt": "What is 1 + 1?",
"status": "running",
"current_state": {
"timestamp": "2025-08-22T09:22:33.810707Z",
"state": "idle",
"message": "Completed arithmetic calculation",
"uri": ""
},
"created_at": "2025-08-22T09:18:28.027378Z",
"updated_at": "2025-08-22T09:18:28.027378Z"
}
],
"count": 2
}
```
2025-08-22 17:11:31 +03:00
..
2025-07-17 20:17:44 +10:00
2025-05-13 11:24:51 -05:00
2025-06-20 13:16:55 -06:00
2023-12-19 18:09:45 +00:00
2025-08-14 15:49:48 +10:00
2025-08-20 10:00:44 +01:00
2025-04-10 14:08:50 -06:00
2025-08-22 17:11:31 +03:00
2023-08-10 20:04:35 -05:00
2025-07-15 14:36:06 +10:00
2024-07-29 19:58:48 -05:00
2025-06-24 13:06:02 +02:00
2025-06-20 13:16:55 -06:00
2025-07-23 12:48:15 +01:00
2025-07-15 14:55:34 +10:00
2025-07-30 13:42:39 -07:00
2024-11-15 12:05:21 -06:00
2025-04-15 10:55:30 +02:00
2025-06-20 13:16:55 -06:00
2025-07-17 20:19:01 +10:00
2025-08-19 10:41:33 +02:00
2024-08-02 12:49:36 -04:00
2024-01-31 14:49:55 +01:00
2025-02-18 13:06:19 +01:00
2025-07-07 11:01:17 -06:00
2025-01-31 12:14:24 -07:00
2025-03-31 09:40:24 -03:00
2025-08-19 10:41:33 +02:00
2025-01-13 13:08:16 +02:00
2025-02-24 16:02:33 +01:00
2025-06-20 13:16:55 -06:00
2024-11-06 14:39:50 -03:00
2025-03-27 10:03:53 +00:00
2025-07-03 18:33:47 +02:00
2025-07-03 18:33:47 +02:00
2025-08-21 16:03:34 -04:00
2025-06-20 13:16:55 -06:00
2023-01-13 12:27:21 +01:00
2025-07-01 16:27:43 -06:00
2025-07-02 15:05:42 +00:00
2025-07-28 15:02:26 +01:00
2025-08-21 16:03:34 -04:00
2025-08-16 01:31:00 +10:00
2025-02-27 06:23:18 -05:00
2023-01-29 15:47:24 -06:00
2025-05-29 08:55:19 -05:00
2025-06-20 13:16:55 -06:00
2025-05-29 08:55:19 -05:00
2024-08-20 14:47:46 +10:00
2024-02-14 17:14:49 +00:00
2025-08-12 11:37:44 -05:00
2024-07-24 14:11:29 +10:00
2025-03-26 01:56:39 -05:00
2025-08-19 10:41:33 +02:00
2025-06-20 13:16:55 -06:00
2022-08-25 19:10:42 +03:00
2023-01-29 15:47:24 -06:00
2024-09-10 20:55:50 +10:00
2025-05-27 09:53:02 -05:00
2024-12-19 00:51:30 +04:00
2024-12-19 00:51:30 +04:00
2025-06-16 16:15:59 -06:00
2025-08-15 12:32:33 +01:00
2025-06-20 14:34:31 -08:00
2025-08-19 10:41:33 +02:00
2025-06-20 13:16:55 -06:00
2022-11-08 17:12:06 +00:00
2024-08-20 14:47:46 +10:00
2025-08-19 10:41:33 +02:00