The dashboards the caller can open in their current Digital Twin (the Agents page's Dashboards view)
curl --request GET \
--url https://pria.praxislxp.com/api/user/agents/v2/dashboards \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/user/agents/v2/dashboards"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/user/agents/v2/dashboards', 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://pria.praxislxp.com/api/user/agents/v2/dashboards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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://pria.praxislxp.com/api/user/agents/v2/dashboards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pria.praxislxp.com/api/user/agents/v2/dashboards")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/agents/v2/dashboards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"truncated": true,
"dashboards": [
{
"id": "<string>",
"title": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"relation": "mine",
"sharing": "private",
"ownerFirstName": "<string>",
"hasLivePreview": true,
"canWorkOn": true,
"slug": "<string>"
}
]
}Agents
The dashboards the caller can open in their current Digital Twin (the Agents page's Dashboards view)
The caller’s own published dashboards of the current twin, those the owner shared with the twin’s admins (when the caller is one), and those shared view-only with a twin the caller belongs to — exactly the dashboards the dashboard viewer would open for them (one access rule, dashboardAccess.resolveViewer). Newest published first, at most 100. Cards only: no rows, manifest or file bytes. Same gate as the other agents routes (agent access on the current twin); while the dashboard feature flags are off the route answers 404 as if it did not exist. Reads Pria’s own records only; it never starts or touches the caller’s agent.
GET
/
api
/
user
/
agents
/
v2
/
dashboards
The dashboards the caller can open in their current Digital Twin (the Agents page's Dashboards view)
curl --request GET \
--url https://pria.praxislxp.com/api/user/agents/v2/dashboards \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/user/agents/v2/dashboards"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/user/agents/v2/dashboards', 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://pria.praxislxp.com/api/user/agents/v2/dashboards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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://pria.praxislxp.com/api/user/agents/v2/dashboards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pria.praxislxp.com/api/user/agents/v2/dashboards")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/agents/v2/dashboards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"truncated": true,
"dashboards": [
{
"id": "<string>",
"title": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"relation": "mine",
"sharing": "private",
"ownerFirstName": "<string>",
"hasLivePreview": true,
"canWorkOn": true,
"slug": "<string>"
}
]
}Query Parameters
Was this page helpful?