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

# POST /kubeconfig-generate

`POST /kubeconfig-generate`

## 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.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
