---
title: "One check's findings from the latest run"
method: GET
path: "/v1/contract/findings"
tags: ["Content"]
---

# One check's findings from the latest run

`GET /v1/contract/findings`

## Request

- Base URL: `https://api.gunspec.io`
- URL: `https://api.gunspec.io/v1/contract/findings`
- Auth: one of:
  - none
  - API key in header `X-API-Key`
  - HTTP bearer

Every finding one check made in the latest run of a surface, a page at a time. A run carries a sample of twenty per check; the data check suites publish every finding as well, and this is where the whole list is read: one line per finding, the record first. For a run published before findings were stored, the sample is returned instead, and `published` says how many that is.

No API key required.

## Query parameters

- `check` string, required
- `surface` 'api' | 'mcp' | 'fitment' | 'catalogue' | 'integrity' | 'plausibility' | 'anomalies' | 'cartridges' | 'materials' | 'corroboration' | 'sources' | 'manufacturers' | 'links'
- `env` 'production' | 'staging' | 'local'
- `page` integer
- `per_page` integer

## Response `200`

One check's findings from the latest run

- object
  - `success` boolean, required: Always true on a successful response. Every error carries `false` and an `error` object instead.
  - `data` object, required: The response payload.
    - `check` string: The check.
    - `ranAt` string: When the run started.
    - `found` integer: How many the check found in all.
    - `published` integer: How many findings the run published; the rest were not stored.
    - `page` integer: This page.
    - `perPage` integer: Findings per page.
    - `pages` integer: How many pages there are.
    - `items` string[]: The findings on this page, one line each, the record first.
    - `tasks` object[]: Beside each item, where the record's data task for this check has got to, or null when it has none.
      - `stage` 'queued' | 'working' | 'proposed' | 'accepted', required: Queued for the data agent, being worked, proposed and waiting on a person, or accepted and on its way into the catalogue.
      - `action` 'research' | 'review', required: Research a value from a source, or review a judgement.
      - `tasks` integer, required: How many tasks the record has for this check; a research task is one per field.
      - `agent` string, nullable, required: The agent working it, while it is worked or proposed.
      - `list` object[], required: Each task behind the mark, most active first. Load one at `/v1/data/tasks/{number}`.
        - `number` integer, nullable, required: The task's number.
        - `key` string, required: The task's key.
        - `field` string, nullable, required: The record field it is about, where it is about one.
        - `stage` 'queued' | 'working' | 'proposed' | 'accepted', required: Where it has got to.
  - `pagination` Pagination: Page-size is reported under both `per_page` (matching the request parameter) and `limit` (retained for existing integrations). They always carry the same value. `total` and `totalPages` are omitted for Explorer and anonymous callers.
    - `page` integer, required: The page this response is, 1-based.
    - `per_page` integer, required: Page size. Same value as `limit`.
    - `limit` integer, required: Page size. Alias of `per_page`.
    - `total` integer: Total records matching the query across every page.
    - `totalPages` integer: How many pages the result set spans at the current `per_page`.

## Other responses

- `400`: Validation error
- `404`: Resource not found
- `429`: A limit was reached. `RATE_LIMITED` is the per-minute limit: wait `Retry-After` seconds (a minute) and retry. `DAILY_CAP_EXCEEDED` is the plan's daily limit, per key: nothing will be served until the counters return to zero at midnight UTC. `MONTHLY_CAP_EXCEEDED` is the plan's monthly allowance, for the whole account: nothing will be served until midnight UTC on the first of next month, or until the plan changes. For both, `Retry-After` is the seconds until then and `error.resetsAt` says when as an instant. Calls made after a refusal are refused too and do not spend the month, and a free key that keeps calling is paused, so stop at the first one and resume at the reset.
- `500`: Internal server error

---

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