# createApiKey (/api/reference/mutations/create-api-key)

Make an API key for the caller, in the caller's workspace. The payload holds the key's secret, which is shown this once: store it straight away. Every call makes another key.

```graphql
createApiKey(
  input: CreateApiKeyInput!
): CreateApiKeyPayload!
```

### Arguments [#arguments]

#### [`createApiKey.input`](#input) · [`CreateApiKeyInput!`](/api/reference/inputs/create-api-key-input) `non-null` `input` [#input]
What to call the new key.

### Type [#type]

#### [`CreateApiKeyPayload`](/api/reference/objects/create-api-key-payload) `object` [#createapikeypayload-object]
The new key and its secret.