const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/rag/document/chunks/{chunkId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data": "<string>",
"title": "<string>",
"metadata": {},
"startLine": 123,
"endLine": 123,
"contentHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/rag/document/chunks/{chunkId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data": "<string>",
"title": "<string>",
"metadata": {},
"startLine": 123,
"endLine": 123,
"contentHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}Was this page helpful?