API 経由でチームのメトリクス、利用状況データ、支出情報にアクセス
key_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Parameter | Type | Required | Description |
---|---|---|---|
startDate | number | Yes | エポックミリ秒での開始日 |
endDate | number | Yes | エポックミリ秒での終了日 |
Field | Description |
---|---|
date | エポックミリ秒での日時 |
isActive | この日にユーザーがアクティブか |
totalLinesAdded | 追加されたコード行数 |
totalLinesDeleted | 削除されたコード行数 |
acceptedLinesAdded | 受け入れたAI提案による追加行数 |
acceptedLinesDeleted | 受け入れたAI提案による削除行数 |
totalApplies | Applyの実行回数 |
totalAccepts | 受け入れた提案数 |
totalRejects | 拒否した提案数 |
totalTabsShown | 表示されたタブ補完数 |
totalTabsAccepted | 受け入れたタブ補完数 |
composerRequests | Composerのリクエスト数 |
chatRequests | Chatのリクエスト数 |
agentRequests | Agentのリクエスト数 |
cmdkUsages | コマンドパレット(Cmd+K)の使用回数 |
subscriptionIncludedReqs | サブスクリプションに含まれるリクエスト数 |
apiKeyReqs | APIキーでのリクエスト数 |
usageBasedReqs | 従量課金のリクエスト数 |
bugbotUsages | バグ検出の使用回数 |
mostUsedModel | 最も頻繁に使われたAIモデル |
applyMostUsedExtension | Applyで最も使われたファイル拡張子 |
tabMostUsedExtension | タブで最も使われたファイル拡張子 |
clientVersion | Cursorのバージョン |
email | ユーザーのメールアドレス |
Parameter | Type | Required | Description |
---|---|---|---|
searchTerm | string | No | ユーザー名とメールアドレスを検索 |
sortBy | string | No | ソートキー: amount , date , user 。デフォルト: date |
sortDirection | string | No | 並び順: asc , desc 。デフォルト: desc |
page | number | No | ページ番号(1始まり)。デフォルト: 1 |
pageSize | number | No | 1ページあたりの件数 |
Field | Description |
---|---|
spendCents | セント単位の総支出額 |
fastPremiumRequests | 高速プレミアムモデルのリクエスト数 |
name | メンバー名 |
email | メンバーのメールアドレス |
role | チーム内の役割 |
hardLimitOverrideDollars | カスタムの支出上限オーバーライド額(ドル) |
subscriptionCycleStart | サブスクリプションサイクル開始(エポックミリ秒) |
totalMembers | チームメンバー総数 |
totalPages | 総ページ数 |
Parameter | Type | Required | Description |
---|---|---|---|
startDate | number | No | エポックミリ秒での開始日時 |
endDate | number | No | エポックミリ秒での終了日時 |
userId | number | No | 特定のユーザーIDでフィルタ |
page | number | No | ページ番号(1始まり)。デフォルト: 1 |
pageSize | number | No | 1ページあたりの件数。デフォルト: 10 |
email | string | No | ユーザーのメールアドレスでフィルタ |
Field | Description |
---|---|
totalUsageEventsCount | クエリに一致する使用イベントの総数 |
pagination | 結果をナビゲートするためのページネーションメタデータ |
timestamp | エポックミリ秒のイベントタイムスタンプ |
model | リクエストで使用されたAIモデル |
kind | 使用カテゴリ(例: “Usage-based”, “Included in Business”) |
maxMode | Max Mode が有効かどうか |
requestsCosts | リクエスト単位のコスト |
isTokenBasedCall | 使用量課金イベントの場合は true |
tokenUsage | トークン消費の詳細(isTokenBasedCall が true のときに提供) |
isFreeBugbot | 無料の Bugbot 利用かどうか |
userEmail | リクエストを行ったユーザーのメールアドレス |
period | クエリ対象データの期間 |
Parameter | Type | Required | Description |
---|---|---|---|
repos | array | Yes | リポジトリのブロックリストオブジェクトの配列 |
Field | Type | Required | Description |
---|---|---|---|
url | string | Yes | ブロックリストに登録するリポジトリのURL |
patterns | string[] | Yes | ブロック対象のファイルパターンの配列(globパターン対応) |
Parameter | Type | Required | Description |
---|---|---|---|
repoId | string | Yes | 削除するリポジトリブロックリストのID |
*
- リポジトリ全体をブロック*.env
- すべての .env ファイルをブロックconfig/*
- config ディレクトリ配下のすべてのファイルをブロック**/*.secret
- 任意のサブディレクトリ内のすべての .secret ファイルをブロックsrc/api/keys.ts
- 特定のファイルをブロック