Skip to contentSkip to page list

Docs

List dashboards

Lists the dashboards of the key's project, each with how many widgets it holds.

GET/api/v1/dashboards
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/dashboards"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,}​response = requests.get(    origin + path,    headers=headers,)print(response.json())

The project's dashboards

application/json · Generated from schema

{  "data": [    {      "id": "string",      "name": "string",      "description": "string",      "scope": "PRIVATE",      "createdById": "string",      "createdAt": "string",      "updatedAt": "string",      "platformUrl": "string",      "widgetCount": 0    }  ]}
api-reference/dashboards/list-dashboards

Authorization

X-Auth-Tokenstringheaderrequired

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Responses

200

The project's dashboards

application/json

dataobject[]required
idstringrequired
At least 1 character
namestringrequired
At least 1 characterUp to 255 characters
descriptionstring | nullrequired
scopestringrequired
One of"PRIVATE""PROJECT""ORGANIZATION"
createdByIdstring | nullrequired
createdAtstringrequired
updatedAtstringrequired
platformUrlstringrequired
widgetCountintegerrequired
Minimum 0Maximum 9007199254740991
400

Bad Request

application/json

typestringrequired
codestringrequired
messagestringrequired
retryablebooleanrequired
metaobject
trace_idstring
span_idstring
traceobject
traceIdstring
spanIdstring
traceUrlstring
logsUrlstring
tipsstring[]
docs_urlstring
faultstring
One of"customer""platform""provider""presumed_platform"
reasonsany[]
401

Unauthorized

application/json

typestringrequired
codestringrequired
messagestringrequired
retryablebooleanrequired
metaobject
trace_idstring
span_idstring
traceobject
traceIdstring
spanIdstring
traceUrlstring
logsUrlstring
tipsstring[]
docs_urlstring
faultstring
One of"customer""platform""provider""presumed_platform"
reasonsany[]
403

Forbidden

application/json

typestringrequired
codestringrequired
messagestringrequired
retryablebooleanrequired
metaobject
trace_idstring
span_idstring
traceobject
traceIdstring
spanIdstring
traceUrlstring
logsUrlstring
tipsstring[]
docs_urlstring
faultstring
One of"customer""platform""provider""presumed_platform"
reasonsany[]
500

Internal Server Error

application/json

typestringrequired
codestringrequired
messagestringrequired
retryablebooleanrequired
metaobject
trace_idstring
span_idstring
traceobject
traceIdstring
spanIdstring
traceUrlstring
logsUrlstring
tipsstring[]
docs_urlstring
faultstring
One of"customer""platform""provider""presumed_platform"
reasonsany[]

Documentation