Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Upload a docs eval result

POSThttps://api.butterix.com/v1/sites/:site/evals

Requires the editor role; usually called by biti eval --site. The score is computed from results.

Authentication

AuthorizationBearer

An organization API key, created in the console under Organization settings → API Keys, starting with biti_. It acts as editor and can't do anything that requires admin.

biti_sessionstring

The HttpOnly session cookie set on login. Requests that change data must be same-origin (the Origin header is checked) to prevent CSRF.

Path parameters

sitestringRequired

Site slug or id

Request

This endpoint expects an object.
resultslist of objectsRequired1-500 items
questionstringRequired
idstringOptional
passbooleanOptional
metlist of booleansOptional

Whether each point is made

missinglist of stringsOptional

Missing points

saidlist of stringsOptional

What the answer says but must not

unseenlist of stringsOptional

Pages search didn't find

sourceslist of stringsOptional
answerstringOptional
notestringOptional

A remark from grading

errorstringOptional

Why it couldn't be answered or graded

minintegerOptional

Pass mark (percent)

modelstringOptional

Model that answered

judgestringOptional

Model that graded

commitstringOptional

Commit of the docs

Response

Saved
idstringOptional
createdAtintegerOptional
scoreintegerOptional

Percent answered correctly

passedintegerOptional
totalintegerOptional
minintegerOptional

Pass mark

okbooleanOptional
modelstringOptional
judgestringOptional
commitstringOptional