curl --request GET \
--url https://api.vistaly.com/beta/cards/{cardId}/context \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vistaly.com/beta/cards/{cardId}/context"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vistaly.com/beta/cards/{cardId}/context', 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.vistaly.com/beta/cards/{cardId}/context",
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://api.vistaly.com/beta/cards/{cardId}/context"
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://api.vistaly.com/beta/cards/{cardId}/context")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vistaly.com/beta/cards/{cardId}/context")
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{
"context": [
{
"cardId": "<string>",
"cardTitle": "<string>",
"cardUrl": "<string>",
"level": 123,
"children": [
"<string>"
],
"organizationId": "<string>",
"workspaceId": "<string>",
"cardDetails": "<string>",
"cardStatus": "<string>",
"metricCurrent": 123,
"metricTarget": 123,
"metricUnit": "<string>",
"insights": [
{
"insightId": "<string>",
"insightUrl": "<string>",
"textPreview": "<string>",
"customerInteractionId": "<string>",
"interviewUrl": "<string>",
"customerOrganization": {
"id": "<string>",
"name": "<string>"
}
}
],
"comments": [
{
"commentId": "<string>",
"commentUrl": "<string>",
"text": "<string>",
"author": {
"userId": "<string>",
"name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
],
"metadata": {
"cardCount": 123,
"maxLevel": 123
}
}{
"message": "Bad request"
}{
"message": "Unauthorized"
}{
"message": "Forbidden"
}{
"message": "Internal server error"
}Get card context
Retrieve hierarchical context for a card including ancestors (parent cards), descendants (child cards), or both. Each card in the response includes a ‘level’ field (0=target card, positive integers=distance from target) and a ‘children’ array (IDs of direct child cards). Use direction=‘ancestors’ to understand what problems/objectives a card supports, direction=‘descendants’ to see solutions/experiments beneath a card, or direction=‘both’ for complete tree context. The hierarchy can be reconstructed using the children arrays and level fields.
curl --request GET \
--url https://api.vistaly.com/beta/cards/{cardId}/context \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vistaly.com/beta/cards/{cardId}/context"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vistaly.com/beta/cards/{cardId}/context', 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.vistaly.com/beta/cards/{cardId}/context",
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://api.vistaly.com/beta/cards/{cardId}/context"
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://api.vistaly.com/beta/cards/{cardId}/context")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vistaly.com/beta/cards/{cardId}/context")
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{
"context": [
{
"cardId": "<string>",
"cardTitle": "<string>",
"cardUrl": "<string>",
"level": 123,
"children": [
"<string>"
],
"organizationId": "<string>",
"workspaceId": "<string>",
"cardDetails": "<string>",
"cardStatus": "<string>",
"metricCurrent": 123,
"metricTarget": 123,
"metricUnit": "<string>",
"insights": [
{
"insightId": "<string>",
"insightUrl": "<string>",
"textPreview": "<string>",
"customerInteractionId": "<string>",
"interviewUrl": "<string>",
"customerOrganization": {
"id": "<string>",
"name": "<string>"
}
}
],
"comments": [
{
"commentId": "<string>",
"commentUrl": "<string>",
"text": "<string>",
"author": {
"userId": "<string>",
"name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
],
"metadata": {
"cardCount": 123,
"maxLevel": 123
}
}{
"message": "Bad request"
}{
"message": "Unauthorized"
}{
"message": "Forbidden"
}{
"message": "Internal server error"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier for the card
Query Parameters
Direction to traverse the card hierarchy
ancestors, descendants, both Maximum depth for traversal (1-10)
1 <= x <= 10Include the target card in results
Include comments for each card
Include insights for each card
Include card descriptions (details)