Skip to content

Get a widget ​

GET/api/v2/workspaces/{slug}/dashboards/{dashboard_id}/widgets/{pk}/

A widget is one chart on a dashboard. Get one widget's settings and grid position. The data it displays is at Get a widget's chart data.

Path parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

dashboard_id:requiredstring (uuid)

The dashboard the widget is on.

pk:requiredstring (uuid)

The widget ID. A widget on a different dashboard returns 404.

Response shaping ​

fields:optionalstring

Comma-separated list of fields to return. Fields you don't request are left out of the response instead of coming back as null. id is always included. Pass all to get every requestable field. An unknown field name returns 400. See Sparse fields.

Requestable here: chart_model, chart_type, config, created_at, created_by_id, dashboard_id, filters, group_by, height, id, last_used_filter, name, pql_filters, rich_filters, updated_at, updated_by_id, width, x_axis_coord, x_axis_date_grouping, x_axis_property, y_axis_coord, y_axis_metric.

Scopes ​

workspaces.dashboards.widgets:read, or the broad read scope.

Errors ​

StatusCodeCause
401unauthorizedMissing or invalid credentials.
402payment_requiredDashboards aren't included in the workspace's plan, or you aren't a member of the workspace.
403forbiddenGuests can't use dashboards, or your token lacks the scope.
404not_foundThe dashboard or widget doesn't exist, you can't see the dashboard, or the widget is on a different dashboard.
406not_acceptableThe Accept header asks for a representation the API can't produce.
429rate_limitedThrottled. Wait for the Retry-After header's seconds before retrying.
Get a widget
bash
curl -X GET \
  "https://api.plane.so/api/v2/workspaces/my-team/dashboards/05186e3b-94a3-49b0-8403-9307d292daea/widgets/0bda418f-3e9a-47bd-8e70-faa04e1f9540/" \
  -H "X-Api-Key: $PLANE_API_KEY"
Response200
json
{
  "id": "0bda418f-3e9a-47bd-8e70-faa04e1f9540",
  "dashboard_id": "05186e3b-94a3-49b0-8403-9307d292daea",
  "name": "Bar Chart",
  "chart_type": "BAR_CHART",
  "chart_model": "GROUPED",
  "config": {
    "group_by": "STATE_GROUPS",
    "y_axis_metric": "WORK_ITEM_COUNT",
    "x_axis_property": "PRIORITY",
    "x_axis_date_grouping": null
  },
  "x_axis_property": "PRIORITY",
  "x_axis_date_grouping": null,
  "y_axis_metric": "WORK_ITEM_COUNT",
  "group_by": "STATE_GROUPS",
  "height": 4,
  "width": 6,
  "x_axis_coord": 0,
  "y_axis_coord": 0,
  "filters": {},
  "pql_filters": {
    "json": {},
    "stripped": ""
  },
  "rich_filters": {},
  "last_used_filter": "rich_filters",
  "created_at": "2026-11-16T15:21:27.804027Z",
  "updated_at": "2026-11-16T15:21:35.255170Z",
  "created_by_id": "a5706ff6-df7d-4dac-947a-0a4fe14b6ed8",
  "updated_by_id": "a5706ff6-df7d-4dac-947a-0a4fe14b6ed8"
}
Response404
json
{
  "type": "not_found",
  "code": "not_found",
  "detail": "The requested resource was not found."
}