OpenapiCaptable
Returns the caller org's cap-table company record.
Returns the caller org's cap-table company record.
GET /v1/captable/company
| Address | https://api.hanzo.ai/v1/captable/company |
| Method | GET |
| Operation | get_captable_company |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns the caller org's cap-table company record. The row is seeded when the tenant's store first opens, so it always exists; its name and incorporation details are set with PUT /v1/captable/company.
Request
GET /v1/captable/company takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | captableCompany | ok |
200 body — 8 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
createdAt | body | integer | — | CreatedAt is when the company row was seeded, in unix milliseconds. |
id | body | string | — | ID is the company id, which is the tenant's own org id. |
incorporationCountry | body | string | — | IncorporationCountry is the ISO country the entity is incorporated in. |
incorporationState | body | string | — | IncorporationState is the state or province of incorporation. |
incorporationType | body | string | — | IncorporationType is the entity kind, e.g. |
name | body | string | — | Name is the company's legal name. |
publicId | body | string | — | PublicID is the company's shareable public identifier. |
updatedAt | body | integer | — | UpdatedAt is when the company row last changed, in unix milliseconds. |
Failure carries the platform error shape — see Errors.
Examples
hanzo captable company getimport { Configuration, CaptableApi } from 'hanzoai';
const api = new CaptableApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getCaptableCompany();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_company()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.CaptableAPI.GetCaptableCompany(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_company(&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).getCaptableCompany();curl https://api.hanzo.ai/v1/captable/company \
-H "Authorization: Bearer $HANZO_API_KEY"Tool captable, op get_captable_company — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
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": "captable",
"arguments": {
"op": "get_captable_company",
"input": {}
}
}
}'How is this guide?