API reference · Monitoring

List bot events

GET/v1/bots/{bot_id}/events

Any of a bot's events (orders, cancels, positions, heartbeats, halts, notes), newest first.

On this page

Auth. An account token (Authorization: Bearer lb_…) or a signed-in web session. A report-only token (lbr_…) is refused here with 403 scope_denied.

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

Parameters

Path parameters

NameTypeRequiredDescription
bot_idstringyesThe bot id (bot_…).

Query parameters

NameTypeRequiredDescription
typesstringnoComma-separated event types, for example order,halt.
cursorstringnonext_cursor from the previous page.
limitintegernoPage size. 1 to 500. Default 100.
venuestringnoOnly this venue.
tickerstringnoOnly this market.
sourcestringnoclient or chain.
sinceintegernoOldest ts, ms epoch.
untilintegernoNewest ts, ms epoch.

Request

Terminal
curl "https://api.langbot.ai/v1/bots/bot_01M6G72RFQRQ8JGNG8T1447GGP/events?types=order&limit=1" \
  -H "Authorization: Bearer $LANGBOT_API_TOKEN"

Response

200 OK

JSON
{
  "events": [
    {
      "client_event_id": "s1:1",
      "type": "order",
      "ts": 1793693087653,
      "venue": "kalshi",
      "ticker": "KXMENTION-26NOV03-TARIFF",
      "side": "yes",
      "action": "buy",
      "price": 0.41,
      "count": 20.0,
      "fee": null,
      "liquidity": null,
      "order_id": null,
      "client_order_id": "c-1",
      "text": null,
      "meta": null,
      "source": "client",
      "applied": true,
      "received_at": 1793693147656
    }
  ],
  "next_cursor": null
}

Errors

StatuscodeWhen
404not_foundNo bot with that id on your account (or it was deleted).
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.