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

# tenantScopes

> Lists the scopes a tenant-level API key can be given. Pass their raw ids in `scopeIds`.



**query** `tenantScopes(after: String, before: String, first: Int, last: Int): TenantScopesConnection`

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

## Returns

`TenantScopesConnection`

**`edges`**: `[TenantScopesEdge!]`

A list of edges.

---

**`nodes`**: `[Scope!]`

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 TenantScopes {
  tenantScopes {
    edges {
      cursor
      node {
        description
        id
        key
      }
    }
    nodes {
      description
      id
      key
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "tenantScopes": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "description": "string",
            "id": "id",
            "key": "string"
          }
        }
      ],
      "nodes": [
        {
          "description": "string",
          "id": "id",
          "key": "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.