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

# CreateApiKeyInput

> A new API key for the workspace the calling key targets: a workspace key's own, or the one in the `X-Paradime-Workspace` header. It gets no more than the calling key has: only capability groups the calling key holds, and no later expiry.



**Kind**: `input`

## Fields

**`name`**: `String!` (required)

The key's name, unique among the workspace's working API keys.

---

**`capabilityGroups`**: `[ApiKeyCapabilityGroup!]!` (required)

What the key may do. Each group must be one the calling key holds.

---

**`expiresAt`**: `DateTime`

When the key stops working. Required when the calling key expires, and no later than it; leave it out for a key that never expires.



## 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)
- [Administration API](https://docs.paradime.io/developers/graphql-api/admin-api/index.md)
- [API Keys](https://docs.paradime.io/developers/api-keys.md)
- [Administration API: Workspaces](https://docs.paradime.io/developers/graphql-api/admin-api/workspaces.md)


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