Get a presigned download URL for a document’s chunks. Only available for completed documents.
TypeScript
import { Agentset } from "agentset"; const agentset = new Agentset({ apiKey: 'agentset_xxx' }); const ns = agentset.namespace('ns_xxx'); const { url } = await ns.documents.getChunksDownloadUrl("doc_123"); const data = await (await fetch(url)).json(); console.log(data);
{ "success": true, "data": { "url": "<string>" } }
Default authentication mechanism
The id of the namespace (prefixed with ns_)
"ns_123"
The id of the document (prefixed with doc_)
"doc_123"
The presigned download URL for the chunks
Show child attributes