Skip to content

Get Item

GET
/v1/items/{item_id}
curl --request GET \
--url https://api.supposing.app/v1/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0
item_id
required
Item Id
string format: uuid

Successful Response

Media typeapplication/json
Item
object
id
required
Id
string format: uuid
title
required
Title

The document’s first heading, else its file name without the extension.

string
filename
required
Filename
Any of:
string
source_id
required
Source Id

Where the item came from: the import’s ID column, else an ID in the file name, else the file name.

Any of:
string
n_words
required
N Words
integer
n_chars
required
N Chars
integer
text
required
Text

Exactly what the judge reads.

string
metadata
required
Metadata

Kept for people; never shown to the judge.

object
key
additional properties
string

Example generated

{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"title": "example",
"filename": "example",
"source_id": "example",
"n_words": 1,
"n_chars": 1,
"text": "example",
"metadata": {
"additionalProperty": "example"
}
}

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"
}
]
}