API reference · Account and tokens

Get your account

GET/v1/me

Your account, the plan it is enforced on, its limits and what you have used of each allowance.

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).

Request

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

Response

200 OK

JSON
{
  "id": "usr_01J9…",
  "github_id": 12345,
  "email": "you@example.com",
  "handle": "you",
  "plan": "pro",
  "plan_status": "active",
  "effective_plan": "pro",
  "plan_updated_at": 1759000000000,
  "created_at": 1759000000000,
  "limits": { "requests_per_min": 600, "streams": 5, "delay_ms": 10000 },
  "delays": { "delay_ms": 10000 },
  "quotas": {
    "history_queries": { "used": 42, "limit": null, "remaining": null, "period": "day", "resets_at": 1759104000000, "unit": "history queries" },
    "sim_runs": { "used": 3, "limit": 100, "remaining": 97, "period": "month", "resets_at": 1761955200000, "unit": "Sim runs" }
  },
  "usage": { "subscriptions": 2, "webhook_endpoints": 1, "tokens": 3, "ws_connections": 1 },
  "agents": []
}

Plan ids: free, pro (Builder), team (Standard), enterprise (custom). effective_plan is what is enforced: free while a subscription has lapsed. A null limit is unlimited.

Errors

StatuscodeWhen
401auth_requiredNo token was sent.
401token_invalidThe token was not recognised (mistyped, revoked or expired).
429rate_limitedOver your request budget; wait Retry-After seconds.

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