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

> Retrieves a specific text-based knowledge base entry by its unique ID.

# Get Text Entry

For the complete error reference, see [Error Guide](/rest-api/ai-agents-apis/error-codes).


## OpenAPI

````yaml get /ai-agents/agent-builder/knowledge-base/text/{uniqueId}
openapi: 3.0.0
info:
  title: AI Agents APIs
  description: API reference for CometChat AI Agents service
  version: '1.0'
servers:
  - url: https://{appId}.api-{region}.cometchat.io/v3
    variables:
      appId:
        default: appId
        description: (Required) App ID
      region:
        enum:
          - us
          - eu
          - in
        default: us
        description: Select Region
security: []
tags:
  - name: ai-agent
    description: ''
paths:
  /ai-agents/agent-builder/knowledge-base/text/{uniqueId}:
    get:
      tags:
        - knowledge-base
      summary: Get Text Entry
      description: >-
        Retrieves a specific text-based knowledge base entry by its unique ID.
        Use this endpoint to inspect the content and status of a text entry.
      operationId: RagController_getTextDetailById
      parameters:
        - name: uniqueId
          required: true
          in: path
          description: Unique text detail ID
          schema:
            example: f47ac10b-58cc-4372-a567-0e02b2c3d479
            type: string
      responses:
        '200':
          description: Text detail retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      uniqueId:
                        type: string
                      title:
                        type: string
                      text:
                        type: string
                      fileName:
                        type: string
                      s3Key:
                        type: string
                      status:
                        type: string
                      vectorizationStatus:
                        type: string
                      createdAt:
                        type: number
                      updatedAt:
                        type: number
                      isActive:
                        type: boolean
              example:
                data:
                  uniqueId: f47ac10b-58cc-4372-a567-0e02b2c3d479
                  title: Company Policy Document
                  text: This document outlines...
                  fileName: company-policy-document.md
                  s3Key: my-app-id/text/f47ac10b/company-policy-document.md
                  status: indexed
                  vectorizationStatus: completed
                  createdAt: 1700000000000
                  updatedAt: 1700000000000
                  isActive: true
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      description: API Key (i.e. Rest API Key from the Dashboard).
      name: apikey
      in: header

````