API reference · Webhooks
List subscriptions
GET/v1/subscriptions
Your subscriptions, newest first, with the market each one follows.
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
| Name | Type | Required | Description |
|---|---|---|---|
market | string | no | Only the subscriptions on this market ticker. |
Request
curl "https://api.langbot.ai/v1/subscriptions" \
-H "Authorization: Bearer $LANGBOT_API_TOKEN"from langbot import LangbotClient
async with LangbotClient() as lb: # reads LANGBOT_API_TOKEN
for s in await lb.subscriptions():
print(s["id"], s["event_id"], s["phrases"], s["webhook_url"])import { LangbotClient } from "@langbotai/sdk";
const lb = new LangbotClient(); // reads LANGBOT_API_TOKEN
const subs = await lb.subscriptions();
console.log(subs);Response
200 OK
{ "subscriptions": [ { "id": "sub_01J9…", "event_id": "ev_nvda_q3_2026", "phrases": ["blackwell"], "webhook_url": "https://example.com/hooks/langbot", "created_at": 1760050000000, "market_ticker": "KXEARNINGSMENTIONNVDA-26OCT-BLACKWELL", "market_title": "Will NVIDIA say \"Blackwell\" on its Q3 earnings call?" } ] }Errors
| Status | code | When |
|---|---|---|
| 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.