---
title: "Get a Basic-auth credential"
method: GET
path: "/v2/control-planes/{controlPlaneId}/core-entities/basic-auths/{BasicAuthId}"
tags: ["Basic-auth credentials"]
---

# Get a Basic-auth credential

`GET /v2/control-planes/{controlPlaneId}/core-entities/basic-auths/{BasicAuthId}`

Get a Basic-auth credential using ID.

## Response `200`

Successfully fetched Basic-auth credential

- BasicAuth
  - `consumer` object, nullable
    - `id` string
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `id` string, nullable — A string representing a UUID (universally unique identifier).
  - `password` string, required
  - `tags` string[], nullable — A set of strings representing tags.
  - `username` string, required

## Other responses

- `401` — Unauthorized
- `404` — Resource does not exist

## Changes

- **2025-12-03** `581456e3279f` — 1 warning
  - the response required property `password` became not write-only for the status `200`
- **2025-10-23** `8ab3ec3ed301` — 1 info
  - the response required property `password` became write-only for the status `200`
- **2025-07-22** `76b0fefddb0d` — 1 breaking
  - the response property `tags` became nullable for the status `200`

[Change history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v2/control-planes/:controlPlaneId/core-entities/basic-auths/:BasicAuthId/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/revisions/7d3c634668f8/schema)
