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.listFiles('connector_type');
console.log(response.files);curl https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/files \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"files": [
{
"id": "<string>",
"name": "<string>",
"is_folder": false,
"mime_type": "<string>",
"size": 123,
"modified_date": "<string>"
}
],
"next_page_token": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}EE - Connectors
List Files For Connector
Lists files and folders from the specified connector.
GET
/
ee
/
connectors
/
{connector_type}
/
files
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.listFiles('connector_type');
console.log(response.files);curl https://api.morphik.ai/ee/connectors/$CONNECTOR_TYPE/files \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"files": [
{
"id": "<string>",
"name": "<string>",
"is_folder": false,
"mime_type": "<string>",
"size": 123,
"modified_date": "<string>"
}
],
"next_page_token": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Path Parameters
Query Parameters
Was this page helpful?

