Skip to main content
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
Input Output

list

collections.list Every event collection on the project, with its properties and types Risk: read
Input: empty object Output: object[]

Datasets

delete

datasets.delete Delete a cached dataset and its computed rows; it cannot be restored Risk: destructive · Irreversible
Input Output

get

datasets.get One cached dataset’s definition, including how far behind its computation is Risk: read
Input Output

list

datasets.list Cached dataset definitions, paged by after_name; next_after_name carries the cursor Risk: read
Input Pages by cursor. Pass next_after_name back as after_name; it is null on the last page. Output

result

datasets.result A cached dataset’s computed rows, selected by the values of its index_by properties Risk: read
Input 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.
Output

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
Input 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
Input Answers one result per event, keyed by collection. An entry with success: false was not stored. Output: object

Properties

get

properties.get The type Keen inferred for one property, such as num or string Risk: read
Input Output

Queries

multiAnalysis

queries.multiAnalysis Run up to 10 analyses over one collection in one request, each under its own label Risk: read
Input
Output

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
Input Every analysis but count and funnel needs a target_property; percentile also needs percentile. Both are checked before the request.
Output

Saved Queries

create

savedQueries.create Create or replace a saved query by name, with the refresh rate that caches its result Risk: write
Input A PUT keyed by name, so the same name replaces the definition. refresh_rate is 0, or 14400 to 86400 seconds.
Output

delete

savedQueries.delete Delete a saved query and its cached result; it cannot be restored Risk: destructive · Irreversible
Input Output

get

savedQueries.get One saved query’s definition Risk: read
Input Output

list

savedQueries.list Every saved query on the project, with its definition and refresh rate Risk: read
Input: empty object Output

result

savedQueries.result The cached result of a saved query, which is what makes a dashboard load instantly Risk: read
Input Output