curl --request GET \
--url 'https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token='import requests
url = "https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token=', 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://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"taskId": "<string>",
"state": "pending",
"resultStatus": "pending",
"output": {
"text": "<string>",
"truncated": true
},
"error": {
"code": "task_failed",
"message": "<string>"
},
"resultRef": {
"href": "<string>"
}
}{
"success": true,
"taskId": "<string>",
"state": "pending",
"resultStatus": "pending",
"output": {
"text": "<string>",
"truncated": true
},
"error": {
"code": "task_failed",
"message": "<string>"
},
"resultRef": {
"href": "<string>"
}
}Read or wait for a Computer Task result
Reads an existing Computer Task belonging to the account in the path. Never creates, reruns, or cancels work. Uses the same requester and account permissions as Computer Task execution; Tasks belonging to another account and non-computer Tasks return 404. waitSeconds is an integer from 0 to 60, default 0. Zero performs one inspection, bounded to 10 seconds for result reads, without polling. Positive values wait up to that many seconds after the initial Task lookup. Execution completion plus a five-second replication grace period gates selection of the latest replicated assistant text in the execution window. Messages do not have a definitive final-answer marker. Tool, reasoning, system, and user entries are not answers. No direct computer-session reads or new persisted state are used. HTTP 200 means output is ready or the Task errored/was canceled; inspect state, resultStatus, and error. HTTP 202 means execution or replicated output is pending, even if state is finished. Missing/expired replicated output remains pending. Read the linked chat with the existing Tasks API chatRef when investigating. A client disconnect only ends this wait, not the Task.
curl --request GET \
--url 'https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token='import requests
url = "https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token=', 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://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/tasks/{taskId}/result?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"taskId": "<string>",
"state": "pending",
"resultStatus": "pending",
"output": {
"text": "<string>",
"truncated": true
},
"error": {
"code": "task_failed",
"message": "<string>"
},
"resultRef": {
"href": "<string>"
}
}{
"success": true,
"taskId": "<string>",
"state": "pending",
"resultStatus": "pending",
"output": {
"text": "<string>",
"truncated": true
},
"error": {
"code": "task_failed",
"message": "<string>"
},
"resultRef": {
"href": "<string>"
}
}Authorizations
Vida API Token
Path Parameters
Selected Computer Agent account.
x >= 1Existing Computer Task ID.
100Query Parameters
Maximum additional wait after the initial Task lookup.
0 <= x <= 60Response
Reply ready, or Task errored or canceled
Whether the API request succeeded, not whether the Task succeeded.
true
Existing Task ID.
pending, processing, running, finished, errored, canceled Response-only readiness. Finished Tasks remain pending while their reply has not replicated. Unavailable indicates an errored or canceled Task.
pending, ready, unavailable Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes