List comment threads on an embeddable dashboard
curl --request GET \
--url https://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments', 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://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments",
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://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments"
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://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments")
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{
"items": [
{
"replies": [
{
"body": "<string>",
"createdAt": "2023-12-25",
"dashboardId": "<string>",
"id": 123,
"isOwn": true,
"editedAt": "2023-12-25",
"removedAt": "2023-12-25",
"userId": 123
}
],
"root": {
"body": "<string>",
"createdAt": "2023-12-25",
"dashboardId": "<string>",
"id": 123,
"isOwn": true,
"editedAt": "2023-12-25",
"removedAt": "2023-12-25",
"userId": 123
},
"resolvedAt": "2023-12-25",
"resolvedBy": 123
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"endCursor": "<string>",
"startCursor": "<string>"
}
}Embed
List comment threads on an embeddable dashboard
GET
/
api
/
v1
/
embed
/
dashboard
/
{publicId}
/
comments
List comment threads on an embeddable dashboard
curl --request GET \
--url https://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments', 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://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments",
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://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments"
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://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}.cubecloud.dev/api/v1/embed/dashboard/{publicId}/comments")
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{
"items": [
{
"replies": [
{
"body": "<string>",
"createdAt": "2023-12-25",
"dashboardId": "<string>",
"id": 123,
"isOwn": true,
"editedAt": "2023-12-25",
"removedAt": "2023-12-25",
"userId": 123
}
],
"root": {
"body": "<string>",
"createdAt": "2023-12-25",
"dashboardId": "<string>",
"id": 123,
"isOwn": true,
"editedAt": "2023-12-25",
"removedAt": "2023-12-25",
"userId": 123
},
"resolvedAt": "2023-12-25",
"resolvedBy": 123
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"endCursor": "<string>",
"startCursor": "<string>"
}
}Returns one page of comment threads — each a root comment plus its replies, oldest first — for the dashboard identified by its
publicId, scoped to the caller’s embed tenant.
Threads are ordered newest-first by when they started, so a thread holds its place while it is being replied to. Open threads are returned by default; pass includeResolved to widen the page to resolved ones too, or resolvedOnly to replace the set with just those.
A comment whose author deleted it is returned with an empty body and removedAt set, so a thread keeps its shape and the surviving replies stay readable.
Requires a signed embed session scoped to an embed tenant. Every comment endpoint does: a conversation lives inside one embed tenant’s partition, so a credential that names no tenant — an API key, a console session — has no conversation to be served and receives 403.Authorizations
Token authentication. Send Authorization: Bearer <YOUR_TOKEN>.
Path Parameters
Query Parameters
Required range:
x >= 1