Get Prompt Usage
Return prompt usage for the organization that owns the given product, broken down by product, user and UTC calendar day. The API key authorizes its own product, but the response covers every product in that organization so a single key gives org-wide visibility. Counts include all prompt origins. Requires prompt usage tracking to be enabled for the organization. The requested date range may not exceed 366 days.
Authorizations
API key obtained from the ClarityQ dashboard.
Path Parameters
Query Parameters
First UTC calendar day to include (YYYY-MM-DD).
Last UTC calendar day to include, inclusive (YYYY-MM-DD).
Restrict to these products in the org (repeatable). Defaults to all products.
Filter to users whose email or full name contains this text.
Restrict to a single prompt origin (APP, SLACK, API_KEY). Defaults to all origins. Channel a prompt was sent through, used to filter the usage export.
APP, SLACK, API_KEY Response
Successful Response
ID of the product the prompts were sent to
Display name of the product
ID of the user who sent the prompts
Email of the user who sent the prompts
Calendar day (UTC) the prompts were sent on, as YYYY-MM-DD
Number of prompts sent by the user on that day, across all origins