List widget types
GET/api/v2/workspaces/{slug}/dashboards/widget-types/
List every chart type a dashboard can hold, the chart_model values each one accepts, and whether the workspace's plan includes it. The list comes from the same registry that widget create and chart reads use, so it always matches what they accept.
The response isn't paginated. The config each chart type needs is in Chart types.
| Field | Description |
|---|---|
chart_type | The value to send as chart_type. |
name | Display name. |
chart_models | The chart_model values it accepts. A chart type without variants lists ["BASIC"]. |
available | false when the plan doesn't include it. Creating, updating or charting a widget of this type then returns 402. |
Path parameters
slug:requiredstringThe workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.
Scopes
workspaces.dashboards:read, or the broad read scope.
Errors
| Status | Code | Cause |
|---|---|---|
401 | unauthorized | Missing or invalid credentials. |
402 | payment_required | Dashboards aren't included in the workspace's plan, or you aren't a member of the workspace. |
403 | forbidden | Guests can't use dashboards, or your token lacks the scope. |
404 | not_found | No such workspace, or it's outside your tenant. |
406 | not_acceptable | The Accept header asks for a representation the API can't produce. |
429 | rate_limited | Throttled. Wait for the Retry-After header's seconds before retrying. |
List widget types
bash
curl -X GET \
"https://api.plane.so/api/v2/workspaces/my-team/dashboards/widget-types/" \
-H "X-Api-Key: $PLANE_API_KEY"python
import requests
response = requests.get(
"https://api.plane.so/api/v2/workspaces/my-team/dashboards/widget-types/",
headers={"X-Api-Key": "your-api-key"},
)
print(response.json())javascript
const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/dashboards/widget-types/",
{
method: "GET",
headers: {
"X-Api-Key": "your-api-key",
},
},
);
const data = await response.json();Response200
json
{
"data": [
{
"chart_type": "BAR_CHART",
"name": "Bar Chart",
"chart_models": ["BASIC", "STACKED", "GROUPED"],
"available": true
},
{
"chart_type": "LINE_CHART",
"name": "Line Chart",
"chart_models": ["BASIC", "MULTI_LINE"],
"available": true
},
{
"chart_type": "AREA_CHART",
"name": "Area Chart",
"chart_models": ["BASIC", "STACKED", "COMPARISON"],
"available": true
},
{
"chart_type": "WORK_ITEMS_TABLE",
"name": "Work Items Table",
"chart_models": ["BASIC"],
"available": true
}
]
}
