# Get your account

Source: https://langbot.ai/docs/api/account/get-me

`GET /v1/me`

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

**Auth.** An API token: `Authorization: Bearer lb_…` ([create one](https://langbot.ai/app/tokens)). 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

**curl**

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

**Python**

```python
from langbot import LangbotClient

async with LangbotClient() as lb:  # reads LANGBOT_API_TOKEN
    me = await lb.me()
    print(me["effective_plan"], me["quotas"]["history_queries"])
```

**TypeScript**

```ts
import { LangbotClient } from "@langbotai/sdk";

const lb = new LangbotClient(); // reads LANGBOT_API_TOKEN
const me = await lb.me();
console.log(me.effective_plan);
```

## 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

| Status | `code` | When |
|---|---|---|
| 401 | `auth_required` | No token was sent. |
| 401 | `token_invalid` | The token was not recognised (mistyped, revoked or expired). |
| 429 | `rate_limited` | Over your request budget; wait `Retry-After` seconds. |

Every error body is `{"detail": …, "code": "…"}`; branch on `code`. All codes: [Errors](https://langbot.ai/docs/api#errors).
