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

# Read a transform file's source

> Return the raw source of ``ai_transforms/<file>`` at the given branch, so
the UI can show the code before running it. Read-only.



## OpenAPI

````yaml /api-reference/catalog-api.json get /connectors/{connector_type}/ai-transform-source
openapi: 3.1.0
info:
  title: Strattum Catalog API
  description: Expõe a estrutura do data lake — camadas, conectores e tabelas.
  version: 0.1.0
servers: []
security: []
paths:
  /connectors/{connector_type}/ai-transform-source:
    get:
      tags:
        - connectors
      summary: Read a transform file's source
      description: >-
        Return the raw source of ``ai_transforms/<file>`` at the given branch,
        so

        the UI can show the code before running it. Read-only.
      operationId: >-
        get_ai_transform_source_connectors__connector_type__ai_transform_source_get
      parameters:
        - name: connector_type
          in: path
          required: true
          schema:
            type: string
            title: Connector Type
        - name: file
          in: query
          required: true
          schema:
            type: string
            title: File
        - name: branch
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Branch
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Get Ai Transform Source Connectors  Connector Type 
                  Ai Transform Source Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````