API reference · Sim

Get a run

GET/v1/sim/runs/{run_id}

One of your runs with its full scorecard.

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

Path parameters

NameTypeRequiredDescription
run_idstringyesThe run id from Run a simulation.

Request

Terminal
curl "https://api.langbot.ai/v1/sim/runs/run_01K8Z3" \
  -H "Authorization: Bearer $LANGBOT_API_TOKEN"

Response

200 OK

JSON
{ "id": "run_01K8Z3…", "kind": "server", "event_id": "ev_kxearningsmentiongs_26oct13", "strategy": "buy_yes_on_first_counting_hit", "scorecard": { "by_latency": [] }, "created_at": 1793500000000 }

Errors

StatuscodeWhen
404not_foundNo run with that id on your account.
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.