curl --request POST \
--url https://api.sidenet.ai/v1/dashboards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"network_id": 12,
"environment": "prod",
"spec": {},
"timezone": "Europe/Paris",
"icon": "📊",
"runtimeAuth": {}
}
'import requests
url = "https://api.sidenet.ai/v1/dashboards"
payload = {
"network_id": 12,
"environment": "prod",
"spec": {},
"timezone": "Europe/Paris",
"icon": "📊",
"runtimeAuth": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
network_id: 12,
environment: 'prod',
spec: {},
timezone: 'Europe/Paris',
icon: '📊',
runtimeAuth: {}
})
};
fetch('https://api.sidenet.ai/v1/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://api.sidenet.ai/v1/dashboards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'network_id' => 12,
'environment' => 'prod',
'spec' => [
],
'timezone' => 'Europe/Paris',
'icon' => '📊',
'runtimeAuth' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sidenet.ai/v1/dashboards"
payload := strings.NewReader("{\n \"network_id\": 12,\n \"environment\": \"prod\",\n \"spec\": {},\n \"timezone\": \"Europe/Paris\",\n \"icon\": \"📊\",\n \"runtimeAuth\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sidenet.ai/v1/dashboards")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"network_id\": 12,\n \"environment\": \"prod\",\n \"spec\": {},\n \"timezone\": \"Europe/Paris\",\n \"icon\": \"📊\",\n \"runtimeAuth\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/dashboards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"network_id\": 12,\n \"environment\": \"prod\",\n \"spec\": {},\n \"timezone\": \"Europe/Paris\",\n \"icon\": \"📊\",\n \"runtimeAuth\": {}\n}"
response = http.request(request)
puts response.read_body{
"dashboard": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"timezone": "<string>",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active_version": {
"id": "<string>",
"number": 123,
"created_at": "<string>"
},
"last_run_id": "<string>",
"last_refreshed_at": "<string>",
"last_refresh_status": "<string>",
"data_changed_at": "<string>",
"icon": "📊",
"pin_position": 0,
"refresh_schedule_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"version": {
"id": "<string>",
"number": 123,
"created_at": "<string>"
},
"spec": {},
"filters": {
"schema": [
{}
],
"values": {}
},
"data": {
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "running",
"started_at": "2023-11-07T05:31:56Z",
"refreshed_at": "2023-11-07T05:31:56Z",
"filters": {},
"panels": [
{
"id": "<string>",
"kind": "stats",
"title": "<string>",
"span": 123,
"height": "sm",
"component": {},
"markdown": "<string>"
}
],
"insights": [
{}
],
"error": "<string>"
}
}{
"error": "<string>",
"details": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"details": "<string>",
"test": {}
}Create dashboard from spec
Creates a dashboard for the caller’s user from a spec — the spec object of GET /v1/dashboards/{id} (not the whole read model), or a template’s. The network is named as network_id + environment (one copilot per environment of a network), so the same call moves between dev, staging and prod by changing one word. Sources and actions name tools by their agent-facing name and are resolved against the catalogue of that copilot (the read-only tools of its agents are sources, the write tools actions); a tool the copilot does not carry fails the call naming it. The dashboard is compiled, test-refreshed with the caller’s credentials, published as version 1 and activated — the same path the dashboard agent takes, without a model. A session token creates for its own user; an API key names the user with X-User-Id and may send runtimeAuth. The per-user cap applies.
curl --request POST \
--url https://api.sidenet.ai/v1/dashboards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"network_id": 12,
"environment": "prod",
"spec": {},
"timezone": "Europe/Paris",
"icon": "📊",
"runtimeAuth": {}
}
'import requests
url = "https://api.sidenet.ai/v1/dashboards"
payload = {
"network_id": 12,
"environment": "prod",
"spec": {},
"timezone": "Europe/Paris",
"icon": "📊",
"runtimeAuth": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
network_id: 12,
environment: 'prod',
spec: {},
timezone: 'Europe/Paris',
icon: '📊',
runtimeAuth: {}
})
};
fetch('https://api.sidenet.ai/v1/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://api.sidenet.ai/v1/dashboards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'network_id' => 12,
'environment' => 'prod',
'spec' => [
],
'timezone' => 'Europe/Paris',
'icon' => '📊',
'runtimeAuth' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sidenet.ai/v1/dashboards"
payload := strings.NewReader("{\n \"network_id\": 12,\n \"environment\": \"prod\",\n \"spec\": {},\n \"timezone\": \"Europe/Paris\",\n \"icon\": \"📊\",\n \"runtimeAuth\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sidenet.ai/v1/dashboards")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"network_id\": 12,\n \"environment\": \"prod\",\n \"spec\": {},\n \"timezone\": \"Europe/Paris\",\n \"icon\": \"📊\",\n \"runtimeAuth\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/dashboards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"network_id\": 12,\n \"environment\": \"prod\",\n \"spec\": {},\n \"timezone\": \"Europe/Paris\",\n \"icon\": \"📊\",\n \"runtimeAuth\": {}\n}"
response = http.request(request)
puts response.read_body{
"dashboard": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"timezone": "<string>",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active_version": {
"id": "<string>",
"number": 123,
"created_at": "<string>"
},
"last_run_id": "<string>",
"last_refreshed_at": "<string>",
"last_refresh_status": "<string>",
"data_changed_at": "<string>",
"icon": "📊",
"pin_position": 0,
"refresh_schedule_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"version": {
"id": "<string>",
"number": 123,
"created_at": "<string>"
},
"spec": {},
"filters": {
"schema": [
{}
],
"values": {}
},
"data": {
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "running",
"started_at": "2023-11-07T05:31:56Z",
"refreshed_at": "2023-11-07T05:31:56Z",
"filters": {},
"panels": [
{
"id": "<string>",
"kind": "stats",
"title": "<string>",
"span": 123,
"height": "sm",
"component": {},
"markdown": "<string>"
}
],
"insights": [
{}
],
"error": "<string>"
}
}{
"error": "<string>",
"details": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"error": "<string>",
"details": "<string>",
"test": {}
}Authorizations
Body
Response
Created and refreshed once
The version's spec: filters, sources, panels (layout: span, height, order; triggers: a stats panel's on_click, a table's row_key, cell_triggers (by column key: the cell value is a link), on_row_click, row_actions), views (what a trigger opens: kind table | stats | chart | … | form | thread | composite, title, presentation drawer | modal, context keys; a form view carries tool, fields, initial, submit_label, on_success, confirm and schema — the JSON Schema of its fields; a composite view carries blocks — data blocks of any component kind, text blocks, at most one form block with its schema — and optional tabs / default_tab), actions (toolbar buttons), tab_groups (layout only: { id, tabs: [{ id, label }], default?, strip?: card | page | none }; a panel with tab: { group, id } shows only while that tab is open) and insights ({ id, scope: { page: true } | { tab: { group, id } } | { panel }, sources, prompt }: the assistant's readings of the data, one model call each per refresh, answered under the data's insights). A trigger is { view, context } or { tab: { group, id } } (select a tab instead of opening a view); context values that are templates ("{{row.id}}", "{{row}}", "{{stat.key}}", "{{stat.value}}", "{{filters.}}") are resolved by the page before it calls the view.