Skip to main content
Altorney Docs
API ReferenceCase metrics

Metrics time series

Returns one point per reviewer and period within dateFrom..dateTo (at most 366 days), by granularity TIMESERIES_GRANULARITY_DAY or TIMESERIES_GRANULARITY_WEEK, ordered by periodStart then reviewer name.

GET/api/v1/cases/{id}/metrics/timeseries

Returns one point per reviewer and period within dateFrom..dateTo (at most 366 days), by granularity TIMESERIES_GRANULARITY_DAY or TIMESERIES_GRANULARITY_WEEK, ordered by periodStart then reviewer name. With TIMESERIES_GRANULARITY_WEEK, align the bounds to a Monday and a Sunday; available: false with items: [] without a workspace.

Authorization

oauth2 metrics:read
AuthorizationBearer <token>

OAuth 2.0 client credentials. Post the credential's client_id and client_secret form-encoded to the token URL, then send Authorization: Bearer <access_token>. Scopes narrow the connected user's permissions, never grant: a resource is readable only when the user holds the permission the scope narrows and the token carries the scope.

In: header

Scope: metrics:read

Path Parameters

id*string

The case's id, as /cases returns it; an unknown or inaccessible case is 404 NOT_FOUND.

Query Parameters

dateFrom*string

YYYY-MM-DD, required: inclusive lower bound on periodStart (a Monday with granularity=TIMESERIES_GRANULARITY_WEEK); the window may span at most 366 days, both ends included.

Formatdate
dateTo*string

YYYY-MM-DD, required: inclusive upper bound on periodStart (a Sunday with granularity=TIMESERIES_GRANULARITY_WEEK).

Formatdate
granularity?string

TIMESERIES_GRANULARITY_DAY (the default) or TIMESERIES_GRANULARITY_WEEK.

Value in

  • "TIMESERIES_GRANULARITY_DAY"
  • "TIMESERIES_GRANULARITY_WEEK"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/cases/string/metrics/timeseries?dateFrom=2019-08-24&dateTo=2019-08-24" \  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{  "case": {    "id": "00000000-0000-0000-0000-000000000100"  },  "available": true,  "asOf": "2026-09-21T06:00:00Z",  "granularity": "TIMESERIES_GRANULARITY_DAY",  "items": [    {      "reviewer": {        "id": "00000000-0000-0000-0000-000000000300",        "name": "Reviewer, Ron",        "clientEmployeeId": "EMP-42"      },      "periodStart": "2026-09-01",      "metrics": {        "minutes": 480,        "docsReviewed": 90,        "edits": 12,        "score": 4.55,        "speed": 11.25,        "overturns": 0      }    }  ]}