Get the home dashboard
curl --request GET \
--url https://api.pineyard.ai/dashboard \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/dashboard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/dashboard"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"stats": [
{
"id": "<string>",
"title": "<string>",
"definition": {
"metricId": "<string>",
"mode": "value",
"display": "tile",
"compareMetricId": "<string>"
},
"position": 123,
"hidden": true
}
],
"layout": {
"version": 1,
"ribbon": {
"order": [
"<string>"
],
"hidden": [
"<string>"
],
"sizes": {}
},
"sections": {
"order": [
"<string>"
],
"hidden": [
"<string>"
],
"sizes": {}
}
},
"metrics": [
{
"id": "<string>",
"source": "calls",
"label": "<string>",
"description": "<string>",
"unit": "count",
"endpoint": "<string>",
"path": "<string>",
"supports": [
"value"
]
}
]
}Analytics
Get the home dashboard
This workspace’s dashboard: its stats, its layout, and the metrics it can build from
GET
/
dashboard
Get the home dashboard
curl --request GET \
--url https://api.pineyard.ai/dashboard \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pineyard.ai/dashboard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/dashboard"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"stats": [
{
"id": "<string>",
"title": "<string>",
"definition": {
"metricId": "<string>",
"mode": "value",
"display": "tile",
"compareMetricId": "<string>"
},
"position": 123,
"hidden": true
}
],
"layout": {
"version": 1,
"ribbon": {
"order": [
"<string>"
],
"hidden": [
"<string>"
],
"sizes": {}
},
"sections": {
"order": [
"<string>"
],
"hidden": [
"<string>"
],
"sizes": {}
}
},
"metrics": [
{
"id": "<string>",
"source": "calls",
"label": "<string>",
"description": "<string>",
"unit": "count",
"endpoint": "<string>",
"path": "<string>",
"supports": [
"value"
]
}
]
}
