v12

latestOpenAPI 3.1.0AGPL-3.0raw.githubusercontent.com2026-05-286377631.6 MB
/api/llm

POST /api/llm/extract-sources

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 body

database_idinteger required
sqlstring required
template_tagsobject

Response

Successful response

card_idsinteger[] required