> ## Documentation Index
> Fetch the complete documentation index at: https://artie.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Kafka topic detail

> Retrieves topic metadata and partition sizes. Includes the owning source reader name, table name, and pipeline names and UUIDs when the topic belongs to an Artie pipeline.



## OpenAPI

````yaml https://raw.githubusercontent.com/artie-labs/artie-api-spec/refs/heads/master/openapi.yaml get /kafka-clusters/{uuid}/topics/{topic}
openapi: 3.1.0
info:
  description: External API endpoints for Artie
  title: Artie API
  version: v1.0.130
servers:
  - url: https://api.artie.com
security:
  - ApiKey: []
paths:
  /kafka-clusters/{uuid}/topics/{topic}:
    get:
      tags:
        - Kafka Clusters
      summary: Get Kafka topic detail
      description: >-
        Retrieves topic metadata and partition sizes. Includes the owning source
        reader name, table name, and pipeline names and UUIDs when the topic
        belongs to an Artie pipeline.
      operationId: kafka_topic_detail
      parameters:
        - in: path
          name: topic
          required: true
          schema:
            type: string
        - in: path
          name: uuid
          required: true
          schema:
            type: string
        - in: query
          name: forceRefresh
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayloadsKafkaTopicDetail'
          description: OK
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
components:
  schemas:
    PayloadsKafkaTopicDetail:
      properties:
        partitionSizes:
          items:
            $ref: '#/components/schemas/PayloadsKafkaTopicPartitionSize'
          type:
            - array
            - 'null'
        pipelines:
          items:
            $ref: '#/components/schemas/PayloadsKafkaTopicPipeline'
          type:
            - array
            - 'null'
        topic:
          $ref: '#/components/schemas/PayloadsKafkaTopic'
      required:
        - topic
        - partitionSizes
        - pipelines
      type: object
    PayloadsKafkaTopicPartitionSize:
      properties:
        partition:
          format: int32
          type: integer
        sizeBytes:
          format: int64
          type: integer
      required:
        - partition
        - sizeBytes
      type: object
    PayloadsKafkaTopicPipeline:
      properties:
        name:
          type: string
        uuid:
          type: string
      required:
        - uuid
        - name
      type: object
    PayloadsKafkaTopic:
      properties:
        artieManaged:
          description: >-
            Whether Artie manages this topic: a CDC topic under the company
            prefix outside the customer namespace, or a Kafka-internal __ topic.
          type: boolean
        partitionCount:
          type: integer
        retentionMS:
          type: string
        sourceName:
          type: string
        tableName:
          type: string
        topic:
          type: string
      required:
        - topic
        - retentionMS
        - partitionCount
        - artieManaged
      type: object
  securitySchemes:
    ApiKey:
      description: API key passed as a Bearer token in the Authorization header.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.