Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

Query Parameters

cache
enum<string>

Controls cache behavior for this exploration: preferred (default) returns a cached result if one exists, otherwise runs a new query; never always runs a new query, ignoring any cached results; required only returns a cached result, if none exists returns exploration: null with a message

Available options:
preferred,
required,
never

Body

application/json
datasource
string
required

ID of the datasource to query

dimensions
object[]
required
chartType
enum<string>
required
Available options:
line,
area,
timeseries-table,
table,
bar,
stackedBar,
horizontalBar,
stackedHorizontalBar,
bigNumber
dateRange
object
required
type
string
required
Allowed value: "fact_table"
dataset
object
required
showAs
enum<string>
Available options:
total,
per_unit

Response

200 - application/json

Resource created

exploration
object | null
required
query
object | null
required
explorationUrl
string

A direct link to view this exploration in the GrowthBook Application.

message
string

Present when exploration is null, explaining why no result was returned.