Skip to main content
POST
Dry-run (sample rows)

Authorizations

Authorization
string
header
required

Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.

Body

application/json
query_text
string
required

The SQL query to preview. Must return a distinct_id column and reference only the users and events tables. See the Segment Lists doc for the dialect, available columns, and query rules.

Example:

"SELECT distinct_id, active_emails FROM users LIMIT 40"

Response

200

data
object[]

Up to the top 10 matched rows, each containing distinct_id and any additional columns you selected.