curl --request GET \
--url https://{command_center_host}/api/v1/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{command_center_host}/api/v1/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{command_center_host}/api/v1/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{command_center_host}/api/v1/tasks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{command_center_host}/api/v1/tasks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{command_center_host}/api/v1/tasks/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{command_center_host}/api/v1/tasks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "tsk_2b7c1d4e-...",
"org_id": "<string>",
"job_id": "<string>",
"agent_id": "<string>",
"host_id": "<string>",
"description": "<string>",
"status": "completed",
"read_only": true,
"execution_mode": "investigate",
"summary": "<string>",
"stop_reason": "<string>",
"failure_kind": "host_unreachable",
"rerouted_task_id": "<string>",
"owner_id": "<string>",
"canceled_by_id": "<string>",
"archived": true,
"scheduled_at": "2026-08-26T10:00:26.380Z",
"started_at": "2026-08-26T10:00:26.380Z",
"completed_at": "2026-08-26T10:00:26.380Z",
"created_at": "2026-08-26T10:00:26.380Z",
"updated_at": "2026-08-26T10:00:26.380Z"
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}Get a task
curl --request GET \
--url https://{command_center_host}/api/v1/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{command_center_host}/api/v1/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{command_center_host}/api/v1/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{command_center_host}/api/v1/tasks/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{command_center_host}/api/v1/tasks/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{command_center_host}/api/v1/tasks/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{command_center_host}/api/v1/tasks/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "tsk_2b7c1d4e-...",
"org_id": "<string>",
"job_id": "<string>",
"agent_id": "<string>",
"host_id": "<string>",
"description": "<string>",
"status": "completed",
"read_only": true,
"execution_mode": "investigate",
"summary": "<string>",
"stop_reason": "<string>",
"failure_kind": "host_unreachable",
"rerouted_task_id": "<string>",
"owner_id": "<string>",
"canceled_by_id": "<string>",
"archived": true,
"scheduled_at": "2026-08-26T10:00:26.380Z",
"started_at": "2026-08-26T10:00:26.380Z",
"completed_at": "2026-08-26T10:00:26.380Z",
"created_at": "2026-08-26T10:00:26.380Z",
"updated_at": "2026-08-26T10:00:26.380Z"
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}{
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "req_3702b7e7-...",
"field": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
],
"details": {}
}Authorizations
An API key minted in Command Center (Settings -> API Keys), sent as Authorization: Bearer 2501_ak_.... A Command Center session cookie is also accepted.
Path Parameters
Response
The task
"tsk_2b7c1d4e-..."
The host the task ran on, kept after the host is removed; null until the task is placed
completed, failed and canceled end a run. Every other value is a step of a run in progress. A standalone task can be resumed and a job reopened, which starts a new run.
assigned, in_progress, failed, completed, planning, initial_action_generation, action_verification, verification_retry, verification_success, verification_failed, await_cli_input, action_generation, action_executor, process_engine_action, pending, canceled "completed"
true for a task that only reads and makes no change
Kept for compatibility: investigate when read_only is true, else null
investigate, null The agent's account of what it did, once it has stopped
Why a failed task failed; null unless it failed
host_unreachable, null On a task whose host was unreachable: the task that took over its work
The user who started the task
The user who stopped the task; null unless stopped
"2026-08-26T10:00:26.380Z"
"2026-08-26T10:00:26.380Z"
"2026-08-26T10:00:26.380Z"
"2026-08-26T10:00:26.380Z"
"2026-08-26T10:00:26.380Z"

