# CreateApiKeyPayload (/api/reference/objects/create-api-key-payload)

The new key and its secret.

```graphql
type CreateApiKeyPayload {
  apiKey: ApiKey!
  secret: String!
}
```

### Fields [#fields]

#### [`CreateApiKeyPayload.apiKey`](#api-key) · [`ApiKey!`](/api/reference/objects/api-key) `non-null` `object` [#api-key]
The key as it will be listed.

#### [`CreateApiKeyPayload.secret`](#secret) · [`String!`](/api/reference/scalars/string) `non-null` `scalar` [#secret]
The secret a program sends to act as the caller, in the `x-api-key` header. It is shown only here: Kith ATS keeps no copy it can show again.

### Returned By [#returned-by]

[`createApiKey`](/api/reference/mutations/create-api-key)  `mutation`