POST
/
retrieve
/
chunks
JavaScript
import Morphik from 'morphik';

const client = new Morphik({
  apiKey: 'My API Key',
});

const chunkResults = await client.retrieve.chunks.create({ query: 'x' });

console.log(chunkResults);
[
  {
    "content": "<string>",
    "score": 123,
    "document_id": "<string>",
    "chunk_number": 123,
    "metadata": {},
    "content_type": "<string>",
    "filename": "<string>",
    "download_url": "<string>",
    "is_padding": false
  }
]

Headers

authorization
string

Body

application/json

Base retrieve request model

Response

200
application/json

Successful Response

The response is of type ChunkResult · object[].