Skip to content

Get Retrieval Quality Trends

GET
/api/canvas/retrieval-quality/trends
curl --request GET \
--url 'https://example.com/api/canvas/retrieval-quality/trends?deal_id=example' \
--header 'Authorization: Bearer <token>'

Get retrieval quality trends across deals.

Returns per-section-type trend data showing whether retrieval quality is improving, stable, or declining based on accumulated grade data.

Query params: section_type: Optional filter to a single section type.

No LLM calls — pure Redis aggregation.

section_type
Any of:
string
deal_id
required
Deal Id
string

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}