GET Read an authorized workspace summary
/api/v1/dashboard/summary
Customize your personal dashboard directly: move cards, choose sources, set titles and widths, and add monitor, metric, chart or maintenance cards. Changes take effect only after saving and always respect the group filter.
On this page
Access and permissions
Customize your personal dashboard directly: move cards, choose sources, set titles and widths, and add monitor, metric, chart or maintenance cards. Changes take effect only after saving and always respect the group filter.
Browser session: __Host-mb_session cookie.
Machine management credentials in Authorization: Bearer. Check the permissions (scopes) required by the operation.
Parameters and headers
| Field | Location | Type and limits | Required | Meaning |
|---|---|---|---|---|
| workspace_id | URL query | string; {"format":"uuid"} | Yes | UUID of an owned workspace. When optional, omission selects the documented default or all owned workspaces. |
| group_id | URL query | string; {"pattern":"^(?:none|[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12})?$"} | No | Optional group UUID within the selected workspace; none selects monitors without a group. Omit the parameter or send an empty value to include all groups. Counts and all summary lists use this scope. |
| range | URL query | string; {"enum":["24h","7d","30d"],"default":"24h"} | No | Dashboards belong to one workspace. Owner and Editor can change saved views; Viewer can read them. Limits: 10 active dashboards per workspace, 20 widgets per dashboard and 4 numeric series per chart. Sources must be active and belong to the same workspace. Mutations accept Idempotency-Key; reusing a key with changed payload returns 409. PUT requires the current expected_revision. Size and order are fixed presets. URL filters are temporary; saved range and group_filter remain unchanged. |
| cards | URL query | string | No | Comma-separated card IDs. Omit to load the full overview; unselected cards do not load their detail projections. |
Request body
No request body.
Responses
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"enum":["en","de"]} | Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable. |
| Referrer-Policy | JSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]} | The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | object; {"additionalProperties":true} | Yes | — |
| $.attention | array<object> | No | — |
| $.attention[] | object | Yes | — |
| $.attention[].http_code | string | null | Yes | — |
| $.attention[].http_code (anyOf 1) | string | No | — |
| $.attention[].http_code (anyOf 2) | null | No | — |
| $.attention[].http_status | string | null | Yes | — |
| $.attention[].http_status (anyOf 1) | string | No | — |
| $.attention[].http_status (anyOf 2) | null | No | — |
| $.attention[].id | string; {"format":"uuid"} | Yes | UUID of this resource. Keep the returned identifier for subsequent operations. |
| $.attention[].monitor_type | string | Yes | — |
| $.attention[].name | string | Yes | Human-readable resource name. Follow the listed length limit. |
| $.attention[].reason | string; {"enum":["incident","http_down","quota","checker","heartbeat","check_down","check_paused"]} | Yes | Short explanation for the selected maintenance or attention condition. |
| $.attention[].check_status | string; {"enum":["up","down","unknown","paused"]} | No | — |
| $.counts | object | No | — |
| $.counts.devices | integer; {"minimum":0} | Yes | — |
| $.counts.missing_heartbeats | integer; {"minimum":0} | Yes | — |
| $.counts.open_incidents | integer; {"minimum":0} | Yes | — |
| $.events | array<object> | No | — |
| $.events[] | object | Yes | — |
| $.events[].device_id | string; {"format":"uuid"} | Yes | UUID of the target device or monitor. The ingestion key must allow this device. |
| $.events[].device_name | string | Yes | — |
| $.events[].id | string; {"format":"uuid"} | Yes | UUID of this resource. Keep the returned identifier for subsequent operations. |
| $.events[].measured_at | string; {"format":"date-time"} | Yes | Observation timestamp supplied by the device in UTC; follow the permitted past and future window. |
| $.events[].message | string | Yes | — |
| $.events[].severity | string; {"enum":["info","warning","critical"]} | Yes | Severity value from the listed vocabulary. |
| $.heartbeats | array<object> | No | — |
| $.heartbeats[] | object | Yes | — |
| $.heartbeats[].expected_heartbeat_seconds | integer; {"minimum":5} | Yes | Expected device-contact interval in seconds. |
| $.heartbeats[].id | string; {"format":"uuid"} | Yes | UUID of this resource. Keep the returned identifier for subsequent operations. |
| $.heartbeats[].last_heartbeat_at | string; {"format":"date-time"} | null | Yes | Last accepted device contact timestamp; null before the first contact. |
| $.heartbeats[].last_heartbeat_at (anyOf 1) | string; {"format":"date-time"} | No | — |
| $.heartbeats[].last_heartbeat_at (anyOf 2) | null | No | — |
| $.heartbeats[].name | string | Yes | Human-readable resource name. Follow the listed length limit. |
| $.incidents | array<object> | No | — |
| $.incidents[] | object | Yes | — |
| $.incidents[].acknowledged_at | string; {"format":"date-time"} | null | Yes | Timestamp of explicit acknowledgement; acknowledgement does not itself resolve the condition. |
| $.incidents[].acknowledged_at (anyOf 1) | string; {"format":"date-time"} | No | — |
| $.incidents[].acknowledged_at (anyOf 2) | null | No | — |
| $.incidents[].device_id | string; {"format":"uuid"} | Yes | UUID of the target device or monitor. The ingestion key must allow this device. |
| $.incidents[].device_name | string | Yes | — |
| $.incidents[].id | string; {"format":"uuid"} | Yes | UUID of this resource. Keep the returned identifier for subsequent operations. |
| $.incidents[].opened_at | string; {"format":"date-time"} | Yes | Timestamp when the alarm incident was opened. |
| $.incidents[].rule_name | string | Yes | — |
| $.incidents[].severity | string; {"enum":["info","warning","critical"]} | Yes | Severity value from the listed vocabulary. |
| $.list_limit | integer | No | — |
| $.observed_at | string; {"format":"date-time"} | Yes | Server timestamp used to evaluate freshness for this response. |
| $.workspace_id | string | Yes | UUID of the owning workspace. Access is checked against the authenticated account. |
| $.event_activity | array<object | object>; {"maxItems":20} | No | — |
| $.event_activity[] | object | object | Yes | — |
| $.event_activity[] (oneOf 1) | object | No | — |
| $.event_activity[] (oneOf 1).context | EventContext | Yes | Resolved source information. A series link is supplied only for an unambiguous series in this monitor. Missing historical states are not inferred. |
| $.event_activity[] (oneOf 1).context.series_id | string | null | No | — |
| $.event_activity[] (oneOf 1).context.series_name | string | null | No | — |
| $.event_activity[] (oneOf 1).context.series_kind | string | null | No | — |
| $.event_activity[] (oneOf 1).context.component_name | string | null | No | — |
| $.event_activity[] (oneOf 1).context.component_id | string | null | No | — |
| $.event_activity[] (oneOf 1).context.parameter_key | string | null | No | — |
| $.event_activity[] (oneOf 1).context.source | string | null | No | — |
| $.event_activity[] (oneOf 1).context.title_key | string | null | No | — |
| $.event_activity[] (oneOf 1).device_id | string; {"format":"uuid"} | Yes | UUID of the target device or monitor. The ingestion key must allow this device. |
| $.event_activity[] (oneOf 1).device_name | string | Yes | — |
| $.event_activity[] (oneOf 1).id | string; {"format":"uuid"} | Yes | UUID of this resource. Keep the returned identifier for subsequent operations. |
| $.event_activity[] (oneOf 1).kind | string; {"const":"event"} | Yes | — |
| $.event_activity[] (oneOf 1).labels | object | Yes | — |
| $.event_activity[] (oneOf 1).measured_at | string; {"format":"date-time"} | Yes | Observation timestamp supplied by the device in UTC; follow the permitted past and future window. |
| $.event_activity[] (oneOf 1).message | string | Yes | — |
| $.event_activity[] (oneOf 1).severity | string; {"enum":["info","warning","critical"]} | Yes | Severity value from the listed vocabulary. |
| $.event_activity[] (oneOf 2) | object | No | — |
| $.event_activity[] (oneOf 2).count | integer; {"minimum":0} | Yes | — |
| $.event_activity[] (oneOf 2).first_at | string; {"format":"date-time"} | Yes | — |
| $.event_activity[] (oneOf 2).from | string; {"format":"date-time"} | Yes | — |
| $.event_activity[] (oneOf 2).id | string; {"format":"uuid"} | Yes | — |
| $.event_activity[] (oneOf 2).kind | string; {"const":"deployment"} | Yes | — |
| $.event_activity[] (oneOf 2).last_at | string; {"format":"date-time"} | Yes | — |
| $.event_activity[] (oneOf 2).measured_at | string; {"format":"date-time"} | Yes | — |
| $.event_activity[] (oneOf 2).service_count | integer; {"minimum":0} | Yes | — |
| $.event_activity[] (oneOf 2).severity_counts | object | Yes | — |
| $.event_activity[] (oneOf 2).severity_counts.info | integer; {"minimum":0} | Yes | — |
| $.event_activity[] (oneOf 2).severity_counts.warning | integer; {"minimum":0} | Yes | — |
| $.event_activity[] (oneOf 2).sources | array<object> | Yes | — |
| $.event_activity[] (oneOf 2).sources[] | object | Yes | — |
| $.event_activity[] (oneOf 2).sources[].component_id | string | Yes | — |
| $.event_activity[] (oneOf 2).sources[].component_name | string | Yes | — |
| $.event_activity[] (oneOf 2).sources[].count | integer; {"minimum":0} | Yes | — |
| $.event_activity[] (oneOf 2).sources[].device_id | string; {"format":"uuid"} | Yes | — |
| $.event_activity[] (oneOf 2).sources[].device_name | string | Yes | — |
| $.event_activity[] (oneOf 2).sources[].first_at | string; {"format":"date-time"} | Yes | — |
| $.event_activity[] (oneOf 2).sources[].last_at | string; {"format":"date-time"} | Yes | — |
| $.event_activity[] (oneOf 2).sources[].service | string | Yes | — |
| $.event_activity[] (oneOf 2).to | string; {"format":"date-time"} | Yes | — |
| $.monitoring | object; {"additionalProperties":true} | No | — |
| $.categories | object | No | — |
| $.servers | array<object; {"additionalProperties":true}> | No | — |
| $.servers[] | object; {"additionalProperties":true} | Yes | — |
| $.incident_severity | object | No | — |
| $.maintenance | object; {"additionalProperties":true} | No | — |
| $.status_pages | array<object; {"additionalProperties":true}> | No | — |
| $.status_pages[] | object; {"additionalProperties":true} | Yes | — |
| $.slos | array<object; {"additionalProperties":true}> | No | — |
| $.slos[] | object; {"additionalProperties":true} | Yes | — |
| $.setup | object | No | — |
{
"observed_at": "2026-09-30T12:00:00Z",
"workspace_id": "demo"
}| Stable error codes |
|---|
| invalid_credential |
| unauthorized |
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"enum":["en","de"]} | Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable. |
| Referrer-Policy | JSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]} | The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
{
"code": "demo",
"detail": "Demo error detail; inspect the documented code.",
"instance": "demo",
"message": "Demo error detail; inspect the documented code.",
"message_key": "errors.requestFailed",
"message_params": {},
"request_id": "00000000000000000000000000000000",
"status": 401,
"title": "Demo error",
"type": "about:blank"
}| Stable error codes |
|---|
| csrf |
| forbidden |
| insufficient_scope |
| invalid_origin |
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"enum":["en","de"]} | Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable. |
| Referrer-Policy | JSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]} | The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
{
"code": "demo",
"detail": "Demo error detail; inspect the documented code.",
"instance": "demo",
"message": "Demo error detail; inspect the documented code.",
"message_key": "errors.requestFailed",
"message_params": {},
"request_id": "00000000000000000000000000000000",
"status": 403,
"title": "Demo error",
"type": "about:blank"
}| Stable error codes |
|---|
| not_found |
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"enum":["en","de"]} | Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable. |
| Referrer-Policy | JSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]} | The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
{
"code": "demo",
"detail": "Demo error detail; inspect the documented code.",
"instance": "demo",
"message": "Demo error detail; inspect the documented code.",
"message_key": "errors.requestFailed",
"message_params": {},
"request_id": "00000000000000000000000000000000",
"status": 404,
"title": "Demo error",
"type": "about:blank"
}| Stable error codes |
|---|
| invalid_workspace |
| invalid_group |
| invalid_time |
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"enum":["en","de"]} | Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable. |
| Referrer-Policy | JSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]} | The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
{
"code": "demo",
"detail": "Demo error detail; inspect the documented code.",
"instance": "demo",
"message": "Demo error detail; inspect the documented code.",
"message_key": "errors.requestFailed",
"message_params": {},
"request_id": "00000000000000000000000000000000",
"status": 422,
"title": "Demo error",
"type": "about:blank"
}| Stable error codes |
|---|
| unavailable |
| Header | Type and limits | Meaning |
|---|---|---|
| Cache-Control | string; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"} | Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation. |
| Content-Language | string; {"enum":["en","de"]} | Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable. |
| Referrer-Policy | JSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]} | The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters. |
| Retry-After | string; {"pattern":"^[0-9]+$"} | Seconds before retry. Preserve supported idempotency identifiers and respect the operation’s mutation semantics. |
| Vary | string | Responses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie. |
| X-Content-Type-Options | JSON; {"const":"nosniff"} | The browser must use the declared content type. |
| X-Frame-Options | JSON; {"const":"DENY"} | The response must not be embedded in a frame. |
| X-Request-ID | string | Server-generated request identifier. Include this when reporting an error; inbound values are not trusted. |
application/problem+json
| Field | Type and limits | Required | Meaning |
|---|---|---|---|
| $ | Problem | Yes | — |
| $.code | string | Yes | Stable machine-readable error code |
| $.detail | string | Yes | Short localized explanation without internal error details |
| $.instance | string | Yes | Unique relative identifier /api/v1/requests/{request_id}; not a retrievable resource |
| $.message | string | Yes | Temporarily identical to detail for existing clients |
| $.message_key | string | Yes | Stable translation key for changing the displayed language without another request |
| $.message_params | object; {"additionalProperties":true} | Yes | Named, safely rendered message parameters; never arbitrary HTML |
| $.request_id | string; {"pattern":"^[0-9a-f]{32}$"} | Yes | Server-generated diagnostic identifier. It contains no login token or credential. |
| $.status | integer; {"maximum":599,"minimum":400} | Yes | — |
| $.title | string | Yes | Localized HTTP status title |
| $.type | string; {"const":"about:blank"} | Yes | — |
{
"code": "demo",
"detail": "Demo error detail; inspect the documented code.",
"instance": "demo",
"message": "Demo error detail; inspect the documented code.",
"message_key": "errors.requestFailed",
"message_params": {},
"request_id": "00000000000000000000000000000000",
"status": 503,
"title": "Demo error",
"type": "about:blank"
}Retries and asynchronous work
This operation reads or validates without applying a resource mutation. Respect rate limits and credential lifetime.
Request examples
Replace demo IDs, timestamps and placeholders with your own values. For a retry, keep the same IDs, time and content. These examples do not run requests on this page.
Keep login links, codes, cookies and keys private. Do not print them in logs or share them in support requests.
curl --silent --show-error --output /dev/null --write-out "%{http_code}\n" \
--request GET \
--header @"$HOME/.config/metribeacon/headers.txt" \
"https://metribeacon.com/api/v1/dashboard/summary?workspace_id=00000000-0000-4000-8000-000000000001"
import json
from pathlib import Path
from urllib.request import Request, HTTPRedirectHandler, build_opener
from urllib.error import HTTPError
headers = json.loads((Path.home() / ".config/metribeacon/headers.json").read_text())
request = Request("https://metribeacon.com/api/v1/dashboard/summary?workspace_id=00000000-0000-4000-8000-000000000001", data=None, headers=headers, method="GET")
class NoRedirect(HTTPRedirectHandler):
def redirect_request(self, request, fp, code, message, headers, target):
return None
opener = build_opener(NoRedirect())
try:
with opener.open(request, timeout=10) as response:
print(response.status)
except HTTPError as error:
print(error.code)
error.close()
import { readFile } from "node:fs/promises";
import { homedir } from "node:os";
import { join } from "node:path";
const headers = JSON.parse(await readFile(join(homedir(), ".config/metribeacon/headers.json"), "utf8"));
const response = await fetch("https://metribeacon.com/api/v1/dashboard/summary?workspace_id=00000000-0000-4000-8000-000000000001", {
method: "GET", headers, redirect: "manual",
signal: AbortSignal.timeout(10000),
});
console.log(response.status);
await response.body?.cancel();
package main
import (
"fmt"
"net/http"
"time"
"encoding/json"
"os"
"path/filepath"
)
func main() {
home, err := os.UserHomeDir(); if err != nil { panic("request failed; credentials and response omitted") }
raw, err := os.ReadFile(filepath.Join(home, ".config/metribeacon/headers.json")); if err != nil { panic("request failed; credentials and response omitted") }
var headers map[string]string
if json.Unmarshal(raw, &headers) != nil { panic("invalid local headers") }
request, err := http.NewRequest("GET", "https://metribeacon.com/api/v1/dashboard/summary?workspace_id=00000000-0000-4000-8000-000000000001", nil)
if err != nil { panic("request failed; credentials and response omitted") }
for name, value := range headers { request.Header.Set(name, value) }
client := &http.Client{Timeout: 10*time.Second, CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
response, err := client.Do(request)
if err != nil { panic("request failed; credentials and response omitted") }
defer response.Body.Close()
fmt.Println(response.StatusCode)
}
Related guides
- HTTP API, OAuth and MCP
Find the user API endpoints, their permissions, fields, examples and response formats.
- GET Read your saved dashboard configuration
Customize your personal dashboard directly: move cards, choose sources, set titles and widths, and add monitor, metric, chart or maintenance cards. Changes take effect only after saving and always respect the group filter.
- PUT Save dashboard configuration atomically
Customize your personal dashboard directly: move cards, choose sources, set titles and widths, and add monitor, metric, chart or maintenance cards. Changes take effect only after saving and always respect the group filter.
- POST Availability and response time
Customize your personal dashboard directly: move cards, choose sources, set titles and widths, and add monitor, metric, chart or maintenance cards. Changes take effect only after saving and always respect the group filter.