OpenapiCaptable
Returns the caller org's share classes, in creation order.
Returns the caller org's share classes, in creation order.
GET /v1/captable/classes
| 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 | captableShareClass[] | ok |
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. |
[].id | body | string | — | ID is the share class id. |
[].idx | body | integer | — | Idx is the class's 1-based position within the company, in creation order. |
[].initialSharesAuthorized | body | integer | — | InitialSharesAuthorized is how many shares of this class are authorized. |
[].liquidationPreferenceMultiple | body | number | — | LiquidationPreferenceMultiple is the preference multiple on liquidation. |
[].name | body | string | — | Name is the class name, e.g. |
[].parValue | body | number | — | ParValue is the par value per share. |
[].participationCapMultiple | body | number | — | 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 | — | PricePerShare is the issue price per share. |
[].seniority | body | integer | — | Seniority orders classes in a liquidation waterfall; higher is more senior. |
[].votesPerShare | body | integer | — | VotesPerShare is how many votes one share of this class carries. |
Failure carries the platform error shape — see Errors.
Examples
hanzo captable classes listimport { Configuration, CaptableApi } from 'hanzoai';
const api = new CaptableApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getCaptableClasses();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()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.CaptableAPI.GetCaptableClasses(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::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?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.CaptableApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new CaptableApi(client).getCaptableClasses();curl https://api.hanzo.ai/v1/captable/classes \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches captable through the captable tool, which names its 31 operations with its own verbs — this one among them, under a name only the door declares. describe explains any of them:
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"
}
}
}'How is this guide?