List your running and recent tasks
curl --request GET \
--url https://my.server.express/api/v1/tasks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": [
{
"id": "<string>",
"kind": "reinstall",
"label": "<string>",
"status": "pending",
"progress": 123,
"step": "<string>",
"log": [
{
"at": "2023-11-07T05:31:56Z",
"text": "<string>",
"level": "info"
}
],
"result": "<unknown>",
"error": "<string>",
"entityType": "<string>",
"entityId": "<string>",
"startedById": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z"
}
]
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Tasks
List your running and recent tasks
Up to 20 tasks you started that are pending or running, or finished in the last five minutes, newest first. Tasks that
have gone silent for over 30 minutes are marked failed and left out. Customers get a redacted view (log empty,
result null, host- and address-like text in step replaced); admins see everything. The websocket stream is the
live view; this is the snapshot for page load and reconnects.
GET
/
v1
/
tasks
List your running and recent tasks
curl --request GET \
--url https://my.server.express/api/v1/tasks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/tasks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": [
{
"id": "<string>",
"kind": "reinstall",
"label": "<string>",
"status": "pending",
"progress": 123,
"step": "<string>",
"log": [
{
"at": "2023-11-07T05:31:56Z",
"text": "<string>",
"level": "info"
}
],
"result": "<unknown>",
"error": "<string>",
"entityType": "<string>",
"entityId": "<string>",
"startedById": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z"
}
]
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}