Part3 Developers

Project stats

GET /admin/stats/project/{projectId}

Get analytics stats for a project. Specify which stats to compute via the include param. Each stat runs independently — only requested stats are computed.

GET
/admin/stats/project/{projectId}
AuthorizationBearer <token>

In: header

Path Parameters

projectId*string

Project UID

Query Parameters

include*string

Comma-separated stat types to include. Shared: overdueByAssignee, avgReviewTime, documentVolume, documentSnapshot, topContributors, assignedDocuments, delaysByConsultantType, reviewTimeByConsultant, changeOrderSummary, documentTrend, overdueTrend, stepResponseTime, documentFlow. Org-only: inactiveUsers, activityByProject, reviewTimeByProject. Platform-only: documentTrendByOrg. documentSnapshot is the right choice for 'how many documents of each type / in each status do I have?' questions — returns total, open, overdue, byType, byStatus, and the full byTypeAndStatus matrix in one call. documentFlow is RFIs and submittals received, returned (the response issued back, or the close) and still in review at each period end, always bucketed by the same default as documentTrend (monthly; weekly when from is given without granularity). documentType, documentStatus, discipline, assigneeId and creatorId filter every stat over documents; topContributors, activityByProject and inactiveUsers count activity and ignore them. Pass granularity (daily/weekly/monthly) to get time-bucketed trend data on supported stats.

versions?string

Which versions to count. latest (the default) counts each document once, at its current version; all counts every version, for resubmission measures. Applies to the stats that count open or overdue documents: documentSnapshot (all of its numbers), overdueByAssignee, overdueTrend and delaysByConsultantType.

Default"latest"
Value in"latest" | "all"
drafts?string

Whether a review verdict saved and not yet submitted counts. exclude (the default) leaves such drafts out while the submittal is open, so its review status, answered responses and review time read submitted verdicts only. include counts every saved verdict, as the web app stores the outcome. On a done or cancelled submittal every saved verdict counts either way.

Default"exclude"
Value in"exclude" | "include"
from?string

ISO date — filter documents/activity created after this date

to?string

ISO date — filter documents/activity created up to and including this date (a bare YYYY-MM-DD takes in that whole UTC day)

projects?string

Comma-separated project IDs (org-level only)

documentType?string

Comma-separated document types (e.g. "Submittal,RFI")

documentStatus?string

Comma-separated document statuses

discipline?string

Comma-separated consultant disciplines (any case). Stats of review sections (avgReviewTime, reviewTimeByConsultant, reviewTimeByProject, delaysByConsultantType) keep the sections of those disciplines; the other document stats keep documents a consultant in one reviews, through a section or a step response.

assigneeId?string

User ID: keep documents assigned to this user. overdueByAssignee keeps that user's own row.

creatorId?string

User ID: keep documents created by this user.

userId?string

User ID (required for assignedDocuments)

granularity?string

Time bucketing granularity. When set, supported stats add buckets (array of {date, count}) and granularity fields to their response alongside the existing aggregate data. The aggregate shape is unchanged — buckets are additive. Supported: overdueByAssignee, avgReviewTime, documentVolume, delaysByConsultantType, changeOrderSummary, stepResponseTime, documentTrend, overdueTrend, documentFlow, activityByProject, documentTrendByOrg. Not supported (point-in-time or flat array): topContributors, assignedDocuments, reviewTimeByConsultant, reviewTimeByProject, inactiveUsers.

Value in"daily" | "weekly" | "monthly"
periods?string

How many periods before the current one, when from is not set: a bucketed stat draws the period to (or today) falls in and this many before it, so periods + 1 buckets (default: 12 at any granularity for documentTrend, overdueTrend, documentFlow and documentTrendByOrg; otherwise 7 for daily, 4 for weekly, 12 for monthly). Larger values are capped at 365 daily, 52 weekly, 24 monthly.

Response Body

application/json

application/json

curl -X GET "https://api.part3.io/v1/admin/stats/project/string?include=string"
{}
{
  "error": "string"
}