OpenapiCaptable
Returns the caller org's SAFEs, newest first.
Returns the caller org's SAFEs, newest first.
GET /v1/captable/safes
| Address | https://api.hanzo.ai/v1/captable/safes |
| Method | GET |
| Operation | get_captable_safes |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns the caller org's SAFEs, newest first. A SAFE is a simple agreement for future equity: its capital sits OUTSIDE issued equity until it converts, so it is not part of the share counts.
Request
GET /v1/captable/safes takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | captableSafes | ok |
200 body — 13 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
data | body | captableSafe[] | — | Data is every SAFE, newest first. |
data[].capital | body | number | — | Capital is the cash the investor put in. |
data[].discountRate | body | number | — | DiscountRate is the discount to the next round's price, if any. |
data[].id | body | string | — | ID is the SAFE id. |
data[].issueDate | body | string | — | IssueDate is the ISO date the SAFE was signed. |
data[].mfn | body | boolean | — | MFN is true when the SAFE carries a most-favoured-nation clause. |
data[].proRata | body | boolean | — | ProRata is true when the SAFE carries pro-rata rights. |
data[].publicId | body | string | — | PublicID is the SAFE's shareable identifier, unique within the company. |
data[].stakeholderId | body | string | — | StakeholderID is the investor. |
data[].stakeholderName | body | string | — | StakeholderName is that investor's name. |
data[].status | body | string | — | Status is the SAFE's state, e.g. |
data[].type | body | string | — | Type is POST_MONEY or PRE_MONEY. |
data[].valuationCap | body | number | — | ValuationCap is the valuation cap, if any. |
Failure carries the platform error shape — see Errors.
Examples
hanzo captable safes listimport { Configuration, CaptableApi } from 'hanzoai';
const api = new CaptableApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getCaptableSafes();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_safes()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.CaptableAPI.GetCaptableSafes(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_safes(&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).getCaptableSafes();curl https://api.hanzo.ai/v1/captable/safes \
-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?