OpenapiLegal
Returns the org's filing records, newest first — which documents were filed…
Returns the org's filing records, newest first — which documents were filed where, through which provider, and what the filing's honest status is.
GET /v1/legal/filings
| Address | https://api.hanzo.ai/v1/legal/filings |
| Method | GET |
| Operation | get_legal_filings |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns the org's filing records, newest first — which documents were filed where, through which provider, and what the filing's honest status is.
Request
1 field.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | — | Limit bounds the page. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | filingPage | ok |
200 body — 11 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
data | body | legalFiling[] | — | Data are the filing records. |
data[].createdAt | body | integer | — | |
data[].documentIds | body | string[] | — | |
data[].id | body | string | — | |
data[].jurisdiction | body | string | — | |
data[].note | body | string | — | |
data[].org | body | string | — | |
data[].provider | body | string | — | |
data[].status | body | string | — | |
data[].updatedAt | body | integer | — | |
disclaimer | body | string | — | Disclaimer is the boundary made visible on the wire. |
Failure carries the platform error shape — see Errors.
Examples
hanzo legal filings getimport { Configuration, LegalApi } from 'hanzoai';
const api = new LegalApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getLegalFilings();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import LegalApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = LegalApi(client).get_legal_filings()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.LegalAPI.GetLegalFilings(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, legal_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = legal_api::get_legal_filings(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.LegalApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new LegalApi(client).getLegalFilings();curl https://api.hanzo.ai/v1/legal/filings \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches legal through the legal tool, which names its 11 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_legal_documents"
}
}
}'How is this guide?