Skip to content

API & reference

Version Proof

POST
/ratchet/versions/{vid}/proof
curl --request POST \
--url 'http://localhost:8000/ratchet/versions/1/proof?split=train' \
--header 'Content-Type: application/json' \
--data '"example"'

Whether an example is in version vid’s committed training (or golden) set, with an O(log n) membership or non-membership proof against the root its signed BOM carries. The body names the example by key (its hash) or as the chat request it came from (task, messages, and any other /v1/chat/completions field), which is validated, normalised and redacted as the gateway stores it. An admin call: with guessable texts the endpoint is a membership oracle for the training data. Check the answer offline with python -m ratchet.proof verify.

vid
required
Vid
integer
split
Split
string
default: train
x-api-key
Any of:
string
Media typeapplication/json
Body

Example generated

example

Successful Response

Media typeapplication/json
Response Version Proof Ratchet Versions Vid Proof Post
object

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}