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

# companyApiKeys

> Every active company API key of the company, never their tokens. Needs a company API key with `api_keys:read`.



**query** `companyApiKeys(first: Int, after: String): CompanyApiKeyConnection!`

## Arguments

**`first`**: `Int` = 100

How many to return: 100 by default, at most 500. 0 returns only `totalCount`.

---

**`after`**: `String`

The `endCursor` of the previous page.

## Returns

`CompanyApiKeyConnection!`

**`edges`**: `[CompanyApiKeyEdge!]!`

This page, in order.

---

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

Where this page sits in the list.

---

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

How many there are across all pages.

## Examples

```graphql Query
query CompanyApiKeys {
  companyApiKeys {
    edges {
      cursor
      node {
        id
        name
        capabilities
        workspaces {
          __typename
        }
        createdAt
        expiresAt
      }
    }
    pageInfo {
      startCursor
      endCursor
      hasNextPage
      hasPreviousPage
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "companyApiKeys": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "id": "id",
            "name": "string",
            "capabilities": [
              "string"
            ],
            "workspaces": {
              "__typename": "WorkspaceConnection"
            },
            "createdAt": "value",
            "expiresAt": "value"
          }
        }
      ],
      "pageInfo": {
        "startCursor": "string",
        "endCursor": "string",
        "hasNextPage": true,
        "hasPreviousPage": true
      },
      "totalCount": 1
    }
  }
}
```


## Related topics

- [Administration API: API keys](https://docs.paradime.io/developers/graphql-api/admin-api/api-keys.md)
- [Administration API: Conventions](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md)
- [API Keys](https://docs.paradime.io/developers/api-keys.md)
- [Administration API](https://docs.paradime.io/developers/graphql-api/admin-api/index.md)
- [Company & Workspace token](https://docs.paradime.io/developers/company-and-workspace-token.md)


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