Skip to main content
Returns every team in the workspace with the members whose membership spans the entire reporting period. Disabled teams and teams with no matching members are included. Secret teams are omitted for API keys. Requires workspace Read, not Productivity. Deleted teams are excluded. There is no pagination or silent truncation: an oversized result fails without partial data, and retrying unchanged does not resolve it.

Authorization

string
required
Bearer <key>. See Authentication.

Path parameters

string
required
GITHUB_ORGANIZATION or GITHUB_USER.
string
required
Numeric GitHub ID of the organization or user.

Query parameters

string
Inclusive start (RFC 3339). If from or to is omitted, both are ignored and the latest complete interval of the current reporting period is used, or the previous period if none is available.
string
Exclusive end (RFC 3339). Explicit intervals must span at least one microsecond; neither timestamp may equal 0001-01-01T00:00:00Z. A member is included only if their membership covers all of [from, to); a membership ending exactly at to qualifies.

Response

Team[]
Teams in no particular order. There is no pagination.
string
Start of the effective period (RFC 3339).
string
End of the effective period (RFC 3339).
string
Workspace IANA timezone. Omitted when unset, in which case UTC is used.

Member

string
GitHub user ID.
string
GitHub username.
string
GitHub display name. Omitted when not set; fall back to login.
string
GitHub avatar URL.
string
GitHub GraphQL node ID.