OpenapiCaptable
Returns one of the caller org's fundraising rounds together with every…
Returns one of the caller org's fundraising rounds together with every investment written into it, oldest first.
GET /v1/captable/rounds/{id}
| Address | https://api.hanzo.ai/v1/captable/rounds/{id} |
| Method | GET |
| Operation | get_captable_rounds_by_id |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns one of the caller org's fundraising rounds together with every investment written into it, oldest first. A round id that does not exist in the caller's org is not found — including one that exists in another tenant, since the org comes from the caller's principal and is part of the lookup.
Request
1 field.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | ID is the round to read. It is the path segment: the URL is the addressing authority, and the org it is resolved in comes from the caller's principal, so an id… |
Response
| Status | Body | Meaning |
|---|---|---|
200 | captableRoundDetail | ok |
200 body — 20 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
investments | body | captableRoundInvestment[] | — | Investments is every investment into this round, oldest first. |
investments[].amount | body | number | — | Amount is the cash invested. |
investments[].comments | body | string | — | Comments is the note recorded with the cheque, if any. |
investments[].date | body | string | — | Date is the ISO date of the investment. |
investments[].id | body | string | — | ID is the investment id. |
investments[].shares | body | integer | — | Shares is how many shares the investment bought; 0 when the round issues no equity at the time of investment. |
investments[].stakeholderId | body | string | — | StakeholderID is the investor. |
investments[].stakeholderName | body | string | — | StakeholderName is that investor's name. |
round | body | captableRound | — | |
round.closeDate | body | string | — | CloseDate is the ISO date the round closed, once it has. |
round.createdAt | body | integer | — | CreatedAt is when the round was recorded, in unix milliseconds. |
round.id | body | string | — | ID is the round id. |
round.name | body | string | — | Name is the round name, e.g. |
round.preMoneyValuation | body | number | — | PreMoneyValuation is the pre-money valuation, for a priced round. |
round.pricePerShare | body | number | — | PricePerShare is the price per share, for a priced round. |
round.raisedAmount | body | number | — | RaisedAmount is how much has been invested so far. |
round.roundType | body | string | — | RoundType is PRICED, SAFE or CONVERTIBLE_NOTE. |
round.shareClassId | body | string | — | ShareClassID is the class a priced round issues into. |
round.status | body | string | — | Status is OPEN or CLOSED. |
round.targetAmount | body | number | — | TargetAmount is how much the round set out to raise. |
Failure carries the platform error shape — see Errors.
Examples
hanzo captable rounds get <id>import { Configuration, CaptableApi } from 'hanzoai';
const api = new CaptableApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getCaptableRoundsById({ id: 'id' });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_rounds_by_id(id='id')cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.CaptableAPI.GetCaptableRoundsById(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_rounds_by_id(&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).getCaptableRoundsById();curl https://api.hanzo.ai/v1/captable/rounds/<id> \
-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?