/api/llm

POST /api/llm/extract-tables

Parse SQL and return referenced tables with their columns.

Uses Macaw to parse the SQL, resolves table names to IDs, and returns permission-filtered tables with column metadata.

This is a lightweight endpoint that does not trigger fingerprinting or field value fetching.

post/api/llm/extract-tables

Request body

database_idinteger required
sqlstring required

Response

Successful response

Changes