API reference · Research

List trials

GET/v1/research/trials

Your research ledger, every calibration query and bench run, with how many you ran in the last 30 days.

On this page

Auth. An API token: Authorization: Bearer lb_… (create one). Signed-in web sessions work too.

Limits. Counts against your plan's API requests (60, 600 or 3,000 a minute on Free, Builder and Standard).

Parameters

Query parameters

NameTypeRequiredDescription
kindstringnocalibration or bench.
limitintegernoPage size. 1 to 200. Default 50.

Request

Terminal
curl "https://api.langbot.ai/v1/research/trials?limit=1" \
  -H "Authorization: Bearer $LANGBOT_API_TOKEN"

Response

200 OK

JSON
{
  "ts": 1793500000000,
  "count_30d": 4,
  "window_ms": 2592000000,
  "count": 1,
  "trials": [ { "id": "trl_01K8…", "kind": "calibration", "request": { "speaker": "powell", "basis": "mid" }, "summary": { "n": 214 }, "created_at": 1793490000000 } ]
}

Every configuration you try is another comparison: with k trials at 90% intervals, about k/10 will look like something by chance.

Errors

StatuscodeWhen
401auth_requiredNo token was sent.
401token_invalidThe token was not recognised (mistyped, revoked or expired).
422validation_errorA parameter failed validation; detail[].loc names it.
429rate_limitedOver your request budget; wait Retry-After seconds.

Every error body is {"detail": …, "code": "…"}; branch on code. All codes: Errors.