Skip to content

File a consumer flag against one bank record.

POST
/api/v1/report
curl --request POST \
--url https://api.utmelab.com/api/v1/report \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "detail": "example", "reason": "example", "target_id": "example", "target_type": "example" }'
Media typeapplication/json
object
detail

Optional context, capped at [crate::core::reports::MAX_DETAIL_CHARS] characters. No PII.

string | null
reason
required

One of: wrong_answer, unclear_stem, broken_option, wrong_explanation, other.

string
target_id
required

The target’s id. Topics have no single id, so theirs is the slash-joined exam/subject/slug.

string
target_type
required

One of: question, topic, passage, novel.

string

Example generated

{
"detail": "example",
"reason": "example",
"target_id": "example",
"target_type": "example"
}

An identical filing already existed; the body carries the original’s id

Media typeapplication/json

Outcome of filing a consumer flag. duplicate is true when an identical filing already existed; id is then the original’s.

object
duplicate
required
boolean
id
required
string
reason
required
string
target_id
required
string
target_type
required
string

Example generated

{
"duplicate": true,
"id": "example",
"reason": "example",
"target_id": "example",
"target_type": "example"
}

Filed

Media typeapplication/json

Outcome of filing a consumer flag. duplicate is true when an identical filing already existed; id is then the original’s.

object
duplicate
required
boolean
id
required
string
reason
required
string
target_id
required
string
target_type
required
string

Example generated

{
"duplicate": true,
"id": "example",
"reason": "example",
"target_id": "example",
"target_type": "example"
}

An API key is missing or invalid.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The API key lacks the required scope.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

No such target

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The caller has exceeded the applicable rate limit.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The API is temporarily unavailable.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}