/api/llm

POST /api/llm/extract-sources

Changed on

Parse native query sources and return referenced tables and cards/models.

Uses Macaw to parse the SQL, resolves table names to IDs,
and returns permission-filtered tables with column metadata. Card and model
references are extracted from native query template tags.

This is a lightweight endpoint that does not trigger fingerprinting
or field value fetching.
post/api/llm/extract-sources

Request

  • Base URL
    (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header X-API-Key

Request body

database_idinteger required
sqlstring required
template_tagsobject

Response

Successful response

card_idsinteger[] required

Changes

    • info

      added subschema #1 subschema #2 to the //// response property anyOf list for the response status

    • info

      added subschema #1 subschema #2 to the //// response property anyOf list for the response status

    • info

      added subschema #1 subschema #2 to the //// response property anyOf list for the response status

    • info

      added subschema #1 subschema #2 to the // response property anyOf list for the response status

    • info

      added subschema #1 subschema #2 to the // response property anyOf list for the response status

    • info

      added subschema #1 subschema #2 to the // response property anyOf list for the response status

    • info

      removed subschema #1 subschema #2 from the //// response property oneOf list for the response status

    • info

      removed subschema #1 subschema #2 from the //// response property oneOf list for the response status

    • info

      removed subschema #1 subschema #2 from the //// response property oneOf list for the response status

    • info

      removed subschema #1 subschema #2 from the // response property oneOf list for the response status

    • info

      removed subschema #1 subschema #2 from the // response property oneOf list for the response status

    • info

      removed subschema #1 subschema #2 from the // response property oneOf list for the response status

    • info

      endpoint added