{"name":"threads","stage":"ga","description":"Package ai is Hanzo AI — the model API on /v1 (/v1/chat/completions, /v1/messages, /v1/models and the rest of hanzoai/ai's surface) — mounted into a cloud binary with the money, ingest and telemetry callbacks cloud BUILDS but cannot INSTALL.","operations":[{"operationId":"post_threads","method":"POST","href":"/v1/threads","summary":"Creates a new durable 10M+ thread DAG owned by the caller's organization."},{"operationId":"get_threads_by_id","method":"GET","href":"/v1/threads/{id}","summary":"Returns thread metadata, named branches, token totals, active leases, and capability grants."},{"operationId":"post_threads_by_id_append","method":"POST","href":"/v1/threads/{id}/append","summary":"Appends an immutable content-addressed chunk to a thread branch with optional optimistic lease_epoch fencing."},{"operationId":"get_threads_by_id_chunks_by_chunkid","method":"GET","href":"/v1/threads/{id}/chunks/{chunkId}","summary":"Retrieves a lossless byte-range slice of any cold or hot chunk in a thread."},{"operationId":"post_threads_by_id_fork","method":"POST","href":"/v1/threads/{id}/fork","summary":"Creates an O(1) branch fork from any chunk or response ID on an existing branch."},{"operationId":"post_threads_by_id_grants","method":"POST","href":"/v1/threads/{id}/grants","summary":"Grants scoped cross-account access (\"org:\u003corg\u003e\" or \"user:\u003corg\u003e/\u003cuser\u003e\") to a thread; restricted to the thread's owner organization."},{"operationId":"delete_threads_by_id_grants_by_principal","method":"DELETE","href":"/v1/threads/{id}/grants/{principal}","summary":"Revokes a cross-account capability grant from a thread; restricted to the thread's owner organization."},{"operationId":"post_threads_by_id_handoff","method":"POST","href":"/v1/threads/{id}/handoff","summary":"Atomically transfers a branch lease to another agent, machine, or organization while incrementing its fencing epoch."},{"operationId":"post_threads_by_id_merge","method":"POST","href":"/v1/threads/{id}/merge","summary":"Merges divergent chunks or a summary from a source branch into a target branch."},{"operationId":"post_threads_by_id_search","method":"POST","href":"/v1/threads/{id}/search","summary":"Performs BM25 search across a thread branch's full 10M+ chunk history for lossless recall."}],"_links":{"capability":{"href":"/v1/ai"},"describedby":{"href":"/v1/openapi.json?path=/v1/threads"},"self":{"href":"/v1/threads"},"up":{"href":"/v1"}}}