> ## 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.

# apiVersions

> Lists the versions of all the tenant's destinations, in every state. Filter `state` for the usual question, e.g. `where: { state: { eq: PUBLISHED } }`.



**query** `apiVersions(after: String, before: String, first: Int, last: Int, order: [ApiVersionSortInput!], where: ApiVersionFilterInput): ApiVersionsConnection`

## 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`**: `[ApiVersionSortInput!]`

---

**`where`**: `ApiVersionFilterInput`

## Returns

`ApiVersionsConnection`

**`edges`**: `[ApiVersionsEdge!]`

A list of edges.

---

**`nodes`**: `[ApiVersion!]`

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 ApiVersions {
  apiVersions {
    edges {
      cursor
      node {
        allowedOrigins
        applications {
          __typename
        }
        authentication
        cardDefinitions {
          __typename
        }
        clusters {
          __typename
        }
        createdAt
      }
    }
    nodes {
      allowedOrigins
      applications {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
      authentication
      cardDefinitions {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
      clusters {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
      }
      createdAt
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "apiVersions": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "allowedOrigins": [
              "value"
            ],
            "applications": {
              "__typename": "ApplicationsConnection"
            },
            "authentication": "PROTECTED",
            "cardDefinitions": {
              "__typename": "CardDefinitionsConnection"
            },
            "clusters": {
              "__typename": "ClustersConnection"
            },
            "createdAt": "value"
          }
        }
      ],
      "nodes": [
        {
          "allowedOrigins": [
            "value"
          ],
          "applications": {
            "edges": [
              {
                "__typename": "ApplicationsEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "Application"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": 1
          },
          "authentication": "PROTECTED",
          "cardDefinitions": {
            "edges": [
              {
                "__typename": "CardDefinitionsEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "CardDefinition"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": 1
          },
          "clusters": {
            "edges": [
              {
                "__typename": "ClustersEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "Cluster"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            }
          },
          "createdAt": "value"
        }
      ],
      "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.