Skip to main content
POST
Dry-run (count only)

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 count. Must return a distinct_id column and reference only the users and events tables.

Example:

"SELECT distinct_id FROM users WHERE user_properties ->> 'plan' = 'enterprise'"

Response

200

count
integer

Number of distinct users matched by the query.

Example:

4812