enterprise/governance.md +38 −32
15## Analytics Dashboard15## Analytics Dashboard
16 16
17<div class="max-w-1xl mx-auto">17<div class="max-w-1xl mx-auto">
1818 <img src="https://developers.openai.com/images/codex/enterprise/analytics.png" <img src="https://developers.openai.com/images/codex/enterprise/analytics-dashboard.png"
19 alt="Codex analytics dashboard"19 alt="Codex analytics dashboard"
2020 class="block w-full mx-auto rounded-lg" class="block w-full mx-auto rounded-lg !border-0"
21 />21 />
22</div>22</div>
23 23
2424### Dashboards### Dashboard views
25 25
2626The [analytics dashboard](https://chatgpt.com/codex/settings/analytics) allows ChatGPT workspace administrators to track feature adoption.The [analytics dashboard](https://chatgpt.com/codex/cloud/settings/analytics#usage) allows ChatGPT workspace administrators and analytics viewers to track Codex adoption, usage, and Code Review feedback. Usage data can lag by up to 12 hours.
27 27
2828Codex provides the following dashboards:Codex provides date-range controls for daily and weekly views. Key charts include:
29 29
3030- Daily users by product (CLI, IDE, cloud, Code Review)- Active users by product surface, including CLI, IDE extension, cloud, desktop, and Code Review
3131- Daily code review users- Workspace and personal usage breakdowns, including credit and token usage by product surface
3232- Daily code reviews- Product activity for threads and turns by client
3333- Code reviews by priority level- User ranking table, with filters for client and sort options such as credits, threads, turns, text tokens, and current streak
3434- Daily code reviews by feedback sentiment- Code Review activity, including PRs reviewed, issues by priority, comments, replies, reactions, and feedback sentiment
3535- Daily cloud tasks- Skill invocations and agent identity usage when your workspace has those features
36- Daily cloud users
37- Daily VS Code extension users
38- Daily CLI users
39 36
40### Data export37### Data export
41 38
42Administrators can also export Codex analytics data in CSV or JSON format. Codex provides the following export options:39Administrators can also export Codex analytics data in CSV or JSON format. Codex provides the following export options:
43 40
4441- Code review users and reviews (Daily unique users and total reviews completed in Code Review)- Workspace usage, including daily active users, threads, turns, and credits by surface
4542- Code review findings and feedback (Daily counts of comments, reactions, replies, and priority-level findings)- Usage per user, including daily threads, turns, and credits across surfaces, with optional email addresses when allowed
4643- cloud users and tasks (daily unique cloud users and tasks completed)- Code Review details, including daily comments, reactions, replies, and priority-level findings
47- CLI and VS Code users (Daily unique users for the Codex CLI and VS Code extension)
48- Sessions and messages per user (Daily session starts and user message counts for each Codex user across surfaces)
49 44
50## Analytics API45## Analytics API
51 46
5247Use the [Analytics API](https://chatgpt.com/codex/settings/apireference) when you want to automate reporting, build internal dashboards, or join Codex metrics with your existing engineering data.Use the [Analytics API](https://chatgpt.com/codex/cloud/settings/apireference) when you want to automate reporting, build internal dashboards, or join Codex metrics with your existing engineering data.
53 48
54### What it measures49### What it measures
55 50
5651The Analytics API provides daily, time-series metrics for a workspace, with optional per-user breakdowns and per-client usage.The enterprise Analytics API returns daily or weekly UTC buckets for a workspace. It supports workspace-level and per-user usage, per-client breakdowns, Code Review throughput, Code Review comment priority, and user engagement with Code Review comments.
57 52
58### Endpoints53### Endpoints
59 54
6055#### Daily usage and adoptionThe base URL is `https://api.chatgpt.com/v1/analytics/codex`. All endpoints return paginated `page` objects with `has_more` and `next_page`.
61 56
6257- Daily totals for threads, turns, and creditsUse `start_time` for the inclusive Unix timestamp at the beginning of the reporting window, `end_time` for the exclusive Unix timestamp at the end of the reporting window, `group_by` for `day` or `week` buckets, `limit` for page size, and `page` to continue from a previous response. Requests can look back up to 90 days.
6358- Breakdown by client surface
6459- Optional per-user reporting for adoption and power-user analysis#### Usage
60
61`GET /workspaces/{workspace_id}/usage`
62
63- Returns totals for threads, turns, credits, and per-client usage in daily or weekly buckets.
64- Omit `group` to return per-user rows.
65- Set `group=workspace` to return workspace-wide rows.
66- Includes text input, cached input, and output token fields.
65 67
66#### Code review activity68#### Code review activity
67 69
6870- Pull request reviews completed by Codex`GET /workspaces/{workspace_id}/code_reviews`
6971- Total comments generated by Codex
7072- Severity breakdown of comments- Returns pull request reviews completed by Codex.
73- Returns total comments generated by Codex.
74- Breaks comments down by P0, P1, and P2 priority.
71 75
72#### User engagement with code review76#### User engagement with code review
73 77
7478- Replies to Codex comments`GET /workspaces/{workspace_id}/code_review_responses`
7579- Reactions, including upvotes and downvotes
7680- Engagement breakdowns for how teams respond to Codex feedback- Returns replies and reactions to Codex comments.
81- Breaks reactions down into positive, negative, and other reactions.
82- Counts comments that received reactions, replies, or either form of engagement.
77 83
78### How it works84### How it works
79 85
8086Analytics is daily and time-windowed. Results are time-ordered and returned in pages with cursor-based pagination. You can query by workspace and optionally group by user or aggregate at the workspace level.Analytics uses time windows and supports day or week grouping. Results are time-ordered and returned in pages with cursor-based pagination. Use an API key scoped to `codex.enterprise.analytics.read`.
81 87
82### Common use cases88### Common use cases
83 89