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

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

const response = await client.retrieve.createDocs({ query: 'x' });

console.log(response);
[
  {
    "score": 123,
    "document_id": "<string>",
    "metadata": {},
    "content": {
      "type": "url",
      "value": "<string>",
      "filename": "<string>"
    },
    "additional_metadata": {}
  }
]

Headers

authorization
string

Body

application/json

Base retrieve request model

Response

200
application/json

Successful Response

The response is of type DocumentResult · object[].