# Analytics

Portfolio views of your claims over time.

Related guide: [Review claim media](https://provenanceauth.com/docs/attest/guides/review-claims.md)

## Endpoints

- `GET /v1/attest/analytics/summary`: [Get the portfolio summary](#get-v1-attest-analytics-summary)
- `GET /v1/attest/analytics/trends`: [Get portfolio trends](#get-v1-attest-analytics-trends)
- `GET /v1/attest/analytics/factors`: [Get factor frequency](#get-v1-attest-analytics-factors)

## The analytics summary object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | enum | yes | The type of object. One of `analytics_summary`. |
| `window` | object | yes | The time window. |
| `window.from` | string | yes | The start of the time window. |
| `window.to` | string | yes | The end of the time window. |
| `claims` | object | yes | The signed claims. |
| `claims.total` | integer | yes | The total. |
| `claims.by_status` | object | yes | Counts by status. |
| `claims.by_status.verified` | integer | yes | Whether it was verified. |
| `claims.by_status.failed` | integer | yes | How many failed. |
| `claims.by_status.partial` | integer | yes | How many were partial. |
| `risk` | object | yes | The window's risk scores. |
| `risk.by_band` | object | yes | Attestations by risk band. |
| `risk.by_band.verified` | integer | yes | Whether it was verified. |
| `risk.by_band.partial` | integer | yes | How many were partial. |
| `risk.by_band.failed` | integer | yes | How many failed. |
| `risk.mean_score` | number | yes | The mean risk score. |
| `attested_mix` | object | yes | Attested and unattested assets. |
| `attested_mix.attested` | integer | yes | Assets captured through the SDK. |
| `attested_mix.unattested` | integer | yes | Assets with no attestation. |
| `screening` | object | yes | Synthetic-media screenings in the window. |
| `screening.screened` | integer | yes | Assets screened. |
| `screening.flagged` | integer | yes | How many were flagged. |
| `dispositions` | object | yes | Case decisions in the window. |
| `dispositions.by_status` | object | yes | Counts by status. The four open statuses are always present (0 when none); a closing status appears when a case has it. |
| `dispositions.by_status.escalated` | integer | yes | Escalated cases. |
| `dispositions.by_status.new` | integer | yes | New cases. |
| `dispositions.by_status.in_review` | integer | yes | Cases in review. |
| `dispositions.by_status.reopened` | integer | yes | Reopened cases. |
| `dispositions.median_time_to_disposition_hours` | number | yes | The median hours from a case opening to its decision. |
| `dollars_deterred` | object | yes | An estimate of the claim amounts denied or escalated for fraud. |
| `dollars_deterred.estimate` | integer | yes | The estimate. |
| `dollars_deterred.currency` | string | yes | The currency. |
| `dollars_deterred.claims_counted` | integer | yes | Claims in the estimate. |
| `dollars_deterred.claims_missing_amount` | integer | yes | Qualifying claims left out because they have no amount. |
| `dollars_deterred.methodology` | string | yes | How the estimate is calculated. |
| `factor_frequency` | array of objects | yes | How often each risk factor appeared. |
| `factor_frequency.factor` | string | yes | The risk factor's code. |
| `factor_frequency.count` | integer | yes | How many. |

### Example

```json
{
  "object": "analytics_summary",
  "window": {
    "from": "2026-08-10T02:17:39.845Z",
    "to": "2026-11-08T02:17:39.845Z"
  },
  "claims": {
    "total": 13,
    "by_status": {
      "verified": 8,
      "failed": 4,
      "partial": 1
    }
  },
  "risk": {
    "by_band": {
      "verified": 8,
      "partial": 1,
      "failed": 4
    },
    "mean_score": 38.08
  },
  "attested_mix": {
    "attested": 13,
    "unattested": 0
  },
  "screening": {
    "screened": 0,
    "flagged": 0
  },
  "dispositions": {
    "by_status": {
      "new": 4,
      "in_review": 1,
      "escalated": 1,
      "reopened": 1
    },
    "median_time_to_disposition_hours": 0
  },
  "dollars_deterred": {
    "estimate": 15000,
    "currency": "USD",
    "claims_counted": 1,
    "claims_missing_amount": 0,
    "methodology": "Sum of claim_amount for claims dispositioned denied/escalated with reason suspected_fraud or signature_invalid. An ESTIMATE; claims without a recorded amount are excluded and reported as claims_missing_amount, never imputed."
  },
  "factor_frequency": [
    {
      "factor": "biometric_absent",
      "count": 4
    },
    {
      "factor": "exif_missing",
      "count": 4
    },
    {
      "factor": "gps_absent",
      "count": 4
    },
    "… 7 more"
  ]
}
```

## Get the portfolio summary

`GET /v1/attest/analytics/summary`

*Available on Enterprise.*

Summarizes your claims over a window: statuses, risk bands, attested and unattested mix, screening, dispositions and an estimate of fraud deterred, with its method.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `created_gte` | query | timestamp | no | The start of the time window, as an ISO 8601 time. |
| `created_lte` | query | timestamp | no | The end of the time window, as an ISO 8601 time. |

### Returns

The portfolio summary. See [the analytics summary object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl "$PROVENANCE_API/v1/attest/analytics/summary" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/analytics/summary`, {
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/attest/analytics/summary", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}).json()
```

### Response 200

```json
{
  "object": "analytics_summary",
  "window": {
    "from": "2026-08-10T02:17:39.845Z",
    "to": "2026-11-08T02:17:39.845Z"
  },
  "claims": {
    "total": 13,
    "by_status": {
      "verified": 8,
      "failed": 4,
      "partial": 1
    }
  },
  "risk": {
    "by_band": {
      "verified": 8,
      "partial": 1,
      "failed": 4
    },
    "mean_score": 38.08
  },
  "attested_mix": {
    "attested": 13,
    "unattested": 0
  },
  "screening": {
    "screened": 0,
    "flagged": 0
  },
  "dispositions": {
    "by_status": {
      "new": 4,
      "in_review": 1,
      "escalated": 1,
      "reopened": 1
    },
    "median_time_to_disposition_hours": 0
  },
  "dollars_deterred": {
    "estimate": 15000,
    "currency": "USD",
    "claims_counted": 1,
    "claims_missing_amount": 0,
    "methodology": "Sum of claim_amount for claims dispositioned denied/escalated with reason suspected_fraud or signature_invalid. An ESTIMATE; claims without a recorded amount are excluded and reported as claims_missing_amount, never imputed."
  },
  "factor_frequency": [
    {
      "factor": "biometric_absent",
      "count": 4
    },
    {
      "factor": "exif_missing",
      "count": 4
    },
    {
      "factor": "gps_absent",
      "count": 4
    },
    "… 7 more"
  ]
}
```

## Get portfolio trends

`GET /v1/attest/analytics/trends`

*Available on Enterprise.*

Returns attestation counts by risk band per day or week over a window.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `bucket` | query | enum | no | The time bucket, `day` or `week`. One of `day`, `week`, `month`. |
| `created_gte` | query | timestamp | no | The start of the time window, as an ISO 8601 time. |
| `created_lte` | query | timestamp | no | The end of the time window, as an ISO 8601 time. |

### Returns

Attestation counts over time, by risk band.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl "$PROVENANCE_API/v1/attest/analytics/trends?bucket=week" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/analytics/trends?bucket=week`, {
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/attest/analytics/trends?bucket=week", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}).json()
```

### Response 200

```json
{
  "object": "analytics_trends",
  "window": {
    "from": "2026-08-10T02:17:41.849Z",
    "to": "2026-11-08T02:17:41.849Z"
  },
  "bucket": "week",
  "data": [
    {
      "bucket": "2026-11-02",
      "total": 13,
      "verified": 8,
      "partial": 1,
      "failed": 4
    }
  ]
}
```

## Get factor frequency

`GET /v1/attest/analytics/factors`

*Available on Enterprise.*

Returns how often each risk factor appeared over a window.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `created_gte` | query | timestamp | no | The start of the time window, as an ISO 8601 time. |
| `created_lte` | query | timestamp | no | The end of the time window, as an ISO 8601 time. |

### Returns

The risk factors that appear most, with counts and shares.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe
curl "$PROVENANCE_API/v1/attest/analytics/factors" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/analytics/factors`, {
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}` },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/attest/analytics/factors", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}).json()
```

### Response 200

```json
{
  "object": "analytics_factors",
  "window": {
    "from": "2026-08-10T02:17:43.748Z",
    "to": "2026-11-08T02:17:43.748Z"
  },
  "data": [
    {
      "factor": "biometric_absent",
      "count": 4,
      "share": 0.308
    },
    {
      "factor": "exif_missing",
      "count": 4,
      "share": 0.308
    },
    {
      "factor": "gps_absent",
      "count": 4,
      "share": 0.308
    },
    "… 7 more"
  ]
}
```
