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
| Name | Type | Required | Description |
|---|---|---|---|
bot_id | string | yes | The bot id (bot_…). |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
types | string | no | Comma-separated event types, for example order,halt. |
cursor | string | no | next_cursor from the previous page. |
limit | integer | no | Page size. 1 to 500. Default 100. |
venue | string | no | Only this venue. |
ticker | string | no | Only this market. |
source | string | no | client or chain. |
since | integer | no | Oldest ts, ms epoch. |
until | integer | no | Newest ts, ms epoch. |
Request
curl "https://api.langbot.ai/v1/bots/bot_01M6G72RFQRQ8JGNG8T1447GGP/events?types=order&limit=1" \
-H "Authorization: Bearer $LANGBOT_API_TOKEN"from langbot import LangbotClient
async with LangbotClient() as lb: # reads LANGBOT_API_TOKEN
page = await lb.bots.events("bot_01M6G72RFQRQ8JGNG8T1447GGP", types=["order", "halt"])import { LangbotClient } from "@langbotai/sdk";
const lb = new LangbotClient(); // reads LANGBOT_API_TOKEN
const page = await lb.bots.events("bot_01M6G72RFQRQ8JGNG8T1447GGP", { types: ["order", "halt"] });Response
200 OK
{
"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
| Status | code | When |
|---|---|---|
| 404 | not_found | No bot with that id on your account (or it was deleted). |
| 401 | auth_required | No token was sent. |
| 401 | token_invalid | The token was not recognised (mistyped, revoked or expired). |
| 422 | validation_error | A parameter failed validation; detail[].loc names it. |
| 429 | rate_limited | Over your request budget; wait Retry-After seconds. |
Every error body is {"detail": …, "code": "…"}; branch on code. All codes: Errors.