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

# CompanyApiKey

> A company API key. Its token is shown once, by `createCompanyApiKey`.



**Kind**: `object`

## Fields

**`id`**: `ID!`

The key's id, as `revokeCompanyApiKey` takes it.

---

**`name`**: `String`

The key's name.

---

**`capabilities`**: `[String!]`

What the key may do, such as `workspaces:list`, sorted.

---

**`workspaces`**: `WorkspaceConnection`

The workspaces the key can reach that the calling key can reach too, ordered by uid. Empty once revoked.

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

---

**`createdAt`**: `DateTime`

When the key was created.

---

**`expiresAt`**: `DateTime`

When the key stops working; null when it never expires.

---

**`lastUsedAt`**: `DateTime`

When the key last made a request; null if never.

---

**`revokedAt`**: `DateTime`

When the key was revoked; null while it works.



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