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-08-21 11:01:32 -07:00
2025-06-20 13:16:55 -06:00
2025-08-19 15:14:25 +00:00
2025-06-20 13:16:55 -06:00
2024-09-18 21:47:53 +10:00
2025-07-15 16:08:42 +10:00
2025-08-15 08:50:51 -07:00
2023-10-30 19:44:29 +00:00
2025-06-20 13:16:55 -06:00
2025-08-19 10:41:33 +02:00
2025-07-15 14:36:06 +10:00
2025-05-27 16:05:03 +04:00
2025-08-21 16:03:34 -04:00
2025-06-24 19:01:29 +10:00
2025-07-30 15:28:56 +02:00
2025-08-19 10:41:33 +02:00
2025-08-20 23:38:09 +10:00
2025-08-20 23:38:09 +10:00
2023-08-18 18:55:43 +00:00
2025-06-20 13:16:55 -06:00
2025-08-21 16:03:34 -04:00
2025-08-07 13:58:39 -05:00
2025-08-20 10:09:13 -05:00
2025-06-20 13:16:55 -06:00
2025-06-20 13:16:55 -06:00
2025-08-04 14:11:22 +02:00
2025-06-20 13:16:55 -06:00
2025-08-21 12:08:32 +02:00
2025-07-20 16:22:52 +02:00
2025-05-19 12:05:35 +04:00
2024-05-13 14:37:51 -04:00
2025-08-16 01:31:00 +10:00
2025-08-20 11:02:53 +02:00
2025-08-21 11:01:32 -07:00
2025-06-20 13:16:55 -06:00
2025-08-20 23:48:38 +10:00
2024-07-25 16:08:12 -05:00
2025-06-17 09:00:32 -08:00
2025-03-18 00:02:47 +01:00
2025-08-20 23:38:09 +10:00
2025-06-20 13:16:55 -06:00
2025-07-08 14:31:05 +00:00
2025-08-07 11:00:31 +10:00
2025-08-19 10:41:33 +02:00
2025-08-21 11:06:30 +01:00
2025-08-20 17:59:09 +01:00
2025-07-21 13:02:31 -05:00
2025-06-20 13:16:55 -06:00
2025-07-08 14:32:46 +00:00
2025-08-22 16:32:35 +10:00
2025-06-20 13:16:55 -06:00
2025-07-29 15:24:11 +01:00
2025-06-26 12:28:00 -06:00
2025-08-20 10:00:44 +01:00
2025-08-21 11:01:32 -07:00
2025-08-20 11:02:53 +02:00
2025-03-31 10:55:44 -04:00
2024-11-18 14:09:22 +04:00
2025-08-22 17:11:31 +03:00
2025-08-22 17:11:31 +03:00
2025-06-06 17:36:30 +02:00
2025-08-18 12:37:51 +10:00
2023-08-18 18:55:43 +00:00
2024-08-01 12:07:19 -05:00
2025-07-15 16:08:42 +10:00
2025-07-15 14:55:34 +10:00
2025-06-20 13:16:55 -06:00
2025-06-16 13:40:45 +00:00
2023-08-18 18:55:43 +00:00
2025-06-20 13:16:55 -06:00
2025-01-08 15:38:37 +00:00
2025-08-22 17:11:31 +03:00
2023-08-18 18:55:43 +00:00
2025-04-09 09:21:17 +01:00
2025-04-09 09:21:17 +01:00
2024-02-27 16:33:32 +00:00
2025-06-25 13:03:32 +00:00
2024-06-11 12:22:59 +10:00
2025-04-22 16:21:15 +00:00
2025-06-24 09:14:41 +01:00
2025-05-15 15:32:52 +01:00
2024-09-10 15:58:50 +01:00
2025-07-30 13:55:30 -07:00
2025-07-30 13:55:30 -07:00
2025-05-15 15:32:52 +01:00
2025-05-15 15:32:52 +01:00
2025-06-20 13:16:55 -06:00
2025-06-20 13:16:55 -06:00
2025-06-12 13:50:50 +03:00
2025-08-19 10:41:33 +02:00
2025-08-19 10:41:33 +02:00
2025-06-20 13:16:55 -06:00
2025-08-20 23:38:09 +10:00
2025-03-26 01:56:39 -05:00
2023-06-06 10:26:13 -05:00
2025-08-04 14:11:22 +02:00
2025-04-28 14:51:33 -06:00
2025-08-08 12:18:07 +01:00
2025-03-05 22:43:18 +01:00
2025-03-05 22:43:18 +01:00
2025-07-03 18:33:47 +02:00
2025-07-02 19:14:54 +02:00
2025-07-03 18:33:47 +02:00
2025-07-03 18:33:47 +02:00
2025-07-03 20:41:47 +02:00
2025-07-20 16:22:52 +02:00
2024-07-25 16:07:53 -05:00
2024-08-28 13:24:28 -05:00
2025-07-15 14:55:34 +10:00
2025-07-15 14:55:34 +10:00
2025-07-28 20:41:49 -05:00
2025-06-20 13:00:39 -05:00
2025-06-24 12:19:19 +02:00
2025-07-28 15:02:26 +01:00
2025-08-21 16:03:34 -04:00
2025-08-21 16:03:34 -04:00
2025-06-20 13:16:55 -06:00
2025-05-19 16:05:39 +01:00
2025-07-30 19:09:53 -05:00
2024-07-25 16:07:53 -05:00
2025-06-16 13:40:45 +00:00
2025-06-20 13:16:55 -06:00
2025-08-20 10:00:44 +01:00
2025-08-19 10:41:33 +02:00
2025-08-19 15:14:25 +00:00
2025-08-19 10:41:33 +02:00
2025-08-19 10:41:33 +02:00
2025-06-20 13:16:55 -06:00
2023-08-18 18:55:43 +00:00
2025-08-20 23:38:09 +10:00
2025-04-08 14:15:14 -05:00
2025-08-20 23:38:09 +10:00
2025-08-11 12:20:02 -07:00
2025-03-27 10:03:53 +00:00
2025-03-27 10:03:53 +00:00
2024-10-22 09:20:54 -05:00
2025-06-18 14:07:53 +00:00
2025-08-20 10:00:44 +01:00
2025-08-20 23:38:09 +10:00
2025-08-15 12:32:33 +01:00
2025-04-16 10:37:09 -06:00
2025-05-20 17:07:50 +02:00
2025-08-07 13:58:39 -05:00
2025-06-20 13:16:55 -06:00
2024-10-25 17:14:35 +01:00
2025-08-20 23:38:09 +10:00
2025-08-19 10:41:33 +02:00
2024-01-18 09:44:05 -06:00
2024-01-18 09:44:05 -06:00
2025-02-20 05:09:26 +00:00
2023-08-18 18:55:43 +00:00
2025-08-20 23:38:09 +10:00
2025-08-20 14:58:00 +01:00
2025-04-16 10:37:09 -06:00
2025-03-26 01:56:39 -05:00