Need more detail? Connect your coding agent to the full docs.

Skip to Content
AMIRILDocs
/

Dashboards

The Dashboards routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.

GET
/api/dashboards

Shared, auto-built, and your own private dashboards, most recently updated first, each with the person who made it.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Response Body

Dashboards

application/json
  1. response
dashboards*array<>
Example Request
curl -X GET 'https://api.amiril.ai/api/dashboards'
Example Response200
{  "dashboards": [    {      "id": "string",      "workspace": "string",      "name": "string",      "scope": {        "kind": "workspace"      },      "origin": "user",      "visibility": "private",      "ownedByViewer": true,      "widgets": [        {          "id": "string",          "type": "constellation",          "title": "string",          "filterState": {            "grain": "runs",            "system": "string",            "agents": [              "string"            ],            "window": {              "kind": "preset",              "preset": "1h"            },            "tools": [              "string"            ],            "detectionType": "all",            "rank": "strongest",            "minScore": 0,            "extremes": true,            "stoodOut": false,            "sharedIdValue": "string",            "cluster": null,            "trackedFieldFilters": [              {                "fieldId": "string",                "negated": false,                "value": "string"              }            ],            "split": true,            "reviewed": "hide",            "sort": {              "column": "score",              "dir": "asc"            },            "cols": [              "string"            ]          },          "displaySpec": {            "rows": 3,            "chartMode": "area",            "windowOverride": "1h",            "groupByField": "string",            "constellation": {              "preset": "string",              "levels": {                "property1": "off",                "property2": "off"              },              "chain": [                "centroidSeparation"              ],              "strengths": {                "property1": 0,                "property2": 0              },              "heightMode": "score",              "anomalyCap": 10,              "normalCap": 1000            }          },          "layout": {            "x": 0,            "y": 0,            "w": 1,            "h": 1          }        }      ],      "createdAt": "string",      "updatedAt": "string",      "owner": {        "id": "string",        "name": "string",        "email": "string"      }    }  ]}

Create a dashboard

POST
/api/dashboards

Scope is set at creation and immutable. Starts with no widgets, private to you.

Needs a full access token. A read-only token is refused.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Request Body

application/json
  1. body
name*string
Length1 <= length <= 80
scope*||

Response Body

The created dashboard

application/json
  1. response
id*string
workspace*string
name*string|null
scope*||
origin*string
Value in"user""auto"
visibility*string
Value in"private""shared"
ownedByViewer*boolean
widgets*array<>
createdAt*string
updatedAt*string
Example Request
curl -X POST 'https://api.amiril.ai/api/dashboards' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "scope": {    "kind": "workspace"  }}'
Example Response200
{  "id": "string",  "workspace": "string",  "name": "string",  "scope": {    "kind": "workspace"  },  "origin": "user",  "visibility": "private",  "ownedByViewer": true,  "widgets": [    {      "id": "string",      "type": "constellation",      "title": "string",      "filterState": {        "grain": "runs",        "system": "string",        "agents": [          "string"        ],        "window": {          "kind": "preset",          "preset": "1h"        },        "tools": [          "string"        ],        "detectionType": "all",        "rank": "strongest",        "minScore": 0,        "extremes": true,        "stoodOut": false,        "sharedIdValue": "string",        "cluster": null,        "trackedFieldFilters": [          {            "fieldId": "string",            "negated": false,            "value": "string"          }        ],        "split": true,        "reviewed": "hide",        "sort": {          "column": "score",          "dir": "asc"        },        "cols": [          "string"        ]      },      "displaySpec": {        "rows": 3,        "chartMode": "area",        "windowOverride": "1h",        "groupByField": "string",        "constellation": {          "preset": "string",          "levels": {            "property1": "off",            "property2": "off"          },          "chain": [            "centroidSeparation"          ],          "strengths": {            "property1": 0,            "property2": 0          },          "heightMode": "score",          "anomalyCap": 10,          "normalCap": 1000        }      },      "layout": {        "x": 0,        "y": 0,        "w": 1,        "h": 1      }    }  ],  "createdAt": "string",  "updatedAt": "string"}

One dashboard

GET
/api/dashboards/{dashboardId}

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

dashboardId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

The dashboard

application/json
  1. response
