---
title: "GET /public/kafka/v2/cluster/{cluster}/subject/{subject-name}"
method: GET
path: "/public/kafka/v2/cluster/{cluster}/subject/{subject-name}"
tags: ["cli_subject_kafka_v2_13"]
---

# GET /public/kafka/v2/cluster/{cluster}/subject/{subject-name}

`GET /public/kafka/v2/cluster/{cluster}/subject/{subject-name}`

## Request

- Base URL: `https://developers.conduktor.io` (the document declares no server; this is the origin it was published from)
- URL: `https://developers.conduktor.io/public/kafka/v2/cluster/{cluster}/subject/{subject-name}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/conduktor/apis/conduktor-console-api/docs/public/kafka/v2/cluster/:cluster/subject/:subject-name/get.ts> (a function with typed inputs; its response is checked against the schema)

Get Subject by name

## Path parameters

- `cluster` string, required
- `subject-name` string, required

## Response `200`

- SubjectResourceV2
  - `apiVersion` string, required
  - `kind` 'Subject', required
  - `metadata` SubjectMetadata, required
    - `name` string, required
    - `cluster` string, required
    - `labels` MapLabelKeyString
  - `spec` SubjectSpec, required
    - `format` 'AVRO' | 'JSON' | 'PROTOBUF', required
    - `compatibility` 'BACKWARD' | 'BACKWARD_TRANSITIVE' | 'FORWARD' | 'FORWARD_TRANSITIVE' | 'FULL' | 'FULL_TRANSITIVE' | 'NONE'
    - `schema` string, required
    - `id` integer
    - `version` integer
    - `references` SchemaReference[]
      - `name` string, required
      - `subject` string, required
      - `version` integer, required
    - `guid` string

## Other responses

- `400`: The request is not valid
- `401`: The user is not authenticated
- `403`: The user doesn't have sufficient privilege to do this operation
- `404`: No subject with this technical id exists
- `500`: An unexpected error occurred in the server

---

[API](https://skmtc.dev/conduktor/apis/conduktor-console-api.md) - [All operations](https://skmtc.dev/conduktor/apis/conduktor-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/conduktor/apis/conduktor-console-api/revisions/24750c294805?raw)
