# MintApiKeyInput

input type

Create-input for mintApiKey.

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `caption` | [String](/types/#scalars) | no | Optional display caption; omitted ⇒ 'api key minted by <user caption>'. |
| `descriptors` | [RoleDescriptorInput](/types/RoleDescriptorInput/) `[RoleDescriptorInput!]!` | yes | The allow/disallow descriptor set. IMMUTABLE after minting. |
| `expiresAt` | [String](/types/#scalars) `String!` | yes | The mandatory expiry instant — at most 12 months out. |

## Used by

- [mintApiKey](/reference/system-and-integration-setup/mintApiKey/)
