> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wisdom.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Dashboards

The `dashboards` query retrieves a list of dashboards accessible to the current user, with optional filtering by domain and owner.

## Signature

```graphql theme={null}
dashboards(scope: DashboardScope!, domainId: String, ownerId: String): DashboardsResponse!
```

## Arguments

**scope** `DashboardScope!` *required*

The access level to filter dashboards by. See [DashboardScope](https://docs.wisdom.ai/integrations/graphql-api/objects/dashboard-scope.md).

**domainId** `String`

Optional filter to retrieve only dashboards associated with a specific domain.

**ownerId** `String`

Optional filter to retrieve only dashboards owned by a specific user.

## Response

Returns a `DashboardsResponse` object containing a list of accessible dashboards. See [DashboardsResponse](https://docs.wisdom.ai/integrations/graphql-api/objects/dashboards-response.md) for the schema.

## Usage example

This example shows how to retrieve all dashboards with viewer access:

```graphql theme={null}
query GetDashboards($scope: DashboardScope!) {
  dashboards(scope: $scope) {
    nodes {
      id
      name
      createdAt
      domains {
        id
        name
      }
      owner {
        id
        displayName
      }
      accessLevel
    }
  }
}
```

```bash Request theme={null}
curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <jwt_token>" \
  -d '{
    "query": "query GetDashboards($scope: DashboardScope!) { dashboards(scope: $scope) { nodes { id name createdAt domains { id name } owner { id displayName } accessLevel } } }",
    "variables": {
      "scope": "VIEWER"
    }
  }' \
  https://{ACCOUNT}.askwisdom.ai/graphql
```

```json Response theme={null}
{
  "data": {
    "dashboards": {
      "nodes": [
        {
          "id": "dashboard_123456789",
          "name": "Sales Performance Dashboard",
          "createdAt": "2024-01-15T10:30:00Z",
          "domains": [
            {
              "id": "domain_987654321",
              "name": "Sales Analytics"
            }
          ],
          "owner": {
            "id": "user_456789123",
            "displayName": "John Doe"
          },
          "accessLevel": "EDITOR"
        }
      ]
    }
  }
}
```

## Next steps

> [card] [Dashboard Query](https://docs.wisdom.ai/integrations/graphql-api/queries/dashboard/dashboard.md)
>
> Retrieve a specific dashboard

> [card] [Create Dashboard](https://docs.wisdom.ai/integrations/graphql-api/mutations/dashboard/create-dashboard.md)
>
> Create a new dashboard

> [card] [DashboardsResponse Object](https://docs.wisdom.ai/integrations/graphql-api/objects/dashboards-response.md)
>
> Complete response schema


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.