Get Computer Agent Canvas access
curl --request GET \
--url 'https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/canvas?token='import requests
url = "https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/canvas?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/canvas?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}/canvas?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}/canvas?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}/canvas?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/canvas?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{
"available": true,
"visibility": "public",
"sourcePath": "app",
"publishedPath": "public",
"publicUrl": "<string>",
"launchRef": {
"method": "GET",
"href": "<string>",
"expiresAtMs": 123
},
"success": true
}Computer Agents
Get Computer Agent Canvas access
Returns the selected Computer Agent’s current Canvas availability, visibility, workspace paths, and a ready-to-open URL when access is available. A public Canvas includes a stable publicUrl. A private Canvas includes only a short-lived launchRef. Visibility is read-only through this API.
GET
/
api
/
v2
/
computer
/
accounts
/
{targetAccountId}
/
canvas
Get Computer Agent Canvas access
curl --request GET \
--url 'https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/canvas?token='import requests
url = "https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/canvas?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/canvas?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}/canvas?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}/canvas?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}/canvas?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vida.dev/api/v2/computer/accounts/{targetAccountId}/canvas?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{
"available": true,
"visibility": "public",
"sourcePath": "app",
"publishedPath": "public",
"publicUrl": "<string>",
"launchRef": {
"method": "GET",
"href": "<string>",
"expiresAtMs": 123
},
"success": true
}Authorizations
Vida API Token
Path Parameters
Response
200 - application/json
Canvas access details
Available options:
public, private, off Workspace directory containing editable Canvas source.
Available options:
app Protected workspace directory containing generated Canvas files.
Available options:
public Stable share URL when visibility is public; otherwise null.
Show child attributes
Show child attributes
Example:
true