# List classes

URL: https://docs.hanzo.ai/docs/openapi/captable/get-captable-classes

> Returns the caller org's share classes, in creation order.

`GET /v1/captable/classes`

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

|               |                                            |
| ------------- | ------------------------------------------ |
| **Address**   | `https://api.hanzo.ai/v1/captable/classes` |
| **Method**    | `GET`                                      |
| **Operation** | `get_captable_classes`                     |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`     |

Returns the caller org's share classes, in creation order. A
share class is what a certificate is issued in, and every class the company
has authorized appears. The response is a bare JSON array, not an envelope.

## Request

`GET /v1/captable/classes` takes no parameters and no body — the credential is the whole request.

## Response

| Status    | Body                           | Meaning |
| --------- | ------------------------------ | ------- |
| `200`     | captable.captableShareClass\[] | ok      |
| `default` | problem-details                | refused |

`200` body — 14 fields.

| Field                              | In   | Type            | Always | Description                                                                                |
| ---------------------------------- | ---- | --------------- | ------ | ------------------------------------------------------------------------------------------ |
| `[].classType`                     | body | string          | —      | ClassType is COMMON or PREFERRED.                                                          |
| `[].companyName`                   | body | string          | —      | CompanyName is the name of the company whose cap table this is.                            |
| `[].conversionRights`              | body | string          | —      | ConversionRights describes what the class converts into, e.g. CONVERTS\_TO\_FUTURE\_ROUND. |
| `[].id`                            | body | string          | —      | ID is the share class id.                                                                  |
| `[].idx`                           | body | integer (int64) | —      | Idx is the class's 1-based position within the company, in creation order.                 |
| `[].initialSharesAuthorized`       | body | integer (int64) | —      | InitialSharesAuthorized is how many shares of this class are authorized.                   |
| `[].liquidationPreferenceMultiple` | body | number (double) | —      | LiquidationPreferenceMultiple is the preference multiple on liquidation.                   |
| `[].name`                          | body | string          | —      | Name is the class name, e.g. "Common" or "Series A Preferred".                             |
| `[].parValue`                      | body | number (double) | —      | ParValue is the par value per share.                                                       |
| `[].participationCapMultiple`      | body | number (double) | —      | ParticipationCapMultiple caps participation on liquidation; 0 is uncapped.                 |
| `[].prefix`                        | body | string          | —      | Prefix is the certificate prefix, CS for common and PS for preferred.                      |
| `[].pricePerShare`                 | body | number (double) | —      | PricePerShare is the issue price per share.                                                |
| `[].seniority`                     | body | integer (int64) | —      | Seniority orders classes in a liquidation waterfall; higher is more senior.                |
| `[].votesPerShare`                 | body | integer (int64) | —      | VotesPerShare is how many votes one share of this class carries.                           |

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

## Examples

**CLI**

```bash
hanzo captable classes list
```

**SDK**

**.ts**

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

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

**.py**

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

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

**.go**

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

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

**.rs**

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

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

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

**.java**

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

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

var result = new CaptableApi(client).getCaptableClasses();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/captable/classes \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

MCP reaches **captable** through the `captable` tool, which names its 30 operations with its own verbs — this one among them, under a name only MCP declares. `describe` explains any of them:

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

---

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