https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
Deletes a dashboard from the application.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
Creates a copy of an existing dashboard.
OptionaldashboardObj: { new_label?: string; setup?: object }https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
Modifies an existing dashboard's properties.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
Builds or edits an AI dashboard from a prompt. Without run_user, it changes the dashboard's own setup.
With run_user, it changes that run user's individual dashboard, which requires per_user on the dashboard.
A generation takes 15 to 60 seconds, so this call waits up to 180 seconds. The server answers 429 when the profile already runs 3 generations or the dashboard is already generating.
Each generation is billed and saves a new dashboard version, so the SDK makes a single attempt and never retries it, even after a timeout or a 5xx. Callers decide whether to call again.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy Dashboard / Edit in Access Management.
const result = await Resources.dashboards.generate("dashboard-id-123", {
prompt: "Show temperature and humidity for the last 24 hours",
history: [
{ role: "user", content: "Add a map of all sensors" },
{ role: "assistant", content: "Added a map widget with every sensor." },
],
run_user: "run-user-id-123",
});
console.log(result); // { id: 'dashboard-id-123' }
Generates a new public access token for the dashboard.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy in Access Management.
const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
const publicKey = await resources.dashboards.getPublicKey("dashboard-id-123", "1day");
console.log(publicKey); // { token: 'token-id-123', expire_time: '2025-01-02T00:00:00.000Z' }
Retrieves detailed information about a specific dashboard.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
Lists all dashboards from your application with pagination support.
OptionalqueryObj: DashboardQueryhttps://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy Dashboard / Access in Access Management.
const result = await Resources.dashboards.list({
page: 1,
fields: ["id", "name"],
amount: 10,
orderBy: ["label", "asc"]
});
console.log(result); // [ { id: 'dashboard-id-123', label: 'My Dashboard', ...}, ... ]
Lists all analyses associated with a dashboard.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
Lists all devices associated with the dashboard.
https://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
Lists the run users who can open a per-user AI dashboard, with pagination support.
OptionalqueryObj: DashboardRunUsersQueryhttps://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
If receive an error "Authorization Denied", check policy Dashboard / Access in Access Management.
const users = await Resources.dashboards.listRunUsers("dashboard-id-123", { search: "ana", page: 1, amount: 50 });
console.log(users); // [ { id: 'run-user-id-123', name: 'Ana', email: 'ana@example.com', has_dashboard: true }, ... ]
Executes an analysis from a widget's header button.
Optionalscope: objecthttps://help.tago.io/portal/en/kb/articles/15-dashboard-overview Dashboard Overview
Creates a new dashboard in your application.