Product
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
POST | |
POST | |
GET | |
GET | |
POST |
Retrieve insights suggestions
DRF ViewSet mixin that gates coalesced responses behind permission checks.
The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
Path parameters
- idinteger
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /insights /:id /suggestionsExample response
Status 200 No response body
Create insights suggestions
DRF ViewSet mixin that gates coalesced responses behind permission checks.
The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
Path parameters
- idinteger
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- namestring
- derived_namestring
- query
- orderinteger
- deletedboolean
- dashboardsarray
- descriptionstring
- tagsarray
- favoritedboolean
- _create_in_folderstring
Example request
POST /api /projects /:project_id /insights /:id /suggestionsExample response
Status 200 No response body
Retrieve insights activity
DRF ViewSet mixin that gates coalesced responses behind permission checks.
The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
Required API key scopes
activity_log:readPath parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /insights /activityExample response
Status 200 No response body
Create insights cancel
DRF ViewSet mixin that gates coalesced responses behind permission checks.
The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- namestring
- derived_namestring
- query
- orderinteger
- deletedboolean
- dashboardsarray
- descriptionstring
- tagsarray
- favoritedboolean
- _create_in_folderstring
Example request
POST /api /projects /:project_id /insights /cancelExample response
Status 200 No response body
Create insights generate metadata
Generate an AI-suggested name and description for an insight based on its query configuration.
Required API key scopes
insight:writePath parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- namestring
- derived_namestring
- query
- orderinteger
- deletedboolean
- dashboardsarray
- descriptionstring
- tagsarray
- favoritedboolean
- _create_in_folderstring
Example request
POST /api /projects /:project_id /insights /generate_metadataExample response
Status 200 No response body
Retrieve insights my last viewed
Returns basic details about the last 5 insights viewed by this user. Most recently viewed first.
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /insights /my_last_viewedExample response
Status 200 No response body
Retrieve insights trending
Returns trending insights based on view count in the last N days (default 7). Defaults to returning top 10 insights.
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /insights /trendingExample response
Status 200 No response body
Create insights viewed
Update insight view timestamps. Expects: {"insight_ids": [1, 2, 3, ...]}
Required API key scopes
insight:readPath parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- namestring
- derived_namestring
- query
- orderinteger
- deletedboolean
- dashboardsarray
- descriptionstring
- tagsarray
- favoritedboolean
- _create_in_folderstring
Example request
POST /api /projects /:project_id /insights /viewed