Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Keen Cached Queries API

The Keen Cached Queries API allows developers to create, manage, and retrieve pre-defined queries that are automatically refreshed on a schedule. Cached queries improve performance for frequently accessed analytics by storing pre-computed results, making them ideal for powering dashboards and embedded analytics experiences.

Keen Cached Queries API is one of 6 APIs that Keen publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Analytics, Caching, Performance, and Queries. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.

This API exposes 5 operations across 3 paths, and defines 3 schemas. It is described by OpenAPI 3.1.0, at version 3.0.

Requests are made against a single base URL, https://api.keen.io/3.0.

5 operations 3 paths 3 schemas 1 DELETE3 GET1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
3.0
Server
https://api.keen.io/3.0
Authentication
API Key, API Key
Resource Areas
1

Authentication & Security 2

Keen Cached Queries API declares 2 security schemes for authenticating requests. An API key is passed in the header as Authorization (masterKey). An API key is passed in the header as Authorization (readKey). By default, every request must be authenticated.

  • masterKey — Keen Master Key for management endpoints.
  • readKey — Keen Read Key for retrieving cached results.

Paths & Operations 5

Across 3 paths, the API surfaces 5 operations — 1 DELETE, 3 GET, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Cached Queries 5

Manage and retrieve cached queries that refresh on a schedule.

GET
/projects/{projectId}/queries/cached
Keen List cached queries
listCachedQueries 1 param → 200401
GET
/projects/{projectId}/queries/cached/{queryName}
Keen Get a cached query
getCachedQuery 2 params → 200401404
PUT
/projects/{projectId}/queries/cached/{queryName}
Keen Create or update a cached query
createOrUpdateCachedQuery 2 params body → 201401
DELETE
/projects/{projectId}/queries/cached/{queryName}
Keen Delete a cached query
deleteCachedQuery 2 params → 204401
GET
/projects/{projectId}/queries/cached/{queryName}/result
Keen Get cached query result
getCachedQueryResult 2 params → 200401

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are CachedQueryDefinition (2 properties), Error (2 properties). Each schema is shown below with its type and property counts.

CachedQuery
Error
object
2 properties
CachedQueryDefinition
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

keen-cached-queries-api-openapi.yml Raw ↑

Other APIs Keen publishes across the network.

Keen Saved Queries API
Keen Collections API
Keen Events API
Keen Extractions API
Keen Queries API