Skip to content

Cancel Run

POST
/v1/runs/{run_id}/cancel
curl --request POST \
--url https://api.supposing.app/v1/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/cancel
run_id
required
Run Id
string format: uuid

Successful Response

Media typeapplication/json
Run
object
id
required
Id
string format: uuid
type
required
Type
string
Allowed value: ranking
name
required
Name
string
dataset_id
required
Dataset Id
string format: uuid
dataset_name
required
Dataset Name
string
rubric_id
required
Rubric Id
Any of:
string format: uuid
source
required
Source
string
Allowed values: web api cli mcp
ephemeral
required
Ephemeral
boolean
judge
required
Judge

The model that makes each call in a run.

object
provider
required
Provider

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.

string
default: openrouter
Allowed values: openrouter mock claude_cli
model
required
Model

An OpenRouter model id.

string
default: anthropic/claude-haiku-5.5
max_cost_usd
required
Max Cost Usd
Any of:
number
ranking
required
RankingConfig

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

object
rubric
required
Rubric

What the judge should prefer, in plain words. Each call shows the judge two items and this rubric and asks which is better.

string
>= 1 characters <= 20000 characters
criteria
required
Criteria

Optional named criteria with relative weights.

Array<object>
<= 20 items
Criterion

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

object
name
required
Name
string
>= 1 characters <= 200 characters
description
required
Description
string
"" <= 2000 characters
weight
required
Weight

Relative to the other criteria.

number
default: 1 > 0 <= 100
instructions
required
Instructions

Optional extra judge instructions.

Any of:
string
<= 5000 characters
rounds
required
Rounds

Opponents per item. More rounds, tighter intervals.

integer
default: 8 >= 1 <= 200
both_orders
required
Both Orders

Judge every pair twice, swapping which item comes first, so position bias cancels out.

boolean
default: true
pairing
required
Pairing

Swiss pairs items of similar rating; round_robin judges every pair each round (small sets only; not with goal top_n).

string
default: swiss
Allowed values: swiss random round_robin
goal
required
Goal

Top_n spends calls on finding the best top_n items rather than ordering the whole list.

string
default: full
Allowed values: full top_n
top_n
required
Top N
integer
default: 10 >= 1
max_chars
required
Max Chars

Items longer than this are cut before judging.

integer
default: 60000
seed
required
Seed
integer
0
billed
required
Billed

Paid from the workspace’s credit (our OpenRouter key).

boolean
data_policy
required
Data Policy

How the judge’s calls were routed: zero_retention means only to providers that keep no data and don’t collect it.

string
default: provider_default
Allowed values: zero_retention provider_default none
status
required
Status
string
Allowed values: queued running done failed canceled
note
required
Note
Any of:
string
error
required
Error
Any of:
string
planned_calls
required
Planned Calls
integer
created_at
required
Created At
string format: date-time
started_at
required
Started At
Any of:
string format: date-time
finished_at
required
Finished At
Any of:
string format: date-time
judging_seconds
required
Judging Seconds

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.

number
0
passes
required
Passes

1, plus one per extend or retry.

integer
default: 1
people
required
PeopleSummary

Changes made by people on this run.

object
excluded
required
Excluded
integer
0
notes
required
Notes
integer
0
disagreements
required
Disagreements
integer
0
selected
required
Selected
integer
0
progress
required
Progress
object
total
required
Total
integer
done
required
Done
integer
failed
required
Failed
integer
in_flight
required
In Flight
integer
pending
required
Pending
integer
round
required
Round
integer
cost_usd
required
Cost Usd
number
avg_latency_ms
required
Avg Latency Ms

Mean of the last 20 decided calls; null before any.

Any of:
number
concurrency
required
Concurrency

Calls the workers run at once for one run. For time left: remaining calls x avg_latency_ms / concurrency, roughly.

integer
0
leader
required

Top item from the final results; null until the run is done.

Any of:
Leader

The top item of a finished run, for lists.

object
item_id
required
Item Id
string format: uuid
title
required
Title
Any of:
string
source_id
required
Source Id
Any of:
string
rating
required
Rating
number
rating_lo
required
Rating Lo
number
rating_hi
required
Rating Hi
number
rank_lo
required
Rank Lo
integer
rank_hi
required
Rank Hi
integer
shape
required
Shape

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.

Any of:
Array<object>
ShapePoint

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

object
rank
required
Rank
integer
rank_lo
required
Rank Lo
integer
rank_hi
required
Rank Hi
integer
p_top_n
required
P Top N
Any of:
number

Example

{
"type": "ranking",
"source": "web",
"judge": {
"provider": "openrouter",
"model": "anthropic/claude-haiku-5.5"
},
"ranking": {
"criteria": [
{
"description": "",
"weight": 1
}
],
"rounds": 8,
"both_orders": true,
"pairing": "swiss",
"goal": "full",
"top_n": 10,
"max_chars": 60000,
"seed": 0
},
"billed": false,
"data_policy": "zero_retention",
"status": "queued",
"judging_seconds": 0,
"passes": 1,
"people": {
"excluded": 0,
"notes": 0,
"disagreements": 0,
"selected": 0
},
"progress": {
"concurrency": 0
}
}

Client error. Branch on code; show message and hint.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}

Server error.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}