Create Dataset
const url = 'https://api.supposing.app/v1/datasets';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","items":[{"title":"example","text":"example","filename":"example","source_id":"example","metadata":{"additionalProperty":"example"}}],"ephemeral":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.supposing.app/v1/datasets \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "items": [ { "title": "example", "text": "example", "filename": "example", "source_id": "example", "metadata": { "additionalProperty": "example" } } ], "ephemeral": false }'Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Any unique string, e.g. a UUID. Retrying with the same key returns the first response instead of creating a second one. Keys last 24 hours.
Any unique string, e.g. a UUID. Retrying with the same key returns the first response instead of creating a second one. Keys last 24 hours.
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Fields kept for people (name, email, date…). Never shown to the judge.
object
True for a throwaway, such as an inline one-shot comparison: hidden from lists unless include_ephemeral=true, and deleted after 30 days.
Responses
Section titled “Responses”Successful Response
object
Where it was made: web, api, cli or mcp (the Supposing-Source header).
For an imported spreadsheet: which columns the judge reads and which are kept only for people.
object
What the judge reads, in order; with more than one, each is under a ‘##
Kept for people, never shown to the judge.
object
The document’s first heading, else its file name without the extension.
Example
{ "source": "web"}Client error. Branch on code; show message and hint.
The body of every non-2xx response.
object
Stable machine-readable code, e.g. dataset_not_found.
Per-field problems, for invalid_request.
object
Dotted path to the field, e.g. ranking.rubric.
Example generated
{ "code": "example", "message": "example", "hint": "example", "details": [ { "field": "example", "message": "example" } ]}Server error.
The body of every non-2xx response.
object
Stable machine-readable code, e.g. dataset_not_found.
Per-field problems, for invalid_request.
object
Dotted path to the field, e.g. ranking.rubric.
Example generated
{ "code": "example", "message": "example", "hint": "example", "details": [ { "field": "example", "message": "example" } ]}