---
title: "Evidence gaps"
method: GET
path: "/sites/{site}/evidence-items"
tags: ["Evidence"]
---

# Evidence gaps

`GET /sites/{site}/evidence-items`

## Request

- Base URL: `https://api.onelence.com/v1`
- URL: `https://api.onelence.com/v1/sites/{site}/evidence-items`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://api.onelence.com/oauth/authorize`, token URL `https://api.onelence.com/oauth/token`, scopes: `decisions:read`)
  - HTTP bearer

Missing or partial evidence behind sources, campaigns and partners, who needs to act and a link to it. action is null when OneLence offers no step to take now; url is null when the item has no page. Filter by source, entity type or work bucket.

## Path parameters

- `site` string, required

## Query parameters

- `start` string
- `end` string
- `source_id` string
- `entity_type` 'source' | 'campaign' | 'affiliate_partner'
- `bucket` 'operator_action_required' | 'collecting_or_unresolved' | 'system_unavailable' | 'conflict_requiring_review'
- `limit` integer
- `cursor` string

## Response `200`

Success.

- object
  - `object` 'list', required
  - `data` object[], required
    - `object` 'evidence_item', required
    - `entity` object, required
      - `type` string, required
      - `id` string, nullable, required
      - `source_id` string, nullable, required
      - `name` string, required
    - `bucket` 'operator_action_required' | 'collecting_or_unresolved' | 'system_unavailable' | 'conflict_requiring_review', nullable, required
    - `needs` object[], required
      - `evidence` string, required
      - `availability` string, nullable, required
      - `reason` string, nullable, required
      - `owner` string, nullable, required
    - `action` object, nullable, required
      - `label` string, required
      - `description` string, nullable, required
    - `url` string, nullable, required
  - `has_more` boolean, required
  - `next_cursor` string, nullable, required
  - `note` string, required
  - `summary` object, required
    - `total` number, nullable, required
    - `ready` number, nullable, required
    - `partial` number, nullable, required
    - `missing` number, nullable, required
    - `blocked` number, nullable, required

## Other responses

- `400`: Invalid input; `error.param` names the field.
- `401`: Missing, expired or revoked token. WWW-Authenticate points to the resource metadata.
- `402`: subscription_required or upgrade_required; the error carries billing_url.
- `403`: insufficient_scope or admin_required.
- `404`: Unknown endpoint, site, source or record.
- `429`: Rate limited. Retry after Retry-After seconds.
- `500`: OneLence could not complete the request.

---

[API](https://skmtc.dev/onelence/apis/onelence-api.md) · [All operations](https://skmtc.dev/onelence/apis/onelence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onelence/apis/onelence-api/revisions/971c72fe9a42?raw)
