Skip to content

Get Prompt Variants

GET
/api/canvas/learning/prompt-variants
curl --request GET \
--url 'https://example.com/api/canvas/learning/prompt-variants?section_type=example&deal_id=example' \
--header 'Authorization: Bearer <token>'

Return tracked prompt variant outcomes for a section type.

Lists all prompt hashes with their quality/rating statistics, sorted by avg_quality descending.

section_type
required
Section Type

Memo section key

string

Memo section key

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