---
title: "CreateApiKeyPayload"
url: "https://nov18-dev.movespot.fyi/apis/konnect-centrally-managed-consumers-admin-api-0/versions/84f5e371-6d0e-45b1-b943-fe4dc428c317/schemas/CreateApiKeyPayload"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-centrally-managed-consumers-admin-api-0/versions/84f5e371-6d0e-45b1-b943-fe4dc428c317.md

# CreateApiKeyPayload

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Konnect Centrally Managed Consumers admin api
  version: 0.0.1
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    CreateApiKeyPayloadNew:
      type: object
      properties:
        type:
          type: string
          default: new
          enum:
            - new
        tags:
          $ref: "#/components/schemas/Tags"
      additionalProperties: false
      required:
        - type
    CreateApiKeyPayloadLegacy:
      type: object
      properties:
        type:
          type: string
          default: legacy
          enum:
            - legacy
        secret:
          description: secret to be created. Must be unique within the realm. If not
            specified a secret will be automatically generated.
          type: string
          x-sensitive: true
        tags:
          $ref: "#/components/schemas/Tags"
      additionalProperties: false
      required:
        - type
        - secret
    Tags:
      type: array
      items:
        type: string
      uniqueItems: true
    CreateApiKeyPayload:
      oneOf:
        - $ref: "#/components/schemas/CreateApiKeyPayloadNew"
        - $ref: "#/components/schemas/CreateApiKeyPayloadLegacy"
```
