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

# widgets

> Returns a paginated list of landing page widgets for the current tenant, ordered by position.



**query** `widgets(after: String, before: String, first: Int, last: Int, order: [WidgetSortInput!], where: WidgetFilterInput): WidgetsConnection`

## Arguments

**`after`**: `String`

Returns the elements in the list that come after the specified cursor.

---

**`before`**: `String`

Returns the elements in the list that come before the specified cursor.

---

**`first`**: `Int`

Returns the first _n_ elements from the list.

---

**`last`**: `Int`

Returns the last _n_ elements from the list.

---

**`order`**: `[WidgetSortInput!]`

---

**`where`**: `WidgetFilterInput`

## Returns

`WidgetsConnection`

**`edges`**: `[WidgetsEdge!]`

A list of edges.

---

**`nodes`**: `[Widget!]`

A flattened list of the nodes.

---

**`pageInfo`**: `PageInfo!`

Information to aid in pagination.

---

**`totalCount`**: `Int!`

Identifies the total count of items in the connection.

## Examples

```graphql Query
query Widgets {
  widgets {
    edges {
      cursor
      node {
        createdAt
        createdBy
        id
        itemType
        lastModified
        pinnedItems {
          __typename
          ... on PinnedCardDefinition {
            __typename
          }
        }
      }
    }
    nodes {
      createdAt
      createdBy
      id
      itemType
      lastModified
      pinnedItems {
        __typename
        ... on PinnedCardDefinition {
          __typename
        }
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "widgets": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "createdAt": "value",
            "createdBy": "value",
            "id": "id",
            "itemType": "CARD_DEFINITIONS",
            "lastModified": "value",
            "pinnedItems": [
              {
                "__typename": "PinnedCardDefinition"
              }
            ]
          }
        }
      ],
      "nodes": [
        {
          "createdAt": "value",
          "createdBy": "value",
          "id": "id",
          "itemType": "CARD_DEFINITIONS",
          "lastModified": "value",
          "pinnedItems": [
            {
              "__typename": "PinnedCardDefinition"
            }
          ]
        }
      ],
      "pageInfo": {
        "endCursor": "string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string"
      },
      "totalCount": 1
    }
  }
}
```


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