JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.ee.connectors.ingestFile('connector_type', { file_id: 'file_id' });
console.log(response);curl https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/ingest \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{
"file_id": "file_id"
}'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}EE - Connectors
Ingest File
Ingest a single file from a connector.
POST
/
ee
/
connectors
/
{connector_type}
/
ingest
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.ee.connectors.ingestFile('connector_type', { file_id: 'file_id' });
console.log(response);curl https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/ingest \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{
"file_id": "file_id"
}'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Path Parameters
Body
application/json
Response
Successful Response
Was this page helpful?

