Get started
Ask your data questions over one API
Send a question in plain English. FactQL writes the SQL, runs it against your tables, and returns the rows with a short explanation of what they show. Try it on the right with sample data; no signup needed.
QuickstartFrom a new key to your first answer in about five minutes.Add your dataUpload a CSV or Excel file, or connect PostgreSQL or MySQL.Serve many usersGive each person in your app their own chats with one key.
A question in, an answer out
Every call needs your key in the X-API-Key header. The answer carries the SQL that ran, the rows it returned in data, and an explanation that describes only those rows.
curl -X POST "https://api.factql.ai/query" \ -H "X-API-Key: $FACTQL_API_KEY" \ -H "Content-Type: application/json" \ -d '{"q": "What were the top 5 products by revenue?"}'
The endpoints
POSTAsk a questionOne question, one JSON answer.POSTConversationsChats with follow-ups, streamed as events.POSTUpload a fileAdd a CSV or Excel file as tables.GETList filesSee the files in a workspace.DELETEDelete a fileRemove a file and its tables.GETSchema statusKnow when new data is ready to ask about.
These are the endpoints you need to build on FactQL today. The full reference for the rest of the platform comes later; the OpenAPI file covers exactly the endpoints above.