Convert segment JSON query to SQL (preview)
Turn the segment builder JSON query into a SQL string preview. The segment builder calls this for admin/superadmin SQL preview in the UI.
Endpoint
POST/contacts-segments-json-to-sql
Request
Response
json
The exact key for the SQL string matches your deployment (sqlQuery is what the frontend reads).
Notes
- Intended for debugging / transparency; do not execute returned SQL unless you understand it and your security model.
Report an issue with this documentation
Please log in to report issues with our documentation.