# API reference

Generated from the [OpenAPI spec](openapi.json).

Base URL `https://api.supposing.app`. Send `Authorization: Bearer sp_...` with every request. Every error, at any status, has the body [Error](#error): a stable `code`, a `message`, and a `hint` saying what to do next. Lists take `?limit=` and `?cursor=` and return `{"data": [...], "next_cursor"}`; `next_cursor` is null on the last page.

## Account

### `GET /v1/me`

**Me.**

Returns 200: [Me](#me).

### `GET /v1/settings`

**Get Org Settings.**

Returns 200: [Settings](#settings).

### `GET /v1/account/deletion`

**Deletion Status.**

Returns 200: [DeletionStatus](#deletionstatus).

### `POST /v1/account/deletion`

**Delete this workspace, everything in it and its members' sign-in accounts, after a grace period. Type the workspace name to confirm.**

Body (application/json): [DeletionIn](#deletionin)

Returns 200: [DeletionStatus](#deletionstatus).

### `DELETE /v1/account/deletion`

**Cancel a pending deletion during the grace period.**

Returns 200: [DeletionStatus](#deletionstatus).

### `PUT /v1/settings/data-retention`

**Zero data retention for runs on your own OpenRouter key (runs on our key always use it).**

Body (application/json): [DataRetentionIn](#dataretentionin)

Returns 200: [Settings](#settings).

### `PUT /v1/settings/webhook`

**Set or clear the URL that run events are POSTed to.**

Body (application/json): [WebhookIn](#webhookin)

Returns 200: [WebhookSecret](#webhooksecret).

### `GET /v1/webhook-deliveries`

**Recent webhook deliveries, newest first, to debug a receiver.**

| Parameter | In | Type | |
|---|---|---|---|
| `cursor` | query | string or null |  |
| `limit` | query | integer |  |

Returns 200: [WebhookDeliveryList](#webhookdeliverylist).

### `PUT /v1/settings/openrouter-key`

**Set Openrouter Key.**

Body (application/json): [OpenRouterKeyIn](#openrouterkeyin)

Returns 200: [Settings](#settings).

### `GET /v1/usage`

**This month's runs, calls, tokens and spend, with the plan's limits.**

Returns 200: [Usage](#usage).

### `GET /v1/api-keys`

**List Api Keys.**

| Parameter | In | Type | |
|---|---|---|---|
| `cursor` | query | string or null |  |
| `limit` | query | integer |  |

Returns 200: [ApiKeyList](#apikeylist).

### `POST /v1/api-keys`

**Create Api Key.**

Body (application/json): [ApiKeyIn](#apikeyin)

Returns 201: [ApiKeyCreated](#apikeycreated).

### `DELETE /v1/api-keys/{key_id}`

**Revoke Api Key.**

| Parameter | In | Type | |
|---|---|---|---|
| `key_id` | path | string | required |

Returns 204.

## Billing

### `GET /v1/billing`

**Credit balance, what running runs hold, and top-up options.**

Returns 200: [Billing](#billing).

### `GET /v1/pricing`

**The price list for billed runs (no authentication).**

Returns 200: [Pricing](#pricing).

### `GET /v1/billing/ledger`

**Every credit movement, newest first: grants, top-ups, run holds and true-ups.**

| Parameter | In | Type | |
|---|---|---|---|
| `cursor` | query | string or null |  |
| `limit` | query | integer |  |

Returns 200: [LedgerList](#ledgerlist).

### `POST /v1/billing/checkout`

**Start a Stripe Checkout to buy credit.**

Body (application/json): [CheckoutIn](#checkoutin)

Returns 201: [CheckoutSession](#checkoutsession).

### `POST /v1/billing/portal`

**A link to Stripe's page for receipts and payment details.**

Returns 200: [PortalSession](#portalsession).

## Datasets

### `GET /v1/datasets`

**List Datasets.**

| Parameter | In | Type | |
|---|---|---|---|
| `include_ephemeral` | query | boolean |  |
| `cursor` | query | string or null |  |
| `limit` | query | integer |  |

Returns 200: [DatasetList](#datasetlist).

### `POST /v1/datasets`

**Create Dataset.**

Body (application/json): [DatasetIn](#datasetin)

Returns 201: [DatasetDetail](#datasetdetail).

### `POST /v1/datasets/upload`

**Create a dataset from files (.md, .txt, .html, .pdf, .docx), one item each; reports skipped files and likely duplicates.**

Body (multipart/form-data): [Body_upload_dataset](#body_upload_dataset)

Returns 201: [UploadResult](#uploadresult).

### `GET /v1/datasets/{dataset_id}`

**Get Dataset.**

| Parameter | In | Type | |
|---|---|---|---|
| `dataset_id` | path | string | required |

Returns 200: [DatasetDetail](#datasetdetail).

### `DELETE /v1/datasets/{dataset_id}`

**Delete Dataset.**

| Parameter | In | Type | |
|---|---|---|---|
| `dataset_id` | path | string | required |

Returns 204.

### `POST /v1/datasets/{dataset_id}/items`

**Add Items.**

| Parameter | In | Type | |
|---|---|---|---|
| `dataset_id` | path | string | required |

Body (application/json): list of [ItemIn](#itemin)

Returns 200: [DatasetDetail](#datasetdetail).

### `GET /v1/datasets/{dataset_id}/duplicates`

**Items whose texts are identical or nearly so (a warning; nothing is merged).**

| Parameter | In | Type | |
|---|---|---|---|
| `dataset_id` | path | string | required |

Returns 200: [DuplicateList](#duplicatelist).

### `POST /v1/imports`

**Upload a CSV, TSV or XLSX (one row per item) to preview it and get a guessed column mapping.**

Body (multipart/form-data): [Body_create_import](#body_create_import)

Returns 201: [ImportPreview](#importpreview).

### `GET /v1/imports/{import_id}`

**The preview again, or another sheet of the same workbook.**

| Parameter | In | Type | |
|---|---|---|---|
| `import_id` | path | string | required |
| `sheet` | query | string or null |  |

Returns 200: [ImportPreview](#importpreview).

### `POST /v1/imports/{import_id}/preview`

**What the judge would read for one row under a mapping, and the checks for the whole sheet.**

| Parameter | In | Type | |
|---|---|---|---|
| `import_id` | path | string | required |

Body (application/json): [ImportRowPreviewIn](#importrowpreviewin)

Returns 200: [ImportRowPreview](#importrowpreview).

### `POST /v1/imports/{import_id}/commit`

**Make the dataset from an import with your column mapping.**

| Parameter | In | Type | |
|---|---|---|---|
| `import_id` | path | string | required |

Body (application/json): [ImportCommitIn](#importcommitin)

Returns 201: [ImportResult](#importresult).

### `GET /v1/items/{item_id}`

**Get Item.**

| Parameter | In | Type | |
|---|---|---|---|
| `item_id` | path | string | required |

Returns 200: [Item](#item).

## Samples

### `GET /v1/samples`

**Sample datasets for a first ranking.**

Returns 200: [SampleList](#samplelist).

### `POST /v1/samples/{sample_id}/run`

**Copy a sample into this workspace and start a run on it (free mock judge by default).**

| Parameter | In | Type | |
|---|---|---|---|
| `sample_id` | path | string | required |

Body (application/json): [SampleRunIn](#samplerunin) or null

Returns 201: [Run](#run).

## Rubrics

### `GET /v1/rubric-templates`

**Starting points for a rubric: Grant review, Hiring shortlist, Essays, Model outputs, Blank.**

Returns 200: [RubricTemplateList](#rubrictemplatelist).

### `POST /v1/rubrics/render`

**What the judge is told for a rubric being edited (no judge call).**

Body (application/json): [RubricDraft](#rubricdraft)

Returns 200: [RubricRendered](#rubricrendered).

### `GET /v1/rubrics`

**List Rubrics.**

| Parameter | In | Type | |
|---|---|---|---|
| `cursor` | query | string or null |  |
| `limit` | query | integer |  |

Returns 200: [RubricList](#rubriclist).

### `POST /v1/rubrics`

**Create Rubric.**

Body (application/json): [RubricIn](#rubricin)

Returns 201: [Rubric](#rubric).

### `GET /v1/rubrics/{rubric_id}`

**Get Rubric.**

| Parameter | In | Type | |
|---|---|---|---|
| `rubric_id` | path | string | required |

Returns 200: [Rubric](#rubric).

### `PUT /v1/rubrics/{rubric_id}`

**Rename or rewrite a rubric. Runs already started keep the text they ran with.**

| Parameter | In | Type | |
|---|---|---|---|
| `rubric_id` | path | string | required |

Body (application/json): [RubricIn](#rubricin)

Returns 200: [Rubric](#rubric).

### `DELETE /v1/rubrics/{rubric_id}`

**Delete Rubric.**

| Parameter | In | Type | |
|---|---|---|---|
| `rubric_id` | path | string | required |

Returns 204.

## Runs

### `POST /v1/runs/estimate`

**Estimate a run's calls and cost without starting it.**

Body (application/json): [RunIn](#runin)

Returns 200: [Estimate](#estimate).

### `POST /v1/runs`

**Start a run.**

Body (application/json): [RunIn](#runin)

Returns 201: [Run](#run).

### `GET /v1/runs`

**List Runs.**

| Parameter | In | Type | |
|---|---|---|---|
| `dataset_id` | query | string or null |  |
| `rubric_id` | query | string or null |  |
| `include_ephemeral` | query | boolean |  |
| `cursor` | query | string or null |  |
| `limit` | query | integer |  |

Returns 200: [RunList](#runlist).

### `GET /v1/runs/compare`

**Compare two runs' rankings: correlation, top-k overlap and biggest movers.**

| Parameter | In | Type | |
|---|---|---|---|
| `a` | query | string | required |
| `b` | query | string | required |
| `top_k` | query | integer or null |  |

Returns 200: [RunComparison](#runcomparison).

### `GET /v1/runs/{run_id}`

**Get Run.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 200: [Run](#run).

### `DELETE /v1/runs/{run_id}`

**Delete Run.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 204.

### `POST /v1/runs/{run_id}/cancel`

**Cancel Run.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 200: [Run](#run).

### `POST /v1/runs/{run_id}/extend/estimate`

**What extending a finished run would cost.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Body (application/json): [ExtendIn](#extendin)

Returns 200: [Estimate](#estimate).

### `POST /v1/runs/{run_id}/extend`

**Run more rounds on a finished run, keeping its comparisons.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Body (application/json): [ExtendIn](#extendin)

Returns 200: [Run](#run).

### `POST /v1/runs/{run_id}/retry`

**Resume a failed or canceled run; decided comparisons are kept.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 200: [Run](#run).

### `GET /v1/runs/{run_id}/export.csv`

**The leaderboard as CSV, one row per item.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 200.

### `GET /v1/runs/{run_id}/export.json`

**The run, its results and every comparison with reasoning, as one JSON file.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 200: [RunExport](#runexport).

### `GET /v1/runs/{run_id}/results`

**A run's results: a one-sentence verdict, then the typed evidence.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 200: [Results](#results).

### `GET /v1/runs/{run_id}/comparisons`

**Run Comparisons.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |
| `item_id` | query | string or null |  |
| `status` | query | `"pending"` \| `"claimed"` \| `"done"` \| `"failed"` or null |  |
| `cursor` | query | string or null |  |
| `limit` | query | integer |  |

Returns 200: [ComparisonList](#comparisonlist).

### `GET /v1/runs/{run_id}/timeline`

**Run Timeline.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 200: list of [TimelineFrame](#timelineframe).

### `GET /v1/runs/{run_id}/events`

**Stream a run's progress as server-sent events until it finishes.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 200.

### `GET /v1/comparisons/{comparison_id}`

**Get Comparison.**

| Parameter | In | Type | |
|---|---|---|---|
| `comparison_id` | path | string | required |

Returns 200: [Comparison](#comparison).

## Sharing

### `GET /v1/runs/{run_id}/share`

**Get Share.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 200: [Share](#share).

### `PUT /v1/runs/{run_id}/share`

**Make a public link to this run's results (keeps the link if it exists).**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Body (application/json): [ShareIn](#sharein) or null

Returns 200: [Share](#share).

### `DELETE /v1/runs/{run_id}/share`

**Revoke the public link. Sharing again makes a new one.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 204.

### `GET /v1/public/runs/{token}`

**A shared run, without authentication.**

| Parameter | In | Type | |
|---|---|---|---|
| `token` | path | string | required |

Returns 200: [PublicRun](#publicrun).

### `GET /v1/public/runs/{token}/og.png`

**A shared run's link-preview image, 1200x630 (no authentication).**

| Parameter | In | Type | |
|---|---|---|---|
| `token` | path | string | required |

Returns 200.

### `GET /v1/public/runs/{token}/card`

**Open Graph and Twitter tags for a shared run, then a redirect to the share page.**

| Parameter | In | Type | |
|---|---|---|---|
| `token` | path | string | required |

Returns 200.

## People

### `PUT /v1/runs/{run_id}/items/{item_id}/exclusion`

**Take an item out of the ranking (ineligible, conflict, withdrawn, other); no new judge calls.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |
| `item_id` | path | string | required |

Body (application/json): [ExclusionIn](#exclusionin)

Returns 200: [ExcludedItem](#excludeditem).

### `DELETE /v1/runs/{run_id}/items/{item_id}/exclusion`

**Undo an exclusion.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |
| `item_id` | path | string | required |

Returns 204.

### `PUT /v1/runs/{run_id}/items/{item_id}/note`

**The committee's note on an item in this run; empty text removes it.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |
| `item_id` | path | string | required |

Body (application/json): [NoteIn](#notein)

Returns 200: [Note](#note) or null.

### `PUT /v1/runs/{run_id}/items/{item_id}/selection`

**Mark or unmark an item as the committee's choice (kept beside the judge's ranking).**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |
| `item_id` | path | string | required |

Body (application/json): [SelectionIn](#selectionin)

Returns 200: [Selection](#selection).

### `PUT /v1/comparisons/{comparison_id}/review`

**Check a verdict: 'Judge is right' or 'I disagree'. Never changes the ranking.**

| Parameter | In | Type | |
|---|---|---|---|
| `comparison_id` | path | string | required |

Body (application/json): [ReviewIn](#reviewin)

Returns 200: [Review](#review).

### `DELETE /v1/comparisons/{comparison_id}/review`

**Unreview Comparison.**

| Parameter | In | Type | |
|---|---|---|---|
| `comparison_id` | path | string | required |

Returns 204.

### `GET /v1/runs/{run_id}/activity`

**Every change people made on this run, newest first.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |
| `cursor` | query | string or null |  |
| `limit` | query | integer |  |

Returns 200: [ActivityList](#activitylist).

### `GET /v1/runs/{run_id}/export-decision.csv`

**The committee's selection as CSV: ID, title, rank, rank range, note, who and when.**

| Parameter | In | Type | |
|---|---|---|---|
| `run_id` | path | string | required |

Returns 200.

## Oauth

### `GET /v1/oauth/requests/{request_id}`

**Get Request.** A pending connection, for the consent page.

| Parameter | In | Type | |
|---|---|---|---|
| `request_id` | path | string | required |

Returns 200: [OAuthRequest](#oauthrequest).

### `POST /v1/oauth/requests/{request_id}/approve`

**Approve.** Grant the client access to this workspace. Returns where to send the browser.

| Parameter | In | Type | |
|---|---|---|---|
| `request_id` | path | string | required |

Returns 200: [OAuthRedirect](#oauthredirect).

### `POST /v1/oauth/requests/{request_id}/deny`

**Deny.**

| Parameter | In | Type | |
|---|---|---|---|
| `request_id` | path | string | required |

Returns 200: [OAuthRedirect](#oauthredirect).

### `GET /v1/oauth/grants`

**List Grants.** MCP clients connected to this workspace with OAuth.

Returns 200: [OAuthGrantList](#oauthgrantlist).

### `DELETE /v1/oauth/grants/{grant_id}`

**Delete Grant.** Disconnect a client: its tokens stop working at once.

| Parameter | In | Type | |
|---|---|---|---|
| `grant_id` | path | string | required |

Returns 204.

## Schemas

### Activity

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `kind` | `"excluded"` \| `"unexcluded"` \| `"note"` \| `"note_removed"` \| `"selected"` \| `"unselected"` \| `"reviewed"` \| `"review_removed"` | required. |
| `item_id` | string or null | required. |
| `comparison_id` | string or null | required. |
| `by_name` | string | required. |
| `detail` | object | required. |
| `created_at` | string | required. |

### ActivityList

| Field | Type | |
|---|---|---|
| `data` | list of [Activity](#activity) | required. |
| `next_cursor` | string or null | required. |

### ApiKey

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `name` | string | required. |
| `prefix` | string | required. |
| `created_at` | string | required. |
| `last_used_at` | string or null | required. |

### ApiKeyCreated

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `name` | string | required. |
| `prefix` | string | required. |
| `created_at` | string | required. |
| `last_used_at` | string or null | required. |
| `key` | string | required. Shown once. Store it now. |

### ApiKeyIn

| Field | Type | |
|---|---|---|
| `name` | string | required. |

### ApiKeyList

| Field | Type | |
|---|---|---|
| `data` | list of [ApiKey](#apikey) | required. |
| `next_cursor` | string or null | required. |

### Billing

| Field | Type | |
|---|---|---|
| `enabled` | boolean | required. False when this server has no payment provider; billed runs are then off. |
| `balance_usd` | number | required. Credit available for new runs (holds of running runs are taken out). |
| `held_usd` | number | required. Credit held by queued and running runs and not yet spent. |
| `topup_options_usd` | list of integer | required. |
| `min_topup_usd` | integer | required. |
| `max_topup_usd` | integer | required. |
| `free_grant_usd` | number | required. Welcome credit every new workspace gets. |
| `topup_url` | string | required. The web page where people add credit. |

### Body_create_import

| Field | Type | |
|---|---|---|
| `file` | string | required. |
| `sheet` | string or null |  |

### Body_upload_dataset

| Field | Type | |
|---|---|---|
| `name` | string | required. |
| `files` | list of string | required. |
| `ephemeral` | boolean | default `false`. |
| `redact` | boolean | default `false`. Blind review: remove 'Applicant: ...' and similar lines, emails and phone numbers from what the judge reads. |

### CheckoutIn

| Field | Type | |
|---|---|---|
| `amount_usd` | integer | required. Whole US dollars, 5 to 1000. |
| `success_url` | string or null |  |
| `cancel_url` | string or null |  |

### CheckoutSession

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `url` | string | required. Send the customer here to pay. Credit arrives when Stripe confirms the payment. |

### Comparison

One judge call: two items, a rubric, a verdict.

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `run_id` | string | required. |
| `round` | integer | required. |
| `pair_id` | integer | required. |
| `item_a` | string | required. |
| `item_b` | string | required. |
| `title_a` | string | required. |
| `title_b` | string | required. |
| `source_id_a` | string or null | required. |
| `source_id_b` | string or null | required. |
| `counted` | boolean | required. False while either item is excluded by people. |
| `reviews` | list of [Review](#review) | required. People's checks of this verdict. |
| `status` | `"pending"` \| `"claimed"` \| `"done"` \| `"failed"` | required. |
| `winner_item` | string or null | required. |
| `reasoning` | string or null | required. |
| `error` | string or null | required. |
| `cost_usd` | number or null | required. |
| `latency_ms` | integer or null | required. |
| `finished_at` | string or null | required. |

### ComparisonList

| Field | Type | |
|---|---|---|
| `data` | list of [Comparison](#comparison) | required. |
| `next_cursor` | string or null | required. |

### Criterion-Input

One part of a rubric. The judge is told the weights when they differ.

| Field | Type | |
|---|---|---|
| `name` | string | required. |
| `description` | string | default `""`. |
| `weight` | number | default `1.0`. Relative to the other criteria. |

### Criterion-Output

One part of a rubric. The judge is told the weights when they differ.

| Field | Type | |
|---|---|---|
| `name` | string | required. |
| `description` | string | required. |
| `weight` | number | required. Relative to the other criteria. |

### DataRetentionIn

| Field | Type | |
|---|---|---|
| `zero_data_retention` | boolean | required. For runs on your own OpenRouter key: route only to providers that keep no data. Runs on our key always do. |

### Dataset

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `name` | string | required. |
| `created_at` | string | required. |
| `n_items` | integer | required. |
| `source` | `"web"` \| `"api"` \| `"cli"` \| `"mcp"` | required. Where it was made: web, api, cli or mcp (the Supposing-Source header). |
| `ephemeral` | boolean | required. |
| `mapping` | [DatasetMapping](#datasetmapping) or null | required. For an imported spreadsheet: which columns the judge reads and which are kept only for people. |

### DatasetDetail

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `name` | string | required. |
| `created_at` | string | required. |
| `n_items` | integer | required. |
| `source` | `"web"` \| `"api"` \| `"cli"` \| `"mcp"` | required. Where it was made: web, api, cli or mcp (the Supposing-Source header). |
| `ephemeral` | boolean | required. |
| `mapping` | [DatasetMapping](#datasetmapping) or null | required. For an imported spreadsheet: which columns the judge reads and which are kept only for people. |
| `items` | list of [ItemSummary](#itemsummary) | required. |

### DatasetIn

| Field | Type | |
|---|---|---|
| `name` | string | required. |
| `items` | list of [ItemIn](#itemin) |  |
| `ephemeral` | boolean | default `false`. True for a throwaway, such as an inline one-shot comparison: hidden from lists unless include_ephemeral=true, and deleted after 30 days. |

### DatasetList

| Field | Type | |
|---|---|---|
| `data` | list of [Dataset](#dataset) | required. |
| `next_cursor` | string or null | required. Pass as ?cursor= for the next page; null on the last page. |

### DatasetMapping

| Field | Type | |
|---|---|---|
| `id_field` | string or null | required. Your ID for each row (kept as source_id). |
| `title_field` | string or null | required. The title people see. Defaults to id_field. |
| `text_fields` | list of string | required. What the judge reads, in order; with more than one, each is under a '## <column>' heading. |
| `metadata_fields` | list of string | required. Kept for people, never shown to the judge. |
| `filename` | string | required. |
| `sheet` | string or null | required. |

### DeletionIn

| Field | Type | |
|---|---|---|
| `confirm` | string | required. The workspace's name, typed exactly, to confirm. |

### DeletionStatus

Whether this workspace is due to be deleted. Until due_at the request can be cancelled.

| Field | Type | |
|---|---|---|
| `workspace` | string | required. |
| `requested_at` | string or null | required. |
| `due_at` | string or null | required. When everything is deleted; null if no deletion is pending. |
| `requested_by` | string or null | required. |
| `grace_days` | integer | required. |

### Diagnostics

How far the judge can be trusted. Null means not enough calls yet to tell.

| Field | Type | |
|---|---|---|
| `decided` | integer | required. Calls with a verdict. |
| `n_items` | integer or null | required. |
| `first_position_win_rate` | number or null | required. Share of calls won by the item shown first. 0.5 is unbiased. |
| `order_consistency` | number or null | required. Share of pairs judged in both orders that got the same winner both times. |
| `pairs_both_orders` | integer | required. |
| `first_shown_won_both` | number or null | required. Share of pairs judged both ways where the first-shown text won both times. |
| `second_shown_won_both` | number or null | required. Share of pairs judged both ways where the second-shown text won both times. |
| `ranking_agreement` | number or null | required. Share of verdicts the final ranking agrees with. |
| `split_half_reliability` | number or null | required. Rank correlation between rankings built from two random halves of the calls. |
| `length_correlation` | number or null | required. Rank correlation between word count and rating. Far from 0 suggests a length bias. |
| `upsets` | list of [Upset](#upset) | required. Biggest upsets first, at most 25. |
| `people_agreement` | [PeopleAgreement](#peopleagreement) or null | required. People's checks of the judge's verdicts; null until someone checks one. |
| `reliability` | [Reliability](#reliability) | required. |

### DisplayGroup

How the ranking is drawn: settled / close calls / out for top-N runs, else one group per clear tier.

| Field | Type | |
|---|---|---|
| `key` | string | required. |
| `label` | string | required. |
| `tier` | integer | required. Colour step, 1 (best) to 4. |
| `close` | boolean | required. The contested group, drawn askew. |
| `item_ids` | list of string | required. |

### DuplicateGroup

Items whose texts are the same (identical) or nearly so (near). A warning: nothing is merged or dropped.

| Field | Type | |
|---|---|---|
| `kind` | `"identical"` \| `"near"` | required. |
| `similarity` | number | required. Share of five-word phrases in common, 0 to 1. |
| `items` | list of [DuplicateRef](#duplicateref) | required. |

### DuplicateList

| Field | Type | |
|---|---|---|
| `data` | list of [DuplicateGroup](#duplicategroup) | required. |
| `next_cursor` | string or null | required. |

### DuplicateRef

| Field | Type | |
|---|---|---|
| `item_id` | string | required. |
| `title` | string | required. |
| `source_id` | string or null | required. |

### Error

The body of every non-2xx response.

| Field | Type | |
|---|---|---|
| `code` | string | required. Stable machine-readable code, e.g. dataset_not_found. |
| `message` | string | required. |
| `hint` | string or null | What to do next. |
| `details` | list of [ErrorDetail](#errordetail) or null | Per-field problems, for invalid_request. |

### ErrorDetail

| Field | Type | |
|---|---|---|
| `field` | string | required. Dotted path to the field, e.g. ranking.rubric. |
| `message` | string | required. |

### Estimate

What a run would cost before it starts. Show this before every run.

| Field | Type | |
|---|---|---|
| `type` | `"ranking"` | required. |
| `n_items` | integer | required. |
| `max_calls` | integer | required. Calls if every round runs. |
| `min_calls` | integer | required. Calls if the run stops at the earliest point it can. |
| `est_input_tokens` | integer | required. For max_calls. |
| `est_output_tokens` | integer | required. For max_calls. |
| `billed` | boolean | required. True when the run uses our OpenRouter key and is paid from the workspace's credit. Runs on your own key, mock and claude_cli are never billed. |
| `price_tier` | string or null | required. The judge model's price tier, for billed runs. |
| `price_per_call_usd` | number or null | required. What one judge call costs a billed run. A call reads up to 24,000 characters of the two items; longer pairs count as more than one call. |
| `est_cost_usd` | number or null | required. What the run costs you at most, capped by max_cost_usd. Billed runs: credit, at price_per_call_usd. Your own key: the model's list price, paid to OpenRouter. 0 for mock and claude_cli. Null when unknown. |
| `est_cost_usd_min` | number or null | required. The same for min_calls. |
| `balance_usd` | number or null | required. Billed runs: the workspace's credit now, net of what running runs hold. |
| `balance_after_usd` | number or null | required. Billed runs: balance_usd minus est_cost_usd, the credit left once this run holds its estimate. Below zero, starting the run is refused with insufficient_credit. |
| `est_seconds` | integer | required. Rough wall-clock time for max_calls. |
| `data_policy` | `"zero_retention"` \| `"provider_default"` \| `"none"` | required. zero_retention: every call goes only to providers that keep no data and don't collect it. provider_default: the provider's own terms. none: no outside model (mock). |
| `zdr_available` | boolean or null | required. Under zero_retention, whether the model has a provider that complies; false means the run would be refused. Null when unknown or not needed. |
| `usd_per_mtok_input` | number or null | required. Model list price per million input tokens, for runs on your own key; null for billed runs. |
| `usd_per_mtok_output` | number or null | required. The same for output tokens. |

### ExcludedItem

An item a person took out of the ranking. Reversible; its comparisons are kept but not counted.

| Field | Type | |
|---|---|---|
| `item_id` | string | required. |
| `title` | string or null | required. |
| `source_id` | string or null | required. |
| `reason` | `"ineligible"` \| `"conflict"` \| `"withdrawn"` \| `"other"` | required. |
| `detail` | string or null | required. |
| `by_name` | string or null | required. |
| `created_at` | string or null | required. |
| `note` | string or null | required. |

### ExclusionIn

| Field | Type | |
|---|---|---|
| `reason` | `"ineligible"` \| `"conflict"` \| `"withdrawn"` \| `"other"` | required. |
| `detail` | string or null | Required for other. |

### ExtendIn

| Field | Type | |
|---|---|---|
| `rounds` | integer | default `4`. How many more rounds to run. |
| `max_cost_usd` | number or null | A new spend cap for the whole run; default keeps the current one. |

### ImportCheck

| Field | Type | |
|---|---|---|
| `kind` | `"duplicate_ids"` \| `"duplicate_titles"` \| `"personal_hidden"` \| `"empty_text"` \| `"too_long"` \| `"duplicate_texts"` | required. |
| `tone` | `"bad"` \| `"warn"` \| `"good"` | required. |
| `message` | string | required. |
| `rows` | list of integer | required. Data rows it is about, 1 for the first row under the header. |

### ImportColumn

| Field | Type | |
|---|---|---|
| `name` | string | required. |
| `filled` | number | required. Share of rows with a value, 0 to 1. |
| `avg_chars` | integer | required. |
| `max_chars` | integer | required. |
| `unique` | boolean | required. Every row has a different, non-empty value. |
| `distinct` | integer | required. How many different non-empty values. |
| `personal` | boolean | required. Looks personal or identifying (name, email, date...): hide it from the judge. |
| `samples` | list of string | required. |

### ImportCommitIn

| Field | Type | |
|---|---|---|
| `name` | string | required. |
| `sheet` | string or null |  |
| `mapping` | [ImportMapping-Input](#importmapping-input) | required. |
| `ephemeral` | boolean | default `false`. |

### ImportMapping-Input

Which columns become what. The judge reads only text_fields; columns in no list are dropped.

| Field | Type | |
|---|---|---|
| `id_field` | string or null | Your ID for each row (kept as source_id). |
| `title_field` | string or null | The title people see. Defaults to id_field. |
| `text_fields` | list of string | required. What the judge reads, in order; with more than one, each is under a '## <column>' heading. |
| `metadata_fields` | list of string | Kept for people, never shown to the judge. |

### ImportMapping-Output

Which columns become what. The judge reads only text_fields; columns in no list are dropped.

| Field | Type | |
|---|---|---|
| `id_field` | string or null | required. Your ID for each row (kept as source_id). |
| `title_field` | string or null | required. The title people see. Defaults to id_field. |
| `text_fields` | list of string | required. What the judge reads, in order; with more than one, each is under a '## <column>' heading. |
| `metadata_fields` | list of string | required. Kept for people, never shown to the judge. |

### ImportPreview

A parsed spreadsheet waiting for its mapping. Commit it to make the dataset.

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `filename` | string | required. |
| `format` | `"csv"` \| `"xlsx"` | required. |
| `sheets` | list of string | required. Sheet names for a workbook; empty for CSV. |
| `sheet` | string or null | required. |
| `n_rows` | integer | required. |
| `columns` | list of [ImportColumn](#importcolumn) | required. |
| `rows` | list of list of string | required. The first rows, cells cut to 300 characters. |
| `mapping` | [ImportMapping-Output](#importmapping-output) | required. Our guess: personal and date columns go to metadata. |
| `warnings` | list of string | required. |

### ImportResult

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `name` | string | required. |
| `created_at` | string | required. |
| `n_items` | integer | required. |
| `source` | `"web"` \| `"api"` \| `"cli"` \| `"mcp"` | required. Where it was made: web, api, cli or mcp (the Supposing-Source header). |
| `ephemeral` | boolean | required. |
| `mapping` | [DatasetMapping](#datasetmapping) or null | required. For an imported spreadsheet: which columns the judge reads and which are kept only for people. |
| `items` | list of [ItemSummary](#itemsummary) | required. |
| `skipped` | list of [SkippedRow](#skippedrow) | required. |
| `duplicates` | list of [DuplicateGroup](#duplicategroup) | required. |

### ImportRowPreview

One row under a mapping (plus any others asked for in rows), and the checks for the whole sheet.

| Field | Type | |
|---|---|---|
| `row` | integer | required. |
| `source_id` | string or null | required. |
| `title` | string | required. |
| `text` | string | required. Exactly the text the judge would read for this row. The title is not in it unless its column is one of the text_fields. |
| `words` | integer | required. |
| `hidden` | map of string | required. The row's ID, title and metadata: kept for people, never judged. |
| `n_rows` | integer | required. |
| `items` | list of [ImportRowText](#importrowtext) | required. The rows asked for in rows, in order. |
| `checks` | list of [ImportCheck](#importcheck) | required. |

### ImportRowPreviewIn

| Field | Type | |
|---|---|---|
| `sheet` | string or null |  |
| `mapping` | [ImportMapping-Input](#importmapping-input) | required. |
| `row` | integer | default `1`. Data row, 1 for the first row under the header. |
| `rows` | list of integer | More rows to preview at once (up to 50); returned in items. |

### ImportRowText

| Field | Type | |
|---|---|---|
| `row` | integer | required. |
| `source_id` | string or null | required. |
| `title` | string | required. |
| `text` | string | required. Exactly the text the judge would read for this row. The title is not in it unless its column is one of the text_fields. |
| `words` | integer | required. |
| `hidden` | map of string | required. The row's ID, title and metadata: kept for people, never judged. |

### Item

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `title` | string | required. The document's first heading, else its file name without the extension. |
| `filename` | string or null | required. |
| `source_id` | string or null | required. Where the item came from: the import's ID column, else an ID in the file name, else the file name. |
| `n_words` | integer | required. |
| `n_chars` | integer | required. |
| `text` | string | required. Exactly what the judge reads. |
| `metadata` | map of string | required. Kept for people; never shown to the judge. |

### ItemIn

| Field | Type | |
|---|---|---|
| `title` | string | required. |
| `text` | string | required. |
| `filename` | string or null | Where the text came from, if a file. |
| `source_id` | string or null | Your ID for the item, e.g. the application number. Kept in every export; never shown to the judge. |
| `metadata` | map of string | Fields kept for people (name, email, date...). Never shown to the judge. |

### ItemSummary

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `title` | string | required. The document's first heading, else its file name without the extension. |
| `filename` | string or null | required. |
| `source_id` | string or null | required. Where the item came from: the import's ID column, else an ID in the file name, else the file name. |
| `n_words` | integer | required. |
| `n_chars` | integer | required. |

### Judge-Input

The model that makes each call in a run.

| Field | Type | |
|---|---|---|
| `provider` | `"openrouter"` \| `"mock"` \| `"claude_cli"` | default `"openrouter"`. openrouter bills the org's key (or the platform's); mock is free and instant, for tests; claude_cli (your Claude subscription) works only in local development, never on the hosted API: use the open-source CLI for it. |
| `model` | string | default `"anthropic/claude-haiku-5.5"`. An OpenRouter model id. |

### Judge-Output

The model that makes each call in a run.

| Field | Type | |
|---|---|---|
| `provider` | `"openrouter"` \| `"mock"` \| `"claude_cli"` | required. openrouter bills the org's key (or the platform's); mock is free and instant, for tests; claude_cli (your Claude subscription) works only in local development, never on the hosted API: use the open-source CLI for it. |
| `model` | string | required. An OpenRouter model id. |

### JudgeCheck

| Field | Type | |
|---|---|---|
| `key` | string | required. |
| `label` | string | required. |
| `value` | number or null | required. The number, or null when not measured yet. |
| `shown` | string | required. The number as text, e.g. 92%. |
| `grade` | `"good"` \| `"caution"` \| `"poor"` or null | required. |
| `note` | string | required. What the number means. |
| `warning` | string | required. One clause to say when the grade is poor. |

### Leader

The top item of a finished run, for lists.

| Field | Type | |
|---|---|---|
| `item_id` | string | required. |
| `title` | string or null | required. |
| `source_id` | string or null | required. |
| `rating` | number | required. |
| `rating_lo` | number | required. |
| `rating_hi` | number | required. |
| `rank_lo` | integer | required. |
| `rank_hi` | integer | required. |

### LeaderboardEntry

| Field | Type | |
|---|---|---|
| `item_id` | string | required. |
| `title` | string or null | required. |
| `source_id` | string or null | required. |
| `selected` | boolean | required. The committee's final choice (a person's mark, not the judge's). |
| `selected_by` | string or null | required. |
| `selected_at` | string or null | required. |
| `note` | string or null | required. The committee's note on this item in this run. |
| `note_by` | string or null | required. |
| `n_words` | integer or null | required. |
| `rating` | number | required. Elo-scale strength; only differences matter. |
| `rating_lo` | number | required. |
| `rating_hi` | number | required. |
| `rank` | integer | required. |
| `rank_lo` | integer | required. Best rank inside the interval. |
| `rank_hi` | integer | required. Worst rank inside the interval. |
| `wins` | integer | required. |
| `losses` | integer | required. |
| `p_top_n` | number or null | required. Chance the item is in the top_n (goal top_n only). |

### LedgerEntry

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `kind` | `"grant"` \| `"topup"` \| `"hold"` \| `"trueup"` \| `"refund"` \| `"adjustment"` | required. |
| `amount_usd` | number | required. Positive adds credit, negative spends it. |
| `run_id` | string or null | required. |
| `note` | string or null | required. |
| `created_at` | string | required. |

### LedgerList

| Field | Type | |
|---|---|---|
| `data` | list of [LedgerEntry](#ledgerentry) | required. |
| `next_cursor` | string or null | required. |

### Me

| Field | Type | |
|---|---|---|
| `org_id` | string | required. |
| `org_name` | string | required. |
| `user_id` | string or null | required. |
| `email` | string or null | required. |
| `via` | string | required. |

### Mover

| Field | Type | |
|---|---|---|
| `item_id` | string | required. |
| `title` | string or null | required. |
| `rank_a` | integer | required. |
| `rank_b` | integer | required. |
| `rank_change` | integer | required. rank_a - rank_b: positive means the item placed higher in run b. |

### Note

| Field | Type | |
|---|---|---|
| `item_id` | string | required. |
| `text` | string | required. |
| `by_name` | string | required. |
| `updated_at` | string | required. |

### NoteIn

| Field | Type | |
|---|---|---|
| `text` | string | required. Empty removes the note. |

### OAuthGrant

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `client_id` | string | required. |
| `client_name` | string | required. |
| `redirect_host` | string | required. |
| `scope` | string | required. |
| `created_at` | string | required. |
| `last_used_at` | string or null | required. |

### OAuthGrantList

| Field | Type | |
|---|---|---|
| `data` | list of [OAuthGrant](#oauthgrant) | required. |

### OAuthRedirect

| Field | Type | |
|---|---|---|
| `redirect_url` | string | required. |

### OAuthRequest

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `client_id` | string | required. |
| `client_name` | string | required. |
| `client_kind` | string | required. cimd: the client is identified by a URL we fetched; dcr: self-registered. |
| `client_host` | string or null | required. For cimd clients, the host that published the client's metadata: the client's real identity. The name is the client's own claim either way. |
| `localhost_only` | boolean | required. Every redirect URI is on this computer (localhost): the client is a program running locally, which any program can claim to be. |
| `redirect_host` | string | required. Where the browser goes after you approve. Show it to the person. |
| `scope` | list of string | required. |
| `access` | list of string | required. What approving lets the client do, in plain words. |
| `org_id` | string | required. |
| `org_name` | string | required. |
| `expires_at` | string | required. |

### OpenRouterKeyIn

| Field | Type | |
|---|---|---|
| `key` | string or null | An OpenRouter API key, or null to remove it. |

### PeopleAgreement

How often people who checked a verdict agreed with the judge. Disagreements never change the ranking.

| Field | Type | |
|---|---|---|
| `agreed` | integer | required. |
| `checked` | integer | required. |

### PeopleSummary

| Field | Type | |
|---|---|---|
| `excluded` | integer | required. |
| `notes` | integer | required. |
| `disagreements` | integer | required. |
| `selected` | integer | required. |

### PlanLimits

| Field | Type | |
|---|---|---|
| `items_per_dataset` | integer | required. |
| `runs_per_month` | integer | required. |
| `platform_spend_usd_per_month` | number | required. Model spend included each month on our OpenRouter key. Spend on your own key is not capped. |

### PortalSession

| Field | Type | |
|---|---|---|
| `url` | string | required. Stripe's page for receipts and payment details. |

### PriceTier

| Field | Type | |
|---|---|---|
| `name` | string | required. |
| `price_per_call_usd` | number | required. |
| `examples` | list of string | required. Models in this tier. Any OpenRouter model is placed by its list price. |

### Pricing

What billed runs (on our OpenRouter key) cost. Runs on your own key, mock and claude_cli are free.

| Field | Type | |
|---|---|---|
| `provisional` | boolean | required. True while prices are placeholders and may change. |
| `unit_chars` | integer | required. Characters of the two items one call covers; longer pairs count as more calls. |
| `free_grant_usd` | number | required. |
| `min_topup_usd` | integer | required. |
| `max_topup_usd` | integer | required. |
| `tiers` | list of [PriceTier](#pricetier) | required. |

### Progress

| Field | Type | |
|---|---|---|
| `total` | integer | required. |
| `done` | integer | required. |
| `failed` | integer | required. |
| `in_flight` | integer | required. |
| `pending` | integer | required. |
| `round` | integer | required. |
| `cost_usd` | number | required. |
| `avg_latency_ms` | number or null | required. Mean of the last 20 decided calls; null before any. |
| `concurrency` | integer | required. Calls the workers run at once for one run. For time left: remaining calls x avg_latency_ms / concurrency, roughly. |

### PublicComparison

| Field | Type | |
|---|---|---|
| `item_a` | string | required. |
| `item_b` | string | required. |
| `winner_item` | string or null | required. |
| `reasoning` | string or null | required. |

### PublicItem

| Field | Type | |
|---|---|---|
| `item_id` | string | required. |
| `title` | string | required. |
| `source_id` | string or null | required. |
| `text` | string | required. |

### PublicRun

A shared run as anyone with the link sees it.

| Field | Type | |
|---|---|---|
| `name` | string | required. |
| `type` | `"ranking"` | required. |
| `rubric` | string | required. |
| `data_policy` | `"zero_retention"` \| `"provider_default"` \| `"none"` | required. |
| `goal` | `"full"` \| `"top_n"` | required. full ranks every item; top_n looks for the best top_n. |
| `top_n` | integer or null | required. The size of the cut for a top_n run; null for full. |
| `judge_model` | string | required. |
| `n_items` | integer | required. |
| `finished_at` | string or null | required. |
| `results` | [Results](#results) | required. |
| `items` | list of [PublicItem](#publicitem) or null | required. Only when the owner shared texts. |
| `comparisons` | list of [PublicComparison](#publiccomparison) or null | required. Only when the owner shared texts. |

### RankingConfig-Input

Settings for a run of type ``ranking``: a pairwise tournament judged against a rubric.

| Field | Type | |
|---|---|---|
| `rubric` | string | required. What the judge should prefer, in plain words. Each call shows the judge two items and this rubric and asks which is better. |
| `criteria` | list of [Criterion-Input](#criterion-input) | Optional named criteria with relative weights. |
| `instructions` | string or null | Optional extra judge instructions. |
| `rounds` | integer | default `8`. Opponents per item. More rounds, tighter intervals. |
| `both_orders` | boolean | default `true`. Judge every pair twice, swapping which item comes first, so position bias cancels out. |
| `pairing` | `"swiss"` \| `"random"` \| `"round_robin"` | default `"swiss"`. swiss pairs items of similar rating; round_robin judges every pair each round (small sets only; not with goal top_n). |
| `goal` | `"full"` \| `"top_n"` | default `"full"`. top_n spends calls on finding the best top_n items rather than ordering the whole list. |
| `top_n` | integer | default `10`. |
| `max_chars` | integer | default `60000`. Items longer than this are cut before judging. |
| `seed` | integer | default `0`. |

### RankingConfig-Output

Settings for a run of type ``ranking``: a pairwise tournament judged against a rubric.

| Field | Type | |
|---|---|---|
| `rubric` | string | required. What the judge should prefer, in plain words. Each call shows the judge two items and this rubric and asks which is better. |
| `criteria` | list of [Criterion-Output](#criterion-output) | required. Optional named criteria with relative weights. |
| `instructions` | string or null | required. Optional extra judge instructions. |
| `rounds` | integer | required. Opponents per item. More rounds, tighter intervals. |
| `both_orders` | boolean | required. Judge every pair twice, swapping which item comes first, so position bias cancels out. |
| `pairing` | `"swiss"` \| `"random"` \| `"round_robin"` | required. swiss pairs items of similar rating; round_robin judges every pair each round (small sets only; not with goal top_n). |
| `goal` | `"full"` \| `"top_n"` | required. top_n spends calls on finding the best top_n items rather than ordering the whole list. |
| `top_n` | integer | required. |
| `max_chars` | integer | required. Items longer than this are cut before judging. |
| `seed` | integer | required. |

### RankingResults

| Field | Type | |
|---|---|---|
| `leaderboard` | list of [LeaderboardEntry](#leaderboardentry) | required. Ranked without any excluded items. |
| `groups` | list of [DisplayGroup](#displaygroup) | required. The engine's display groups (supposing.display_groups), best first; every surface draws these. |
| `excluded` | list of [ExcludedItem](#excludeditem) | required. Taken out by people, with why. |
| `diagnostics` | [Diagnostics](#diagnostics) | required. |
| `interval` | string | required. Confidence level of every interval, e.g. 90%. |
| `n_bootstrap` | integer | required. |

### Reliability

The judge checks graded, worst first, in one plain sentence (from the engine).

| Field | Type | |
|---|---|---|
| `grade` | `"good"` \| `"caution"` \| `"poor"` or null | required. The worst graded check; null when too few calls to grade. |
| `line` | string | required. |
| `checks` | list of [JudgeCheck](#judgecheck) | required. |

### Results

A run's results. ``summary`` is the verdict in one sentence; the typed body is under the run's type.

| Field | Type | |
|---|---|---|
| `run_id` | string | required. |
| `type` | `"ranking"` | required. |
| `final` | boolean | required. False while the run is still going; results will change. |
| `summary` | string | required. |
| `ranking` | [RankingResults](#rankingresults) | required. |

### Review

A person's check of one verdict: "Judge is right" or "I disagree" (with their winner).

| Field | Type | |
|---|---|---|
| `by_name` | string | required. |
| `agrees` | boolean | required. |
| `winner_item` | string or null | required. |
| `reason` | string or null | required. |
| `updated_at` | string | required. |

### ReviewIn

| Field | Type | |
|---|---|---|
| `agrees` | boolean | required. |
| `winner_item` | string or null | Your winner when you disagree. |
| `reason` | string or null |  |

### Rubric

A saved rubric. Runs copy its text when they start, so editing it never changes past runs.

| Field | Type | |
|---|---|---|
| `name` | string | required. |
| `text` | string | required. What the judge should prefer, in plain words. |
| `criteria` | list of [Criterion-Output](#criterion-output) | required. |
| `instructions` | string or null | required. Extra instructions for the judge, e.g. 'Ignore spelling.' |
| `id` | string | required. |
| `created_at` | string | required. |
| `updated_at` | string | required. |
| `n_runs` | integer | required. |

### RubricDraft

A rubric being edited, to see what the judge would be told.

| Field | Type | |
|---|---|---|
| `text` | string | default `""`. |
| `criteria` | list of [Criterion-Input](#criterion-input) |  |
| `instructions` | string or null |  |

### RubricIn

A rubric, as supposing.Rubric: plain text, optionally named weighted criteria and judge instructions.

| Field | Type | |
|---|---|---|
| `name` | string | required. |
| `text` | string | required. What the judge should prefer, in plain words. |
| `criteria` | list of [Criterion-Input](#criterion-input) |  |
| `instructions` | string or null | Extra instructions for the judge, e.g. 'Ignore spelling.' |

### RubricList

| Field | Type | |
|---|---|---|
| `data` | list of [Rubric](#rubric) | required. |
| `next_cursor` | string or null | required. |

### RubricRendered

| Field | Type | |
|---|---|---|
| `system` | string | required. The judge's fixed instructions, the same for every run. |
| `criteria` | string | required. The rubric exactly as it goes into each comparison's <criteria> block. |
| `weights_total` | number | required. Sum of the criteria weights; the editor shows them as percentages. |

### RubricTemplate

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `name` | string | required. |
| `text` | string | required. |
| `criteria` | list of [Criterion-Output](#criterion-output) | required. |
| `instructions` | string or null | required. |

### RubricTemplateList

| Field | Type | |
|---|---|---|
| `data` | list of [RubricTemplate](#rubrictemplate) | required. |
| `next_cursor` | string or null | required. |

### Run

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `type` | `"ranking"` | required. |
| `name` | string | required. |
| `dataset_id` | string | required. |
| `dataset_name` | string | required. |
| `rubric_id` | string or null | required. |
| `source` | `"web"` \| `"api"` \| `"cli"` \| `"mcp"` | required. |
| `ephemeral` | boolean | required. |
| `judge` | [Judge-Output](#judge-output) | required. |
| `max_cost_usd` | number or null | required. |
| `ranking` | [RankingConfig-Output](#rankingconfig-output) | required. |
| `billed` | boolean | required. Paid from the workspace's credit (our OpenRouter key). |
| `data_policy` | `"zero_retention"` \| `"provider_default"` \| `"none"` | required. How the judge's calls were routed: zero_retention means only to providers that keep no data and don't collect it. |
| `status` | `"queued"` \| `"running"` \| `"done"` \| `"failed"` \| `"canceled"` | required. |
| `note` | string or null | required. |
| `error` | string or null | required. |
| `planned_calls` | integer | required. |
| `created_at` | string | required. |
| `started_at` | string or null | required. |
| `finished_at` | string or null | required. |
| `judging_seconds` | number | required. Time spent judging, summed over passes (a live pass counts to now). Not finished_at - started_at, which includes idle time between an end and an extend. |
| `passes` | integer | required. 1, plus one per extend or retry. |
| `people` | [PeopleSummary](#peoplesummary) | required. Changes made by people on this run. |
| `progress` | [Progress](#progress) | required. |
| `leader` | [Leader](#leader) or null | required. Top item from the final results; null until the run is done. |
| `shape` | list of [ShapePoint](#shapepoint) or null | required. Best first, every item's rank and interval from the final results (at most 40, evenly sampled, always including first and last); null until the run is done. |

### RunComparison

How two rankings of the same items differ, e.g. two judges or two rubrics on one dataset.

| Field | Type | |
|---|---|---|
| `a` | string | required. |
| `b` | string | required. |
| `summary` | string | required. |
| `n_common_items` | integer | required. Items ranked in both runs; everything below uses only these. |
| `spearman` | number or null | required. Rank correlation, -1 to 1. 1 means the same order. |
| `kendall_tau` | number or null | required. Share of item pairs in the same order, scaled to -1..1. |
| `top_k` | integer | required. |
| `top_k_overlap` | number or null | required. Share of run a's top_k that is also in run b's top_k. |
| `movers` | list of [Mover](#mover) | required. Items whose rank changed most, biggest first, at most 25. |

### RunEvent

One server-sent event from GET /v1/runs/{run_id}/events.

| Field | Type | |
|---|---|---|
| `event` | `"progress"` \| `"finished"` | required. progress whenever calls complete; finished once, when the run is done, failed or canceled. |
| `run` | [Run](#run) | required. |
| `leaders` | list of [LeaderboardEntry](#leaderboardentry) | required. The current top 3, empty until a call is decided. |

### RunExport

Everything about a run in one file: the run, its results and every comparison.

| Field | Type | |
|---|---|---|
| `run` | [Run](#run) | required. |
| `results` | [Results](#results) | required. |
| `comparisons` | list of [Comparison](#comparison) | required. |

### RunIn

Start a run. Only ``type`` ``ranking`` exists today; its settings go under ``ranking``.

| Field | Type | |
|---|---|---|
| `type` | `"ranking"` | default `"ranking"`. |
| `dataset_id` | string | required. |
| `ranking` | [RankingConfig-Input](#rankingconfig-input) | required. |
| `name` | string or null | Defaults to the dataset name and judge model. |
| `rubric_id` | string or null | The saved rubric this run's rubric text came from. |
| `ephemeral` | boolean | default `false`. True for a throwaway, such as an inline one-shot comparison: hidden from lists unless include_ephemeral=true, and deleted after 30 days. |
| `judge` | [Judge-Input](#judge-input) |  |
| `max_cost_usd` | number or null | Stop the run once its calls have cost this much. |

### RunList

| Field | Type | |
|---|---|---|
| `data` | list of [Run](#run) | required. |
| `next_cursor` | string or null | required. |

### Sample

Sample data for a first ranking.

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `name` | string | required. |
| `description` | string | required. |
| `rubric` | string | required. The rubric its sample run uses. |
| `n_items` | integer | required. |
| `credit` | string or null | required. Where the texts come from, when they are not ours. |

### SampleList

| Field | Type | |
|---|---|---|
| `data` | list of [Sample](#sample) | required. |
| `next_cursor` | string or null | required. |

### SampleRunIn

| Field | Type | |
|---|---|---|
| `judge` | [Judge-Input](#judge-input) | Defaults to the free mock judge. |
| `rounds` | integer | default `6`. |

### Selection

| Field | Type | |
|---|---|---|
| `item_id` | string | required. |
| `selected` | boolean | required. |
| `by_name` | string or null | required. |
| `created_at` | string or null | required. |

### SelectionIn

| Field | Type | |
|---|---|---|
| `selected` | boolean | required. |

### Settings

| Field | Type | |
|---|---|---|
| `has_openrouter_key` | boolean | required. |
| `platform_key_available` | boolean | required. |
| `providers` | list of string | required. |
| `webhook_url` | string or null | required. Where run.done, run.failed and run.canceled events are POSTed. |
| `zero_data_retention` | boolean | required. Own-key runs route only to providers that keep no data. Runs on our key always do. |

### ShapePoint

One item's place in a finished ranking, for drawing a run's shape in a list.

| Field | Type | |
|---|---|---|
| `rank` | integer | required. |
| `rank_lo` | integer | required. |
| `rank_hi` | integer | required. |
| `p_top_n` | number or null | required. |

### Share

| Field | Type | |
|---|---|---|
| `url` | string | required. The public page. Anyone with the link can see it. |
| `token` | string | required. |
| `include_texts` | boolean | required. |
| `created_at` | string | required. |

### ShareIn

| Field | Type | |
|---|---|---|
| `include_texts` | boolean | default `false`. Also show item texts and the judge's reasoning. |

### SkippedFile

| Field | Type | |
|---|---|---|
| `filename` | string | required. |
| `reason` | string | required. |

### SkippedRow

| Field | Type | |
|---|---|---|
| `row` | integer | required. Data row number, 1 for the first row under the header. |
| `reason` | string | required. |

### TimelineFrame

| Field | Type | |
|---|---|---|
| `round` | integer | required. |
| `comparisons` | integer | required. |
| `ratings` | map of number | required. |
| `ranks` | map of integer | required. |

### UploadResult

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `name` | string | required. |
| `created_at` | string | required. |
| `n_items` | integer | required. |
| `source` | `"web"` \| `"api"` \| `"cli"` \| `"mcp"` | required. Where it was made: web, api, cli or mcp (the Supposing-Source header). |
| `ephemeral` | boolean | required. |
| `mapping` | [DatasetMapping](#datasetmapping) or null | required. For an imported spreadsheet: which columns the judge reads and which are kept only for people. |
| `items` | list of [ItemSummary](#itemsummary) | required. |
| `skipped` | list of [SkippedFile](#skippedfile) | required. Files that were not added, and why. |
| `duplicates` | list of [DuplicateGroup](#duplicategroup) | required. |

### Upset

A call the final ranking disagrees with: the lower-rated item won.

| Field | Type | |
|---|---|---|
| `comparison_id` | string | required. |
| `pair_id` | integer | required. |
| `winner_item` | string | required. |
| `loser_item` | string | required. |
| `rating_gap` | number | required. |

### Usage

This calendar month (UTC) so far.

| Field | Type | |
|---|---|---|
| `plan` | string | required. |
| `month` | string | required. |
| `runs` | integer | required. |
| `judge_calls` | integer | required. Every model call, including failed attempts. |
| `prompt_tokens` | integer | required. |
| `completion_tokens` | integer | required. |
| `cost_usd` | number | required. All model spend, on any key. |
| `platform_cost_usd` | number | required. The part billed to our OpenRouter key; counts toward the limit. |
| `limits` | [PlanLimits](#planlimits) | required. |

### WebhookDelivery

| Field | Type | |
|---|---|---|
| `id` | string | required. |
| `run_id` | string or null | required. |
| `event` | string | required. |
| `url` | string | required. |
| `status` | `"pending"` \| `"delivered"` \| `"failed"` | required. |
| `attempts` | integer | required. |
| `next_attempt_at` | string | required. |
| `last_error` | string or null | required. |
| `response_status` | integer or null | required. |
| `created_at` | string | required. |
| `delivered_at` | string or null | required. |

### WebhookDeliveryList

| Field | Type | |
|---|---|---|
| `data` | list of [WebhookDelivery](#webhookdelivery) | required. |
| `next_cursor` | string or null | required. |

### WebhookIn

| Field | Type | |
|---|---|---|
| `url` | string or null | An https URL to POST run events to, or null to turn webhooks off. |

### WebhookSecret

| Field | Type | |
|---|---|---|
| `url` | string or null | required. |
| `secret` | string or null | required. Signs every payload (Supposing-Signature header). Shown once; setting the URL again makes a new one. |
