curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/{workspaceId}/dashboard \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/{workspaceId}/dashboard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/{workspaceId}/dashboard"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"workspaceId": "<string>",
"period": {
"type": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"granularity": "<string>"
},
"health": {
"score": 123,
"status": "<string>",
"metrics": {
"totalInteractions": 123,
"failedInteractions": 123,
"totalExecutions": 123,
"totalErrors": 123,
"errorRate": 123,
"successRate": 123,
"p95Ms": 123,
"p50Ms": 123
},
"breakdown": {},
"issues": [
{
"message": "<string>"
}
]
},
"metrics": {
"totalExecutions": 123,
"totalEntryExecutions": 123,
"totalInteractions": 123,
"latency": {
"p50Ms": 123,
"p90Ms": 123,
"p95Ms": 123,
"p99Ms": 123
},
"slowestAutomations": [
{
"automation": "<string>",
"executions": 123,
"p95Ms": 123,
"errorRate": 123,
"correlationIds": [
"<string>"
]
}
],
"timeline": [
{
"date": "2023-11-07T05:31:56Z",
"p95Ms": 123,
"count": 123,
"entryCount": 123,
"interactions": 123,
"status": "<string>"
}
]
},
"errors": {
"totalErrors": 123,
"totalExecutions": 123,
"totalInteractions": 123,
"failedInteractions": 123,
"errorRate": 123,
"byType": [
{
"type": "<string>",
"appInstanceFullSlug": "<string>",
"count": 123,
"percentage": 123
}
],
"byAutomation": [
{
"automation": "<string>",
"errorCount": 123,
"execCount": 123,
"errorRate": 123
}
],
"timeline": [
{
"date": "2023-11-07T05:31:56Z",
"count": 123,
"failedInteractions": 123,
"status": "<string>"
}
]
},
"costs": {
"summary": {
"totalCalls": 123,
"totalCostUsd": 123,
"totalTokens": 123,
"inputTokens": 123,
"outputTokens": 123,
"totalCarbonKgco2": 123
},
"byModel": [
{
"model": "<string>",
"calls": 123,
"cost": 123,
"tokens": 123,
"percentage": 123
}
],
"byProvider": [
{
"provider": "<string>",
"calls": 123,
"latencyMs": 123
}
],
"timeline": [
{
"date": "2023-11-07T05:31:56Z",
"calls": 123,
"cost": 123,
"tokens": 123,
"status": "<string>"
}
]
},
"usage": {
"summary": {
"totalInteractions": 123,
"totalExecutions": 123,
"uniqueUsers": 123,
"avgInteractionsPerDay": 123,
"avgRpm": 123,
"peakRpm": 123
},
"intervalStats": [
{
"date": "2023-11-07T05:31:56Z",
"interactions": 123,
"executions": 123,
"users": 123,
"status": "<string>"
}
],
"topEntrypoints": [
{
"automation": "<string>",
"count": 123,
"percentage": 123
}
]
},
"meta": {
"source": "<string>",
"data_points": 123,
"includes_current_interval": true,
"summary_cached": true,
"granularity_override_applied": true,
"generated_at": "2023-11-07T05:31:56Z",
"data_computed_at": "2023-11-07T05:31:56Z",
"next_refresh_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Get the unified observability dashboard for a workspace
Returns the per-workspace dashboard in a single response: health,
metrics, errors, costs, and usage sections. Backed by the
per-interval platform_metrics rows plus a summary cache; refreshes
the current open interval on demand and self-heals gaps in closed
intervals.
Requires observability:read permission.
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/{workspaceId}/dashboard \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/{workspaceId}/dashboard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/{workspaceId}/dashboard"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"workspaceId": "<string>",
"period": {
"type": "<string>",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"granularity": "<string>"
},
"health": {
"score": 123,
"status": "<string>",
"metrics": {
"totalInteractions": 123,
"failedInteractions": 123,
"totalExecutions": 123,
"totalErrors": 123,
"errorRate": 123,
"successRate": 123,
"p95Ms": 123,
"p50Ms": 123
},
"breakdown": {},
"issues": [
{
"message": "<string>"
}
]
},
"metrics": {
"totalExecutions": 123,
"totalEntryExecutions": 123,
"totalInteractions": 123,
"latency": {
"p50Ms": 123,
"p90Ms": 123,
"p95Ms": 123,
"p99Ms": 123
},
"slowestAutomations": [
{
"automation": "<string>",
"executions": 123,
"p95Ms": 123,
"errorRate": 123,
"correlationIds": [
"<string>"
]
}
],
"timeline": [
{
"date": "2023-11-07T05:31:56Z",
"p95Ms": 123,
"count": 123,
"entryCount": 123,
"interactions": 123,
"status": "<string>"
}
]
},
"errors": {
"totalErrors": 123,
"totalExecutions": 123,
"totalInteractions": 123,
"failedInteractions": 123,
"errorRate": 123,
"byType": [
{
"type": "<string>",
"appInstanceFullSlug": "<string>",
"count": 123,
"percentage": 123
}
],
"byAutomation": [
{
"automation": "<string>",
"errorCount": 123,
"execCount": 123,
"errorRate": 123
}
],
"timeline": [
{
"date": "2023-11-07T05:31:56Z",
"count": 123,
"failedInteractions": 123,
"status": "<string>"
}
]
},
"costs": {
"summary": {
"totalCalls": 123,
"totalCostUsd": 123,
"totalTokens": 123,
"inputTokens": 123,
"outputTokens": 123,
"totalCarbonKgco2": 123
},
"byModel": [
{
"model": "<string>",
"calls": 123,
"cost": 123,
"tokens": 123,
"percentage": 123
}
],
"byProvider": [
{
"provider": "<string>",
"calls": 123,
"latencyMs": 123
}
],
"timeline": [
{
"date": "2023-11-07T05:31:56Z",
"calls": 123,
"cost": 123,
"tokens": 123,
"status": "<string>"
}
]
},
"usage": {
"summary": {
"totalInteractions": 123,
"totalExecutions": 123,
"uniqueUsers": 123,
"avgInteractionsPerDay": 123,
"avgRpm": 123,
"peakRpm": 123
},
"intervalStats": [
{
"date": "2023-11-07T05:31:56Z",
"interactions": 123,
"executions": 123,
"users": 123,
"status": "<string>"
}
],
"topEntrypoints": [
{
"automation": "<string>",
"count": 123,
"percentage": 123
}
]
},
"meta": {
"source": "<string>",
"data_points": 123,
"includes_current_interval": true,
"summary_cached": true,
"granularity_override_applied": true,
"generated_at": "2023-11-07T05:31:56Z",
"data_computed_at": "2023-11-07T05:31:56Z",
"next_refresh_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Path Parameters
Workspace identifier.
64^[a-zA-Z0-9_-]+$Query Parameters
Preset window (default 24h).
15m, 30m, 1h, 24h, 7d, 30d Custom range start (overrides period; never cached).
Custom range end (overrides period; never cached).
Granularity override (auto-picked from period; 5m windows shorter than 1h are never cached).
5m, hourly, daily Response
Unified dashboard payload.
Unified per-workspace observability dashboard.
health block - output of internal/observability/build-health.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Failed / total interactions, percentage rounded to 2 decimals.
1 - errorRate, percentage rounded to 2 decimals.
Per-component score breakdown produced by compute-health-score.
metrics block - output of internal/observability/build-metrics.
Hide child attributes
Hide child attributes
errors block - output of internal/observability/build-errors.
Hide child attributes
Hide child attributes
costs block - output of internal/observability/build-costs.
Hide child attributes
Hide child attributes
usage block - output of internal/observability/build-usage.
Hide child attributes
Hide child attributes
Was this page helpful?