---
title: "GET /api/v1/kubeconfig"
method: GET
path: "/api/v1/kubeconfig"
---

# GET /api/v1/kubeconfig

`GET /api/v1/kubeconfig`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/docs/api/v1/kubeconfig/get.ts> (a function with typed inputs; its response is checked against the schema)

Starts OIDC flow and generates kubeconfig, the generated config
contains OIDC provider authentication info

## Query parameters

- `cluster_id` string
- `project_id` string
- `user_id` string

## Response `200`

Kubeconfig is a clusters kubeconfig

- integer[]

## Other responses

- `default`: errorResponse

---

[API](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api.md) - [All operations](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kubermatic/apis/kubermatic-kubernetes-platform-api/revisions/815b9bf19db5?raw)
