Project-aware requests
Pass schema context, rules, and auth so generated queries stay relevant to each tenant or use case.
Text to SQL API
TTSQL gives developers a text to SQL API for internal tools, customer-facing analytics, and AI agents that need governed access to structured data.
Show revenue by plan for the last 30 days
1SELECT plan_name, SUM(amount) AS revenue
2FROM invoices
3WHERE paid_at >= CURRENT_DATE - INTERVAL 39;30 days39;
4GROUP BY plan_name
5ORDER BY revenue DESC;
Overview
Pass schema context, rules, and auth so generated queries stay relevant to each tenant or use case.
Use API keys and versioned endpoints that fit modern product development.
Power AI agents that need to translate business intent into safe SQL without opening unrestricted database access.
Query examples
Show revenue by plan for the last 30 days
1SELECT plan_name, SUM(amount) AS revenue
2FROM invoices
3WHERE paid_at >= CURRENT_DATE - INTERVAL 39;30 days39;
4GROUP BY plan_name
5ORDER BY revenue DESC;
Use cases
Add a text to SQL API behind a product analytics search bar.
Power AI agents that answer questions using customer or operational data.
Create internal tools where teams ask questions and receive validated SQL back.
FAQ
Software teams that want to add natural-language query generation to products, internal tools, AI assistants, or automation workflows.
Yes. TTSQL supports project context, access controls, and supporting knowledge so each API call reflects the right schema and governance rules.
Enterprise
Use TTSQL for teams that need SSO, policy controls, auditability, dedicated support, and deployment flexibility.