---
title: "Get the cluster kubeconfig"
method: GET
path: "/lks/clusters/{id}/kubeconfig"
tags: ["LKS"]
---

# Get the cluster kubeconfig

`GET /lks/clusters/{id}/kubeconfig`

Returns the kubeconfig for the cluster. It only exists once the control plane is up, so this endpoint answers 409 `NOT_READY` while the cluster is still provisioning — poll `GET /lks/clusters/{id}` until `kubeconfig_url` is set.

## Path parameters

- `id` string, required

## Response `200`

OK

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict — the control plane is not ready yet
- `502` — Bad Gateway — NetBox is temporarily unavailable

## Changes

- **2026-09-16** `2e0ac09a58ac` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/latitude/apis/latitude-sh-api/changes/lks/clusters/:id/kubeconfig/get.md)

---

[API](https://skmtc.dev/latitude/apis/latitude-sh-api.md) · [All operations](https://skmtc.dev/latitude/apis/latitude-sh-api/llms.txt) · [OpenAPI document](https://skmtc.dev/latitude/apis/latitude-sh-api/revisions/3a64859195ed?raw)
