> ## 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.

# AI-assisted SQL suggestion

> Uses Claude to generate a DuckDB SQL model that reads raw Delta tables directly via delta_scan(). No staging layer.



## OpenAPI

````yaml /api-reference/catalog-api.json post /transformations/suggest
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:
  /transformations/suggest:
    post:
      tags:
        - transformations
      summary: AI-assisted SQL suggestion
      description: >-
        Uses Claude to generate a DuckDB SQL model that reads raw Delta tables
        directly via delta_scan(). No staging layer.
      operationId: suggest_transformation_transformations_suggest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SuggestRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuggestResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SuggestRequest:
      properties:
        source_tables:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Source Tables
        goal:
          anyOf:
            - type: string
            - type: 'null'
          title: Goal
        available_tables:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Available Tables
      type: object
      required:
        - source_tables
      title: SuggestRequest
    SuggestResponse:
      properties:
        sql:
          type: string
          title: Sql
        explanation:
          type: string
          title: Explanation
        reasoning:
          type: string
          title: Reasoning
          default: ''
        question:
          type: string
          title: Question
          default: ''
      type: object
      required:
        - sql
        - explanation
      title: SuggestResponse
    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

````