New to Corsair? See API access, authentication, and error handling.
Collections
get
collections.get
One collection’s property names and their inferred types
Risk: read
Output
list
collections.list
Every event collection on the project, with its properties and types
Risk: read
object[]
Output full type
Output full type
Datasets
delete
datasets.delete
Delete a cached dataset and its computed rows; it cannot be restored
Risk: destructive · Irreversible
Output
get
datasets.get
One cached dataset’s definition, including how far behind its computation is
Risk: read
Output
list
datasets.list
Cached dataset definitions, paged by after_name; next_after_name carries the cursor
Risk: read
Pages by cursor. Pass
next_after_name back as after_name; it is null on the last page.
Output
datasets full type
datasets full type
result
datasets.result
A cached dataset’s computed rows, selected by the values of its index_by properties
Risk: read
Both
index_by and timeframe are required. A string index_by goes as it is; an object (several index properties, or a number or boolean value) and an absolute timeframe are sent JSON-encoded.
timeframe full type
timeframe full type
Events
record
events.record
Record one event in a collection; Keen answers created and takes up to 10 seconds to make it queryable
Risk: write
Output
recordMany
events.recordMany
Record events across one or more collections in one request, with a result per event. Keen recommends batches of 5,000 or less
Risk: write
Answers one result per event, keyed by collection. An entry with
success: false was not stored.
Output: object
Output full type
Output full type
Properties
get
properties.get
The type Keen inferred for one property, such as num or string
Risk: read
Output
Queries
multiAnalysis
queries.multiAnalysis
Run up to 10 analyses over one collection in one request, each under its own label
Risk: read
analyses full type
analyses full type
timeframe full type
timeframe full type
filters full type
filters full type
run
queries.run
Run one analysis (count, sum, average, count_unique, percentile and the rest) over a collection, with filters, grouping and intervals
Risk: read
Every analysis but
count and funnel needs a target_property; percentile also needs percentile. Both are checked before the request.
steps full type
steps full type
timeframe full type
timeframe full type
filters full type
filters full type
order_by full type
order_by full type
Saved Queries
create
savedQueries.create
Create or replace a saved query by name, with the refresh rate that caches its result
Risk: write
A PUT keyed by name, so the same name replaces the definition.
refresh_rate is 0, or 14400 to 86400 seconds.
query full type
query full type
metadata full type
metadata full type
urls full type
urls full type
delete
savedQueries.delete
Delete a saved query and its cached result; it cannot be restored
Risk: destructive · Irreversible
Output
get
savedQueries.get
One saved query’s definition
Risk: read
Output
urls full type
urls full type
list
savedQueries.list
Every saved query on the project, with its definition and refresh rate
Risk: read
queries full type
queries full type
result
savedQueries.result
The cached result of a saved query, which is what makes a dashboard load instantly
Risk: read
Output
urls full type
urls full type