Available on the Enterprise plan. Contact sales to learn more.
Authentication
All endpoints accept a Bearer token: a personal access token (acts as you) or a service account token (owned by the organization, recommended for ongoing automation).Request format
Every endpoint is a POST with a JSON body:| Parameter | Required | Description |
|---|---|---|
dateRange | Yes | startTime and endTime as RFC-3339 timestamps. Maximum range is one year. |
projectId | No | Scope results to a single project. Requires read access to that project. |
userId | No | Scope results to a single user. Mutually exclusive with teamId. |
teamId | No | Scope results to members of a team. Mutually exclusive with userId. |
resolution | Time series only | Bucket size: RESOLUTION_HOURLY, RESOLUTION_DAILY, RESOLUTION_WEEKLY, or RESOLUTION_MONTHLY. |
- All
*Trendfields are the fractional change against the previous period of equal length, computed as(current - previous) / previous. For example,0.25means up 25% and-0.1means down 10%. - 64-bit integer fields (counts, line totals) are returned as JSON strings, per protobuf JSON encoding. Parse them as integers.
Adoption and usage summary
Returns active users, power users, environment sessions, and average environment runtime per user, each with a trend, plus a sparkline. Endpoint:POST https://app.gitpod.io/api/gitpod.v1.UsageService/GetAdoptionUsageSummary
Request:
AI co-authored commits summary
Returns commit totals, line changes, and distinct authors, broken down per AI tool. Attribution usesCo-authored-by git trailers; see AI Adoption for the detection rules.
Endpoint: POST https://app.gitpod.io/api/gitpod.v1.UsageService/GetCoAuthorSummary
Request:
tool is one of CO_AUTHOR_TOOL_NO_COAUTHOR, CO_AUTHOR_TOOL_HUMAN_COAUTHOR, CO_AUTHOR_TOOL_ONA, CO_AUTHOR_TOOL_GITHUB_COPILOT, CO_AUTHOR_TOOL_CURSOR, CO_AUTHOR_TOOL_CLAUDE, CO_AUTHOR_TOOL_CODEX, or CO_AUTHOR_TOOL_OTHER.
AI co-authored commits time series
Returns the same contribution stats bucketed over time, including the AI-assisted share of lines added per bucket. Endpoint:POST https://app.gitpod.io/api/gitpod.v1.UsageService/GetCoAuthorTimeSeries
Request:
Agent sessions summary
Returns agent session counts and line changes, with a per-model breakdown. Endpoint:POST https://app.gitpod.io/api/gitpod.v1.UsageService/GetAgentTraceSummary
Request:
Agent sessions time series
Returns agent sessions and line changes bucketed over time. Endpoint:POST https://app.gitpod.io/api/gitpod.v1.UsageService/GetAgentTraceTimeSeries
Request:
PR speed summary
Returns median lead time (first commit to merge), PRs merged, median time to first approval, and deployment frequency (PRs merged to the project’s configured branch, per week). Endpoint:POST https://app.gitpod.io/api/gitpod.v1.UsageService/GetPrSummary
Request:
timeToFirstApprovalSeconds is zero when no PRs in the range had approvals. For lead time and time to first approval, a negative trend means faster shipping.
PR speed time series
Returns the same PR metrics bucketed over time. Endpoint:POST https://app.gitpod.io/api/gitpod.v1.UsageService/GetPrTimeSeries
Request: