Skip to main content
POST
/
ee
/
connectors
/
{connector_type}
/
ingest
JavaScript
import Morphik from 'morphik';

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

const response = await client.ee.connectors.ingestFile('connector_type', { file_id: 'file_id' });

console.log(response);
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

authorization
string

Path Parameters

connector_type
string
required

Body

application/json
file_id
string
required

Identifier of the connector file being ingested.

folder_name
string | null

Optional Morphik folder name applied to the ingested document.

metadata
Metadata · object

Metadata attached to the document when ingesting from the connector.

Response

Successful Response