# Dashboards

Dashboards, read only: list and search them, read one, and list its gadgets with their kind, place and configuration (as Jira's API, no gadget data).

## List and search dashboards

`GET /orgs/{org}/dashboards`

Scope: `dashboards:read`

The organisation dashboards you can see, as the Dashboards page lists them: the default dashboard first, then by name; cursor paged. Search them by name, owner, or a group or project they are shared with (Jira's Get all dashboards and Search for dashboards). Dashboards in the trash are left out.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]

### Query parameters

- `limit` (integer): How many items a page holds, 1 to 200. [from 1 to 200; default 50]
- `cursor` (string): The next_cursor of the previous page; leave it out for the first page. [at most 1000 characters]
- `count` (string): true adds total, the number of items in the whole list. [one of: true, false]
- `name` (string): Only dashboards whose name has this (any case). [1 to 255 characters]
- `owner` (string (uuid)): Only dashboards this person owns (their id).
- `group` (string (uuid)): Only dashboards shared with this group.
- `project` (string (uuid)): Only dashboards shared with this project (its id).
- `starred` (string): Only the ones you starred. [one of: true, false]
- `fields` (string): Only these fields, comma-separated: id, kind, name, description, layout, is_default, built_in, access, refresh_minutes, filters, project, owner, shares, starred, can_edit, updated_at, trashed_at. id always comes; the fields not asked for are left out, required or not.

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/dashboards" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "items": [
    {
      "id": "0f5d3c2b-8a1e-4f6d-9c7b-2e4a6b8d0c1f",
      "kind": "dashboard",
      "name": "Release health",
      "description": "Open bugs and this week's work.",
      "layout": "two",
      "is_default": false,
      "built_in": null,
      "access": null,
      "refresh_minutes": 15,
      "filters": null,
      "project": null,
      "owner": {
        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
        "name": "Priya Shah"
      },
      "shares": [
        {
          "access": "viewer",
          "kind": "organisation",
          "id": null,
          "name": null
        }
      ],
      "starred": true,
      "can_edit": true,
      "updated_at": "2026-12-01T09:30:00.000Z",
      "trashed_at": null
    }
  ],
  "next_cursor": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## Get a dashboard

`GET /orgs/{org}/dashboards/{dashboard}`

Scope: `dashboards:read`

A dashboard you can see (an organisation dashboard, or a project's report dashboard), with who it is shared with. Its gadgets are listGadgets.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `dashboard` (string (uuid), required)

### Query parameters

- `fields` (string): Only these fields, comma-separated: id, kind, name, description, layout, is_default, built_in, access, refresh_minutes, filters, project, owner, shares, starred, can_edit, updated_at, trashed_at. id always comes; the fields not asked for are left out, required or not.

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/dashboards/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "id": "0f5d3c2b-8a1e-4f6d-9c7b-2e4a6b8d0c1f",
  "kind": "dashboard",
  "name": "Release health",
  "description": "Open bugs and this week's work.",
  "layout": "two",
  "is_default": false,
  "built_in": null,
  "access": null,
  "refresh_minutes": 15,
  "filters": null,
  "project": null,
  "owner": {
    "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
    "name": "Priya Shah"
  },
  "shares": [
    {
      "access": "viewer",
      "kind": "organisation",
      "id": null,
      "name": null
    }
  ],
  "starred": true,
  "can_edit": true,
  "updated_at": "2026-12-01T09:30:00.000Z",
  "trashed_at": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).

## List a dashboard's gadgets

`GET /orgs/{org}/dashboards/{dashboard}/gadgets`

Scope: `dashboards:read`

The gadgets on a dashboard you can see, in their columns' order, with each one's kind, place and configuration, as the dashboard page lays them out (Jira's Get gadgets). Filter by gadget ids or kinds. The gadgets' data isn't served, as in Jira's API. Cursor paged (a dashboard holds at most 20 gadgets, so one page holds them by default).

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `dashboard` (string (uuid), required)

### Query parameters

- `limit` (integer): How many items a page holds, 1 to 200. [from 1 to 200; default 50]
- `cursor` (string): The next_cursor of the previous page; leave it out for the first page. [at most 1000 characters]
- `count` (string): true adds total, the number of items in the whole list. [one of: true, false]
- `id` (string): Only these gadgets: ids, separated by commas. [at most 800 characters]
- `kind` (string): Only gadgets of these kinds, separated by commas. [at most 800 characters]

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/dashboards/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/gadgets" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "items": [
    {
      "id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
      "kind": "pie_chart",
      "title": "",
      "column": 0,
      "row": 0,
      "width": 1,
      "colour": null,
      "configuration": {
        "source": {
          "kind": "project",
          "id": "3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a"
        },
        "statistic": "status"
      },
      "updated_at": "2026-12-01T09:30:00.000Z"
    }
  ],
  "next_cursor": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).
