Reports
Lists reports in the workspace. Paginated (limit, cursor). Read from platform MongoDB. Reports have title, description, status (e.g. draft), markdown, widgets, evidenceIds.
An API key (pk_...) created on the Organisation API page, or an OAuth access token. Every operation requires one.
Path parameter: wsId
123Page size (1-1000, default 50).
1Opaque cursor from a previous response's pagination.cursor.
exampleSuccessful response
Unauthorized
Forbidden
Too Many Requests; the response carries Retry-After
Internal Server Error
GET /api/v1/workspaces/{wsId}/reports HTTP/1.1
Host: sandbox.rootcause.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": null,
"workspaceId": "text",
"organisationId": "text",
"title": "text",
"markdown": "text",
"widgets": [
{
"id": "text",
"evidenceId": "text",
"type": "text",
"explorerConfig": "[Circular Reference]"
}
],
"evidenceIds": [
"text"
],
"createdAt": "text",
"updatedAt": "text",
"status": "draft",
"rev": 1,
"error": null,
"prompt": null,
"publish": {
"slug": null,
"publishedAt": null,
"consumerAccess": "private",
"resolvedInputs": [
{
"datasetId": "text",
"versionId": null,
"deltaVersion": 1
}
],
"widgetSnapshot": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"snapshotAt": null,
"snapshotStats": {
"requested": 1,
"resolved": 1,
"omitted": 1,
"timedOut": true,
"bytes": 1
}
}
}
],
"pagination": {
"cursor": "text",
"hasMore": true,
"total": 1
}
}Creates a new report. Body: title, optional description. Report is created in draft status with empty markdown, widgets, and evidenceIds. Stored in platform MongoDB; content is written via PATCH or by the agent's report tools.
An API key (pk_...) created on the Organisation API page, or an OAuth access token. Every operation requires one.
Path parameter: wsId
123Successful response
Bad Request
Unauthorized
Forbidden
Unprocessable Entity
Too Many Requests; the response carries Retry-After
Internal Server Error
POST /api/v1/workspaces/{wsId}/reports HTTP/1.1
Host: sandbox.rootcause.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"title": "text",
"description": null
}{
"data": {
"id": null,
"workspaceId": "text",
"organisationId": "text",
"title": "text",
"markdown": "text",
"widgets": [
{
"id": "text",
"evidenceId": "text",
"type": "text",
"explorerConfig": {
"id": "text",
"dataView": "[Circular Reference]",
"operations": "[Circular Reference]",
"additionalSources": [
{
"id": "text",
"type": "text",
"name": null,
"conceptIds": [
"text"
],
"conceptVersions": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"version": {
"kind": "text"
}
}
],
"inlineData": {
"columns": [
{
"name": "text",
"type": "None"
}
],
"rows": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
],
"downsampled": true,
"totalRows": null
},
"series": {
"labels": [
"text"
],
"datasets": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"meta": {
"version": 1,
"xField": null,
"columns": [
{
"name": "text",
"type": "text"
}
],
"series": [
{
"label": "text",
"yField": null,
"aggregation": null
}
],
"categoriesTotal": null,
"categoriesShown": null,
"otherFolded": null,
"sortBy": null,
"sortType": null,
"binCount": null,
"linksTotal": null,
"linksShown": null,
"pointsTotal": null,
"pointsShown": null,
"rowsScanned": null,
"rowsWithoutCategory": null,
"downsampled": null,
"summary": "",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
},
"xSelection": "text",
"traces": [
{
"id": "text",
"name": "text",
"ySelection": [
"text"
],
"yAxisPosition": "left",
"color": null,
"visible": true,
"chartType": "text",
"options": {
"stacked": false,
"aggregation": "sum"
}
}
],
"config": {
"responsive": true,
"chartTitle": null,
"dataPoints": -1,
"dataDisplayOrder": "fromStart",
"sortBy": "none",
"sortType": "ascending",
"advancedSettings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
}
}
],
"evidenceIds": [
"text"
],
"createdAt": "text",
"updatedAt": "text",
"status": "draft",
"rev": 1,
"error": null,
"prompt": null,
"publish": {
"slug": null,
"publishedAt": null,
"consumerAccess": "private",
"resolvedInputs": [
{
"datasetId": "text",
"versionId": null,
"deltaVersion": 1
}
],
"widgetSnapshot": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"snapshotAt": null,
"snapshotStats": {
"requested": 1,
"resolved": 1,
"omitted": 1,
"timedOut": true,
"bytes": 1
}
}
}
}Returns the report by id from platform MongoDB. Must belong to the workspace.
An API key (pk_...) created on the Organisation API page, or an OAuth access token. Every operation requires one.
Path parameter: wsId
123Path parameter: id
123Successful response
Unauthorized
Forbidden
Not Found
Too Many Requests; the response carries Retry-After
Internal Server Error
GET /api/v1/workspaces/{wsId}/reports/{id} HTTP/1.1
Host: sandbox.rootcause.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"id": null,
"workspaceId": "text",
"organisationId": "text",
"title": "text",
"markdown": "text",
"widgets": [
{
"id": "text",
"evidenceId": "text",
"type": "text",
"explorerConfig": {
"id": "text",
"dataView": "[Circular Reference]",
"operations": "[Circular Reference]",
"additionalSources": [
{
"id": "text",
"type": "text",
"name": null,
"conceptIds": [
"text"
],
"conceptVersions": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"version": {
"kind": "text"
}
}
],
"inlineData": {
"columns": [
{
"name": "text",
"type": "None"
}
],
"rows": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
],
"downsampled": true,
"totalRows": null
},
"series": {
"labels": [
"text"
],
"datasets": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"meta": {
"version": 1,
"xField": null,
"columns": [
{
"name": "text",
"type": "text"
}
],
"series": [
{
"label": "text",
"yField": null,
"aggregation": null
}
],
"categoriesTotal": null,
"categoriesShown": null,
"otherFolded": null,
"sortBy": null,
"sortType": null,
"binCount": null,
"linksTotal": null,
"linksShown": null,
"pointsTotal": null,
"pointsShown": null,
"rowsScanned": null,
"rowsWithoutCategory": null,
"downsampled": null,
"summary": "",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
},
"xSelection": "text",
"traces": [
{
"id": "text",
"name": "text",
"ySelection": [
"text"
],
"yAxisPosition": "left",
"color": null,
"visible": true,
"chartType": "text",
"options": {
"stacked": false,
"aggregation": "sum"
}
}
],
"config": {
"responsive": true,
"chartTitle": null,
"dataPoints": -1,
"dataDisplayOrder": "fromStart",
"sortBy": "none",
"sortType": "ascending",
"advancedSettings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
}
}
],
"evidenceIds": [
"text"
],
"createdAt": "text",
"updatedAt": "text",
"status": "draft",
"rev": 1,
"error": null,
"prompt": null,
"publish": {
"slug": null,
"publishedAt": null,
"consumerAccess": "private",
"resolvedInputs": [
{
"datasetId": "text",
"versionId": null,
"deltaVersion": 1
}
],
"widgetSnapshot": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"snapshotAt": null,
"snapshotStats": {
"requested": 1,
"resolved": 1,
"omitted": 1,
"timedOut": true,
"bytes": 1
}
}
}
}Deletes the report from platform MongoDB. Requires reports:write and full permission.
An API key (pk_...) created on the Organisation API page, or an OAuth access token. Every operation requires one.
Path parameter: wsId
123Path parameter: id
123No Content
No content
Unauthorized
Forbidden
Not Found
Too Many Requests; the response carries Retry-After
Internal Server Error
DELETE /api/v1/workspaces/{wsId}/reports/{id} HTTP/1.1
Host: sandbox.rootcause.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Updates title, description, and/or markdown. Only these fields are writable. updatedAt is set automatically. Widgets and evidence are typically managed by the UI or other flows.
An API key (pk_...) created on the Organisation API page, or an OAuth access token. Every operation requires one.
Path parameter: wsId
123Path parameter: id
123Successful response
Bad Request
Unauthorized
Forbidden
Not Found
Unprocessable Entity
Too Many Requests; the response carries Retry-After
Internal Server Error
PATCH /api/v1/workspaces/{wsId}/reports/{id} HTTP/1.1
Host: sandbox.rootcause.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"title": "text",
"description": null,
"markdown": "text"
}{
"data": {
"id": null,
"workspaceId": "text",
"organisationId": "text",
"title": "text",
"markdown": "text",
"widgets": [
{
"id": "text",
"evidenceId": "text",
"type": "text",
"explorerConfig": {
"id": "text",
"dataView": "[Circular Reference]",
"operations": "[Circular Reference]",
"additionalSources": [
{
"id": "text",
"type": "text",
"name": null,
"conceptIds": [
"text"
],
"conceptVersions": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"version": {
"kind": "text"
}
}
],
"inlineData": {
"columns": [
{
"name": "text",
"type": "None"
}
],
"rows": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
],
"downsampled": true,
"totalRows": null
},
"series": {
"labels": [
"text"
],
"datasets": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"meta": {
"version": 1,
"xField": null,
"columns": [
{
"name": "text",
"type": "text"
}
],
"series": [
{
"label": "text",
"yField": null,
"aggregation": null
}
],
"categoriesTotal": null,
"categoriesShown": null,
"otherFolded": null,
"sortBy": null,
"sortType": null,
"binCount": null,
"linksTotal": null,
"linksShown": null,
"pointsTotal": null,
"pointsShown": null,
"rowsScanned": null,
"rowsWithoutCategory": null,
"downsampled": null,
"summary": "",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
},
"xSelection": "text",
"traces": [
{
"id": "text",
"name": "text",
"ySelection": [
"text"
],
"yAxisPosition": "left",
"color": null,
"visible": true,
"chartType": "text",
"options": {
"stacked": false,
"aggregation": "sum"
}
}
],
"config": {
"responsive": true,
"chartTitle": null,
"dataPoints": -1,
"dataDisplayOrder": "fromStart",
"sortBy": "none",
"sortType": "ascending",
"advancedSettings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
}
}
],
"evidenceIds": [
"text"
],
"createdAt": "text",
"updatedAt": "text",
"status": "draft",
"rev": 1,
"error": null,
"prompt": null,
"publish": {
"slug": null,
"publishedAt": null,
"consumerAccess": "private",
"resolvedInputs": [
{
"datasetId": "text",
"versionId": null,
"deltaVersion": 1
}
],
"widgetSnapshot": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"snapshotAt": null,
"snapshotStats": {
"requested": 1,
"resolved": 1,
"omitted": 1,
"timedOut": true,
"bytes": 1
}
}
}
}Last updated

