const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/rag/document/{id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/rag/document/{id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Document ID
OK
The response is of type file.
Was this page helpful?