id*string
workspace*string
name*string|null
scope*||
origin*string
Value in"user""auto"
visibility*string
Value in"private""shared"
ownedByViewer*boolean
widgets*array<>
createdAt*string
updatedAt*string
Example Request
curl -X GET 'https://api.amiril.ai/api/dashboards/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "string",  "workspace": "string",  "name": "string",  "scope": {    "kind": "workspace"  },  "origin": "user",  "visibility": "private",  "ownedByViewer": true,  "widgets": [    {      "id": "string",      "type": "constellation",      "title": "string",      "filterState": {        "grain": "runs",        "system": "string",        "agents": [          "string"        ],        "window": {          "kind": "preset",          "preset": "1h"        },        "tools": [          "string"        ],        "detectionType": "all",        "rank": "strongest",        "minScore": 0,        "extremes": true,        "stoodOut": false,        "sharedIdValue": "string",        "cluster": null,        "trackedFieldFilters": [          {            "fieldId": "string",            "negated": false,            "value": "string"          }        ],        "split": true,        "reviewed": "hide",        "sort": {          "column": "score",          "dir": "asc"        },        "cols": [          "string"        ]      },      "displaySpec": {        "rows": 3,        "chartMode": "area",        "windowOverride": "1h",        "groupByField": "string",        "constellation": {          "preset": "string",          "levels": {            "property1": "off",            "property2": "off"          },          "chain": [            "centroidSeparation"          ],          "strengths": {            "property1": 0,            "property2": 0          },          "heightMode": "score",          "anomalyCap": 10,          "normalCap": 1000        }      },      "layout": {        "x": 0,        "y": 0,        "w": 1,        "h": 1      }    }  ],  "createdAt": "string",  "updatedAt": "string"}

Delete a dashboard

DELETE
/api/dashboards/{dashboardId}

An auto-built dashboard is rebuilt while its agent or Agent System exists.

Needs a full access token. A read-only token is refused.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

dashboardId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

Deleted

application/json
  1. response
ok*boolean
Example Request
curl -X DELETE 'https://api.amiril.ai/api/dashboards/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "ok": true}
PUT
/api/dashboards/{dashboardId}

Optimistic concurrency: a stale baseUpdatedAt is rejected with a version conflict unless force is set.

Needs a full access token. A read-only token is refused.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

dashboardId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Request Body

application/json
  1. body
name?|null
widgets*array<>
Itemsitems <= 60
baseUpdatedAt*string
force?boolean

Response Body

The saved dashboard

application/json
  1. response
id*string
workspace*string
name*string|null
scope*||
origin*string
Value in"user""auto"
visibility*string
Value in"private""shared"
ownedByViewer*boolean
widgets*array<>
createdAt*string
updatedAt*string
Example Request
curl -X PUT 'https://api.amiril.ai/api/dashboards/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{  "widgets": [    {      "id": "string",      "type": "constellation",      "title": "string",      "filterState": {        "grain": "runs",        "system": "string",        "agents": [          "string"        ],        "window": {          "kind": "preset",          "preset": "1h"        },        "tools": [          "string"        ],        "detectionType": "all",        "rank": "strongest",        "minScore": 0,        "extremes": true,        "sharedIdValue": "string",        "trackedFieldFilters": [          {            "fieldId": "string",            "negated": false,            "value": "string"          }        ],        "split": true,        "reviewed": "hide",        "sort": {          "column": "score",          "dir": "asc"        },        "cols": [          "string"        ]      },      "displaySpec": {},      "layout": {        "x": 0,        "y": 0,        "w": 1,        "h": 1      }    }  ],  "baseUpdatedAt": "string"}'
Example Response
{  "id": "string",  "workspace": "string",  "name": "string",  "scope": {    "kind": "workspace"  },  "origin": "user",  "visibility": "private",  "ownedByViewer": true,  "widgets": [    {      "id": "string",      "type": "constellation",      "title": "string",      "filterState": {        "grain": "runs",        "system": "string",        "agents": [          "string"        ],        "window": {          "kind": "preset",          "preset": "1h"        },        "tools": [          "string"        ],        "detectionType": "all",        "rank": "strongest",        "minScore": 0,        "extremes": true,        "stoodOut": false,        "sharedIdValue": "string",        "cluster": null,        "trackedFieldFilters": [          {            "fieldId": "string",            "negated": false,            "value": "string"          }        ],        "split": true,        "reviewed": "hide",        "sort": {          "column": "score",          "dir": "asc"        },        "cols": [          "string"        ]      },      "displaySpec": {        "rows": 3,        "chartMode": "area",        "windowOverride": "1h",        "groupByField": "string",        "constellation": {          "preset": "string",          "levels": {            "property1": "off",            "property2": "off"          },          "chain": [            "centroidSeparation"          ],          "strengths": {            "property1": 0,            "property2": 0          },          "heightMode": "score",          "anomalyCap": 10,          "normalCap": 1000        }      },      "layout": {        "x": 0,        "y": 0,        "w": 1,        "h": 1      }    }  ],  "createdAt": "string",  "updatedAt": "string"}