# List plan

URL: https://docs.hanzo.ai/docs/openapi/team/get-team-billing-plan

> Returns the plan and seat counts for the caller's OWN org, resolved from the VERIFIED team session token — never a client header.

`GET /v1/team/billing/plan`

> [Team →](https://docs.hanzo.ai/docs/openapi/team) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                             |
| ------------- | ------------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/team/billing/plan` |
| **Method**    | `GET`                                       |
| **Operation** | `get_team_billing_plan`                     |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`      |

Returns the plan and seat counts for the caller's OWN org, resolved
from the VERIFIED team session token — never a client header. Seats and guests
are the org's distinct active human members (a bot member is not a seat); the
plan comes from the licensing entitlement and is empty when that read is
unavailable, so the page shows an honest dash rather than a fabricated tier. A
caller with no verified session gets 401, and a real seat-read failure is a
502 rather than a false "0 members".

## Request

`GET /v1/team/billing/plan` takes no parameters and no body — the credential is the whole request.

## Response

| Status    | Body            | Meaning |
| --------- | --------------- | ------- |
| `200`     | team.planInfo   | ok      |
| `default` | problem-details | refused |

`200` body — 6 fields.

| Field        | In   | Type            | Always | Description                                                                                                                |
| ------------ | ---- | --------------- | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| `active`     | body | boolean         | —      | Active is whether that plan's entitlement is live.                                                                         |
| `guestLimit` | body | integer (int64) | —      | GuestLimit is the plan's team.guests cap, when the plan carries one.                                                       |
| `guests`     | body | integer (int64) | —      | Guests is how many of those seats are guests.                                                                              |
| `plan`       | body | string          | —      | Plan is the licensed plan id, empty when it cannot be resolved here — an honest dash on the page, never a fabricated tier. |
| `seats`      | body | integer (int64) | —      | Seats is the org's distinct active human members.                                                                          |
| `upgradeUrl` | body | string          | —      | UpgradeURL is where the page sends a caller who wants a bigger plan.                                                       |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo team billing plan
```

**SDK**

**.ts**

```ts
import { Configuration, TeamApi } from 'hanzoai';

const api = new TeamApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getTeamBillingPlan();
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import TeamApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = TeamApi(client).get_team_billing_plan()
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.TeamAPI.GetTeamBillingPlan(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, team_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = team_api::get_team_billing_plan(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TeamApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new TeamApi(client).getTeamBillingPlan();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/team/billing/plan \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

Tool `team`, op `get_team_billing_plan` — POST the JSON-RPC envelope to `https://api.hanzo.ai/v1/mcp`.

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "team",
         "arguments": {
           "op": "get_team_billing_plan",
           "input": {}
         }
       }
     }'
```

---

[Team API](https://docs.hanzo.ai/docs/openapi/team) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
