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

# endpoints

> Lists the endpoints of all the tenant's API versions, whatever the version's state. Filter `apiVersionState` for the live ones, or read `ApiVersion.endpoints` for one version.



**query** `endpoints(after: String, before: String, first: Int, hasPendingChanges: Boolean, last: Int, order: [EndpointSortInput!], where: EndpointFilterInput): EndpointsConnection`

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

---

**`hasPendingChanges`**: `Boolean` = false

True lists only endpoints with pending changes (`pendingContent` not null). False, the default, lists all.

---

**`last`**: `Int`

Returns the last _n_ elements from the list.

---

**`order`**: `[EndpointSortInput!]`

---

**`where`**: `EndpointFilterInput`

## Returns

`EndpointsConnection`

**`edges`**: `[EndpointsEdge!]`

A list of edges.

---

**`nodes`**: `[Endpoint!]`

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 Endpoints {
  endpoints {
    edges {
      cursor
      node {
        activeContent
        apiVersion {
          __typename
        }
        apiVersionId
        cardDefinitions {
          __typename
        }
        description
        displayName
      }
    }
    nodes {
      activeContent
      apiVersion {
        allowedOrigins
        applications {
          __typename
        }
        authentication
        cardDefinitions {
          __typename
        }
        clusters {
          __typename
        }
        createdAt
      }
      apiVersionId
      cardDefinitions {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
      description
      displayName
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "endpoints": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "activeContent": "value",
            "apiVersion": {
              "__typename": "ApiVersion"
            },
            "apiVersionId": "id",
            "cardDefinitions": {
              "__typename": "CardDefinitionsConnection"
            },
            "description": "string",
            "displayName": "string"
          }
        }
      ],
      "nodes": [
        {
          "activeContent": "value",
          "apiVersion": {
            "allowedOrigins": [
              "value"
            ],
            "applications": {
              "__typename": "ApplicationsConnection"
            },
            "authentication": "PROTECTED",
            "cardDefinitions": {
              "__typename": "CardDefinitionsConnection"
            },
            "clusters": {
              "__typename": "ClustersConnection"
            },
            "createdAt": "value"
          },
          "apiVersionId": "id",
          "cardDefinitions": {
            "edges": [
              {
                "__typename": "CardDefinitionsEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "CardDefinition"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": 1
          },
          "description": "string",
          "displayName": "string"
        }
      ],
      "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.