Workbench API reference
Run flows, browse the public gallery, fork public flows into your workspace, manage + search knowledge bases, and fetch the weights for shims you've published. Authentication, key management, and the shared error envelope live in API setup. New to the model? Start with Flows.
Base URL
https://api.zerowidth.ai/1.0
All endpoints return JSON. All requests require a bearer token. See Authentication for the key format + how to mint one.
Endpoints
Execute a flow synchronously or stream it. Returns outputs + cost + timeline. Scope: workbench:flows:run.
Browse the public gallery, newest first. Anonymous, cursor-paged.
Read a public flowGET /1.0/flows/public/:flowUuidRead one public flow's metadata + full definition. Anonymous.
Fork a public flowPOST /1.0/flows/:flowUuid/forkCopy a public flow into your workspace. Scope: workbench:flows:write (Personal key).
Every knowledge base in the key's workspace. Scope: workbench:knowledge_bases:read.
One knowledge base in full — status, counts, ingestion settings. Scope: workbench:knowledge_bases:read.
Create an empty docs / tabular / graph knowledge base. Scope: workbench:knowledge_bases:write.
Upload text or base64 PDF/DOCX sources; ingestion runs in the background. Scope: workbench:knowledge_bases:write.
Semantic or keyword retrieval over one knowledge base. Scope: workbench:knowledge_bases:search.
Every shim in the key's workspace, with its published version and accuracy. Scope: workbench:shims:read.
One shim's question and answers. Scope: workbench:shims:read.
The published version's weights file, at a URL that stays put across publishes. Scope: workbench:shims:read.