Skip to main content
GET
Weekly decision throughput for a project, split by actor class

Authorizations

Authorization
string
header
required

An Earnie API key, sent as Authorization: Bearer sk_earnie_.... Create one under Settings > API keys. The key's scopes decide which operations it may call.

Query Parameters

project_id
string<uuid>
required

Project to report throughput for.

weeks
integer
default:6

Size of the trailing window in whole weeks, ending with the current (partial) week. Out-of-range values clamp to the nearest bound rather than erroring — a dashboard must not 400 over a period picker.

Required range: 1 <= x <= 26

Response

Weekly throughput for the requested window.

Closed-decision volume over a trailing window, split by actor class. Every count here is a real measurement. The card's "Unavailable" state is expressed by this response NOT ARRIVING (a failed request), never by zeros: total_closed: 0 means the window genuinely contains no decisions — the honest state for a project whose first scan just landed.

window_weeks
integer
required

The window actually applied, after clamping. Echoed so the client can label the period truthfully when its request was clamped.

weeks
object[]
required

One entry per week in the window, oldest first, with no gaps. The final entry is the current, still-accumulating week.

total_closed
integer
required

Sum over the window. Equals machine_closed + human_closed.

machine_closed
integer
required
human_closed
integer
required