Create disclosures
Appends the assembled document and the record ids it rests on.
POST /v1/patent/disclosures
| Address | https://api.hanzo.ai/v1/patent/disclosures |
| Method | POST |
| Operation | post_patent_disclosures |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Appends the assembled document and the record ids it rests on. The document is a rendering of what the log already holds, and its citations are what let a reader check it instead of taking it.
Request
32 fields, body application/json (required).
| Field | In | Type | Required | Description |
|---|---|---|---|---|
disclosures | body | patent.PatentDisclosure[] | — | Disclosures are the documents to append, at most 2000. |
disclosures[].approvals | body | patent.PatentApproval[] | — | Approvals is DERIVED on read: the current decision of record from each person who has ruled on this disclosure. |
disclosures[].approvals[].authored_by | body | string | — | AuthoredBy is the validated principal who decided. |
disclosures[].approvals[].canonical | body | boolean | — | Canonical is DERIVED on read: this author's latest word on this disclosure. |
disclosures[].approvals[].comment | body | string | — | Comment is the reviewer's note — the part an inventor reads. |
disclosures[].approvals[].content_hash | body | string | — | ContentHash is the server's digest of the recorded content. |
disclosures[].approvals[].decision | body | string | — | Decision is approved, rejected or needs-work. |
disclosures[].approvals[].disclosure_id | body | string | — | DisclosureID is the document this decides on. |
disclosures[].approvals[].id | body | string | — | ID is the server's handle for this decision, derived from the disclosure and its author. |
disclosures[].approvals[].project | body | string | — | Project is the SERVER's scope value. |
disclosures[].approvals[].recorded_at | body | string | — | RecordedAt is the server's clock. |
disclosures[].approvals[].revision | body | string | — | Revision is original, corrected or retracted. |
disclosures[].approvals[].role | body | string | — | Role is the capacity the person acted in: author, cto, reviewer, attorney or counsel. |
disclosures[].approvals[].seq | body | integer (int64) | — | Seq is the append order. |
disclosures[].authored_by | body | string | — | AuthoredBy is the validated principal who recorded this version. |
disclosures[].body | body | string | — | Body is the document's text. |
disclosures[].body_sha256 | body | string | — | BodySHA256 is the SERVER's digest of body. |
disclosures[].canonical | body | boolean | — | Canonical is DERIVED on read. |
disclosures[].claims | body | string | — | Claims is the draft claim set, or a pointer to where it lives. |
disclosures[].content_hash | body | string | — | ContentHash is the server's digest of the recorded content. |
disclosures[].filing_ref | body | string | — | FilingRef is a filing number a human recorded here after filing. |
disclosures[].id | body | string | — | ID is the disclosure's stable id. |
disclosures[].idea_ids | body | string[] | — | IdeaIDs are the conception entries this disclosure is built from. |
disclosures[].implementation_ids | body | string[] | — | ImplementationIDs are the artifacts it describes. |
disclosures[].project | body | string | — | Project is the SERVER's scope value. |
disclosures[].recorded_at | body | string | — | RecordedAt is the server's clock. |
disclosures[].revision | body | string | — | Revision is original, corrected or retracted. |
disclosures[].seq | body | integer (int64) | — | Seq is the append order. |
disclosures[].status | body | string | — | Status is draft, reviewed, approved or filed. |
disclosures[].summary | body | string | — | Summary is the invention in one paragraph, for the reader who decides whether to read the rest. |
disclosures[].title | body | string | — | Title names the invention the way the document does. |
disclosures[].visibility | body | string | — | Visibility is private, org or public; forced private on a write. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | patent.patentWriteOut | ok |
default | problem-details | refused |
200 body — 3 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
canonical | body | integer (int64) | — | Canonical is how many entries the org's log now holds for this kind. |
project | body | string | — | Project is the scope the batch was filed under, as the server decided it. |
recorded | body | integer (int64) | — | Recorded is how many new versions this call appended. |
Failure carries the platform error shape — see Errors.
Examples
hanzo patent disclosures createimport { Configuration, PatentApi } from 'hanzoai';
const api = new PatentApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.postPatentDisclosures({ disclosures: [{"approvals":[{"authored_by":null,"canonical":null,"comment":null,"content_hash":null}],"authored_by":"<authored_by>","body":"<body>","body_sha256":"<body_sha256>"}] });from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import PatentApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = PatentApi(client).post_patent_disclosures(disclosures=[{"approvals":[{"authored_by":null,"canonical":null,"comment":null,"content_hash":null}],"authored_by":"<authored_by>","body":"<body>","body_sha256":"<body_sha256>"}])cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)
resp, _, err := client.PatentAPI.PostPatentDisclosures(context.Background()).Execute()
if err != nil {
return err
}use hanzo_client::apis::{configuration::Configuration, patent_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = patent_api::post_patent_disclosures(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.PatentApi;
ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));
var result = new PatentApi(client).postPatentDisclosures();The method above is the one at the current release of the document. [email protected] (npm) and [email protected] (PyPI) were generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. SDKs →
curl -X POST https://api.hanzo.ai/v1/patent/disclosures \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"disclosures": [
{
"approvals": [
{
"authored_by": null,
"canonical": null,
"comment": null,
"content_hash": null
}
],
"authored_by": "<authored_by>",
"body": "<body>",
"body_sha256": "<body_sha256>"
}
]
}'MCP reaches patent through the patent tool, which names its 12 operations with its own verbs — this one among them, under a name only MCP 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_patent_approvals"
}
}
}'