---
title: "POST /kubeconfig-generate"
method: POST
path: "/kubeconfig-generate"
tags: ["General"]
---

# POST /kubeconfig-generate

`POST /kubeconfig-generate`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/kubeconfig-generate`
- Auth: none declared

## Response `200`

kubeconfigGenerateResponse wraps response body.

- KubeconfigGenerateOutput
  - `conflicted_clusters_names` string[]
  - `data` KubeConfigValue
    - `apiVersion` string
    - `clusters` KubeconfigNamedCluster[]
      - `cluster` KubeconfigCluster
        - `certificate-authority` string: CertificateAuthority is optional and can be omitted if not used.
        - `certificate-authority-data` string
        - `server` string
      - `name` string
    - `contexts` KubeconfigNamedContext[]
      - `context` KubeconfigContext
        - `cluster` string
        - `namespace` string
        - `user` string
      - `name` string
    - `current-context` string
    - `kind` string
    - `users` KubeconfigUser[]
      - `name` string
      - `user` KubeconfigUserExec
        - `exec` KubeconfigExec
          - `apiVersion` string
          - `args` string[]
          - `command` string
          - `interactiveMode` string
  - `errors` string[]

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/account-settings.md) - [All operations](https://skmtc.dev/akeyless/apis/account-settings/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/account-settings/revisions/6beb28d274ac?raw)
